aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2016-01-28 20:30:13 +0100
committerCamil Staps2016-01-28 20:30:13 +0100
commit485e1b30cf9ee6206dc2251e209c6dce5f3685f4 (patch)
tree756176442963c942c1ebbffc60383321b059ca7a
parentMerge branch 'master' of github.com:camilstaps/CleanC (diff)
Makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..55207f6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CFLAGS=-O0
+
+CLM=clm
+CLMFLAGS=-ns -no-opt-link -l cleanc.o -l /usr/lib/x86_64-linux-gnu/libelf.so.1
+
+all: cleanc.o
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
+
+test: test.icl cleanc.icl cleanc.dcl cleanc.o
+ $(CLM) $(CLMFLAGS) test -o test
+
+clean:
+ rm -frv *.o test Clean\ System\ Files
+
+.PHONY: all clean
+