summaryrefslogtreecommitdiff
path: root/Makefile
blob: b42f2640b73023452d970f90f67d0c017aac49e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=cc
CFLAGS=-std=c1x -W -Wall -g -D_GNU_SOURCE
LDFLAGS=
EXEC=01 01bis 02

all: $(EXEC)

.c.o:
	$(CC) -o $@ -c $< $(CFLAGS)

01: input.o 01.o
	$(CC) -o $@ $^ $(LDFLAGS)

01bis: input.o 01bis.o
	$(CC) -o $@ $^ $(LDFLAGS)

02: input.o 02.o
	$(CC) -o $@ $^ $(LDFLAGS)

clean:
	rm -rf *.o $(EXEC)