From 91fa7cfb7df46bf12d54391e2e25c0816748070d Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 27 Feb 2019 20:24:40 -0500 Subject: split some stuff into a configuration file --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cf84102..ad673b4 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.1