summaryrefslogtreecommitdiff
path: root/Makefile
blob: e639fbcf368a72014e935e61f10762f5189ac4ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)