diff options
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) |