From 919fd254d87512e96ee15757dab645852c3ef166 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Mon, 8 Apr 2019 14:43:03 -0700 Subject: Init commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b3dfb04 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +# lift life +# http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/makefile.4 +CC=gcc +CFLAGS=-I./src +DEPS= test-lib.h +OBJ = test-lib.o +MAIN_OBJ = example.o + +%.o: %.c $(DEPS) + $(CC) -c -o $@ $< $(CFLAGS) + +example: $(OBJ) $(MAIN_OBJ) + $(CC) -o $@ $^ $(CFLAGS) + +.PHONY: clean +clean: + rm -rf *.o + -- cgit v1.2.3