From 30494889831c3ab4544fb82f5cfbe7a096d931fd Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 1 Jan 2019 09:19:48 -0500 Subject: basic build rules --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9d01eb8 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC=c89 +CFLAGS=-Wall -Wextra -Wpedantic + +testlibc: main.o test.o assert.o ctype.o + $(CC) -o $@ *.o + +assert.o: assert.c test.h + +ctype.o: ctype.c test.h + +test.o: test.c test.h + +main.o: main.c test.h + +clean: + rm -f *.o testlibc -- cgit v1.2.1