summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-27 21:23:35 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-27 21:23:35 -0500
commit5ed24cf76c4031005372fe231265368863b37f8d (patch)
tree15c100343b3d54870b879f569643737512d54ae5
parent91fa7cfb7df46bf12d54391e2e25c0816748070d (diff)
include debugging info, rebuild when libc.a changes
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ad673b4..156ef2a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,12 @@
include config.mk
-CFLAGS=-I$(INCLUDEDIR) -nostdinc -fno-builtin
+CFLAGS=-g -I$(INCLUDEDIR) -nostdinc -fno-builtin
LDFLAGS=-L$(LIBDIR) $(LIBS)
TESTOBJS=main.o test.o assert.o ctype.o locale.o
-testlibc: $(TESTOBJS)
+testlibc: $(TESTOBJS) $(LIBDIR)/libc.a
$(CC) -o $@ $(TESTOBJS) $(LDFLAGS)
assert.o: assert.c test.h