diff options
author | Camil Staps | 2016-01-28 20:30:13 +0100 |
---|---|---|
committer | Camil Staps | 2016-01-28 20:30:13 +0100 |
commit | 485e1b30cf9ee6206dc2251e209c6dce5f3685f4 (patch) | |
tree | 756176442963c942c1ebbffc60383321b059ca7a | |
parent | Merge branch 'master' of github.com:camilstaps/CleanC (diff) |
Makefile
-rw-r--r-- | Makefile | 18 |
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 + |