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

25 lines
501 B
Makefile
Raw Normal View History

2011-09-12 09:44:48 +00:00
CFLAGS = -Wall -std=c99 -fPIC -I../include $(shell ${PYTHON_CONFIG} --includes)
SWIG = swig
PYTHON_CONFIG = python-config
I = psyc.i
S = psyc_wrap.c
O = psyc_wrap.o
SO = _PSYC.so
PY = PSYC.py
PSYCO = ../src/packet.o ../src/parse.o ../src/match.o ../src/render.o ../src/memmem.o ../src/itoa.o ../src/variable.o ../src/text.o
all: swig lib
swig:
${SWIG} -I../include -python $I
$O: $S
lib: $O
${MAKE} -C ../src ${PSYCO}
${CC} -shared ${PSYCO} $O -o ${SO}
clean:
rm -f $S $O ${SO} ${PY} ${PY}c