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-25 22:38:42 +02:00

28 lines
637 B
Makefile

CFLAGS=-I../include -DDEBUG=2 -DPSYC_COMPILE_LIBRARY -g -O0 -Wall
CC=cc
# CC=clang
S=packet.c misc.c parser.c match.c render.c memmem.c itoa.c variable.c
O=packet.o misc.o parser.o match.o render.o memmem.o itoa.o variable.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 ${CFLAGS}
diet ar rcs libpsyc.a $O
lib: $S
${CC} -static -c -g -O0 $S -lc ${CFLAGS}
ar rcs libpsyc.a $O
match: match.c
${CC} -o $@ -DDEBUG=4 -DCMDTOOL -DTEST $<
itoa: itoa.c
${CC} -o $@ -DDEBUG=4 -DCMDTOOL -DTEST -O0 $<
it: match
clean:
rm -f $O