From 5ed24cf76c4031005372fe231265368863b37f8d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 27 Feb 2019 21:23:35 -0500 Subject: include debugging info, rebuild when libc.a changes --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.1