diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-01-01 09:19:48 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-01-01 09:19:48 -0500 |
commit | 30494889831c3ab4544fb82f5cfbe7a096d931fd (patch) | |
tree | 5ceca02882d312e178351a30ab848ca65d5c1722 /Makefile | |
parent | 2b84ac43f7c2f26d53f2c66db475c18c68c94923 (diff) |
basic build rules
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
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 |