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

some swig code, needs more work

This commit is contained in:
tg(x) 2011-09-12 11:44:48 +02:00
parent 1c6225e057
commit 0990dbd863
5 changed files with 100 additions and 0 deletions

25
perl/Makefile Normal file
View file

@ -0,0 +1,25 @@
CFLAGS = -I../include -Wall -std=c99 -fPIC
SWIG = swig
PERL = perl
I = psyc.i
S = psyc_wrap.c
O = psyc_wrap.o
SO = PSYC.so
PM = PSYC.pm
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 -perl5 $I
CFLAGS = ${CFLAGS_COMMON} $(shell ${PERL} -MConfig -e 'print join(" ", @Config{qw(ccflags optimize cccdlflags)}, "-I$$Config{archlib}/CORE")') -D_XOPEN_SOURCE
$O: $S
lib: $O
${MAKE} -C ../src ${PSYCO}
${CC} ${CFLAGS} $(shell ${PERL} -MConfig -e 'print $$Config{lddlflags}') ${PSYCO} $O -o ${SO}
clean:
rm -f $S $O ${SO} ${PM}