From 485e1b30cf9ee6206dc2251e209c6dce5f3685f4 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 28 Jan 2016 20:30:13 +0100 Subject: Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile 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 + -- cgit v1.2.3