diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 20:24:40 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 20:24:40 -0500 |
commit | 91fa7cfb7df46bf12d54391e2e25c0816748070d (patch) | |
tree | 7aadb8b2bed64f683c075ea0a8b39842459a88a2 /Makefile | |
parent | ae243cbbee09a8ea3528cb7cb963b07f9e4e6fe1 (diff) |
split some stuff into a configuration file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,8 +1,14 @@ -CC=c89 -CFLAGS=-Wall -Wextra -Wpedantic +.POSIX: -testlibc: main.o test.o assert.o ctype.o locale.o - $(CC) -o $@ *.o +include config.mk + +CFLAGS=-I$(INCLUDEDIR) -nostdinc -fno-builtin +LDFLAGS=-L$(LIBDIR) $(LIBS) + +TESTOBJS=main.o test.o assert.o ctype.o locale.o + +testlibc: $(TESTOBJS) + $(CC) -o $@ $(TESTOBJS) $(LDFLAGS) assert.o: assert.c test.h |