1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
libpsyc/pike/Makefile
2011-06-12 12:52:27 +02:00

14 lines
302 B
Makefile

CC=gcc
CFLAGS := -O9 -shared -Wall -fPIC -I/usr/include/pike $(CFLAGS) $(shell $(PIKE) -x cflags)
LD=$(CC) -shared -lpsyc
all: module.so
module.so: module.o
$(LD) -o module.so module.o $(LDFLAGS)
module.o: module.c
$(CC) $(CFLAGS) -c module.c
module.c: psyc.cmod
$(PIKE) -x precompile $< > $@