From b3ace3075f22c50c99e2f1c3004fac2bbfee2989 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sun, 9 Nov 2014 22:19:57 +0100 Subject: Update C template IA for morpion_rec from Alexis. --- morpion_rec/NiAh/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 morpion_rec/NiAh/Makefile (limited to 'morpion_rec/NiAh/Makefile') 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) -- cgit v1.2.3