aboutsummaryrefslogtreecommitdiff
path: root/morpion_rec/NiAh/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'morpion_rec/NiAh/Makefile')
-rw-r--r--morpion_rec/NiAh/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/morpion_rec/NiAh/Makefile b/morpion_rec/NiAh/Makefile
new file mode 100644
index 0000000..4fb6bec
--- /dev/null
+++ b/morpion_rec/NiAh/Makefile
@@ -0,0 +1,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)