summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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
+