diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2022-12-01 20:35:58 +0100 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2022-12-01 20:35:58 +0100 |
commit | 076d2ca0e0c2f0308373628272a3972241575653 (patch) | |
tree | bf60b98fe6b5a569649f41ff93836a9623a93c18 /Makefile |
day 1
Diffstat (limited to '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..e639fbc --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC=cc +CFLAGS=-std=c1x -W -Wall -g -D_GNU_SOURCE +LDFLAGS= +EXEC=01 01bis + +all: $(EXEC) + +.c.o: + $(CC) -o $@ -c $< $(CFLAGS) + +01: input.o 01.o + $(CC) -o $@ $^ $(LDFLAGS) + +01bis: input.o 01bis.o + $(CC) -o $@ $^ $(LDFLAGS) + +clean: + rm -rf *.o $(EXEC) |