From c851f16d1df21d7579af72d842521b951261b092 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Thu, 2 Dec 2021 22:46:01 +0100 Subject: day 1 & 2 --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3