aboutsummaryrefslogtreecommitdiff
path: root/morpion_rec/NiAh/Makefile
blob: 4fb6bece46fb997f3af7be69cc1e667cb0a5b04b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
C=gcc
CFLAGS=-W -Wall -O3
LDFLAGS=-lm
EXEC=IA-MR

.PHONY: clean mrproper

all: $(EXEC)

IA-MR: ia.o main.o
	$(C) main.o ia.o -o IA-MR $(LDFLAGS) 

ia.o: ia.c ia.h
	$(C) -o ia.o -c ia.c $(CFLAGS) 

main.o: main.c main.h ia.o
	$(C) -o main.o -c main.c $(CFLAGS) 

clean:
	rm -rf *.o

mkproper: clean
	rm -rf $(EXEC)