1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
libpsyc/src/Makefile
2011-04-17 14:17:11 +02:00

21 lines
443 B
Makefile

CC=cc -I../include
# CC=clang
S=parser.c match.c
O=parser.o match.o
default:
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc"
diet:
diet ${CC} -static -c -Os $S -DDEBUG -DPSYC_COMPILE_LIBRARY
diet ar rcs libpsyc.a $O
lib: $S
${CC} -static -c -g -O0 $S -lc -DDEBUG -DPSYC_COMPILE_LIBRARY
ar rcs libpsyc.a $O
match: match.c
${CC} -o $@ -DDEBUG=2 -DCMDTOOL -DTEST $<
it: match