mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
renamed lib target to glibc. Puts .a file now in lib/
This commit is contained in:
parent
92fcc1a604
commit
3201a5fa23
2 changed files with 11 additions and 7 deletions
4
Makefile
4
Makefile
|
@ -4,8 +4,8 @@
|
||||||
default:
|
default:
|
||||||
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc\n\tmake test\n\tmake doc"
|
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc\n\tmake test\n\tmake doc"
|
||||||
|
|
||||||
lib:
|
glibc:
|
||||||
make -C src lib
|
make -C src glibc
|
||||||
|
|
||||||
diet:
|
diet:
|
||||||
make -C src diet
|
make -C src diet
|
||||||
|
|
14
src/Makefile
14
src/Makefile
|
@ -2,6 +2,8 @@ CFLAGS=-I../include -DDEBUG=2 -DPSYC_COMPILE_LIBRARY -g -O0 -Wall
|
||||||
CC=cc
|
CC=cc
|
||||||
# CC=clang
|
# CC=clang
|
||||||
|
|
||||||
|
test -z "$DIET" || DIET=diet
|
||||||
|
|
||||||
S=packet.c misc.c parser.c match.c render.c memmem.c itoa.c variable.c
|
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
|
O=packet.o misc.o parser.o match.o render.o memmem.o itoa.o variable.o
|
||||||
|
|
||||||
|
@ -9,12 +11,14 @@ default:
|
||||||
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc"
|
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc"
|
||||||
|
|
||||||
diet:
|
diet:
|
||||||
diet ${CC} -static -c -Os $S ${CFLAGS}
|
${DIET} ${CC} -static -c -Os $S ${CFLAGS}
|
||||||
diet ar rcs libpsyc.a $O
|
@test -d ../lib || mkdir ../lib
|
||||||
|
${DIET} ar rcs ../lib/libpsyc.a $O
|
||||||
|
|
||||||
lib: $S
|
glibc: $S
|
||||||
${CC} -static -c -g -O0 $S -lc ${CFLAGS}
|
${CC} -static -c -g -O0 $S -lc ${CFLAGS}
|
||||||
ar rcs libpsyc.a $O
|
@test -d ../lib || mkdir ../lib
|
||||||
|
ar rcs ../lib/libpsyc.a $O
|
||||||
|
|
||||||
match: match.c
|
match: match.c
|
||||||
${CC} -o $@ -DDEBUG=4 -DCMDTOOL -DTEST $<
|
${CC} -o $@ -DDEBUG=4 -DCMDTOOL -DTEST $<
|
||||||
|
@ -25,4 +29,4 @@ itoa: itoa.c
|
||||||
it: match
|
it: match
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $O
|
rm -f $O ../lib/libpsyc.a
|
||||||
|
|
Loading…
Reference in a new issue