diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2021-12-02 22:46:01 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2021-12-02 22:46:01 +0100 |
commit | c851f16d1df21d7579af72d842521b951261b092 (patch) | |
tree | 2f1c4672b53afb8c575ff7c64d88b9020034219d /Makefile |
day 1 & 2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
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) |