summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1a2b7e9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+CC=cc
+CFLAGS=-std=c1x -W -Wall -g
+LDFLAGS=
+EXEC=011 012 021 022
+
+all: $(EXEC)
+
+011: input.o 011.o
+ $(CC) -o $@ $> $(LDFLAGS)
+
+012: input.o 012.o
+ $(CC) -o $@ $> $(LDFLAGS)
+
+021: input.o 021.o
+ $(CC) -o $@ $> $(LDFLAGS)
+
+022: input.o 022.o
+ $(CC) -o $@ $> $(LDFLAGS)
+
+.c.o:
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+clean:
+ rm -rf *.o $(EXEC)