summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-04-08 14:43:03 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-04-08 14:43:03 -0700
commit919fd254d87512e96ee15757dab645852c3ef166 (patch)
tree4e4e63283ae33b750562b8ef86b0b8442f4ed11f /Makefile
Init commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
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
+