mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
15 lines
302 B
Makefile
15 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 $< > $@
|