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

15 lines
302 B
Makefile
Raw Normal View History

2011-06-12 10:52:27 +00:00
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 $< > $@