From 6e58fde70644bfd4e4ce36caa5f65eb44ee8611e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Mogu=C3=A9rou?= Date: Tue, 5 Oct 2021 13:04:32 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout du Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9812004 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC = gcc +FLAGS = -Wall -fpic +LFLAGS = -s + +all: bin/libcatwalk.so + +bin/libcatwalk.so: obj/directions.o obj/grid.o obj/indicators.o obj/route.o + $(CC) -shared -o $@ $(FLAGS) $^ $(LFLAGS) + +obj/%.o: src/%.c + $(CC) -o $@ -c $(FLAGS) $< + +obj/directions.o: src/directions.c +obj/grid.o: src/grid.c +obj/indicators.o: src/indicators.c +obj/route.o: src/route.c + +.PHONY: clean mrproper +clean: + rm -f obj/* +mrproper: clean + rm -f bin/*