Break out libs into LDLIBS
This commit is contained in:
parent
0c008b65ee
commit
7819662024
4
Makefile
4
Makefile
@ -150,7 +150,7 @@ config.h:
|
|||||||
cp config.def.h $@
|
cp config.def.h $@
|
||||||
|
|
||||||
.o:
|
.o:
|
||||||
$(LD) $(LDFLAGS) -o $@ $< $(LIB)
|
$(LD) $(LDFLAGS) -o $@ $< $(LIB) $(LDLIBS)
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
|
||||||
@ -198,7 +198,7 @@ ubase-box: $(LIB) $(SRC)
|
|||||||
echo 'else {' >> build/$@.c
|
echo 'else {' >> build/$@.c
|
||||||
for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done
|
for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done
|
||||||
echo "putchar(0xa); }; return 0; }" >> build/$@.c
|
echo "putchar(0xa); }; return 0; }" >> build/$@.c
|
||||||
$(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ build/*.c $(LIB)
|
$(LD) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ build/*.c $(LIB) $(LDLIBS)
|
||||||
rm -r build
|
rm -r build
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -12,4 +12,5 @@ RANLIB = ranlib
|
|||||||
|
|
||||||
CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
|
||||||
CFLAGS = -std=c99 -Wall -Wextra
|
CFLAGS = -std=c99 -Wall -Wextra
|
||||||
LDFLAGS = -s -lcrypt # -static
|
LDLIBS = -lcrypt
|
||||||
|
LDFLAGS = -s
|
||||||
|
Loading…
Reference in New Issue
Block a user