Transférer les fichiers vers ''
Ajout du Makefile
This commit is contained in:
parent
c606581ca1
commit
6e58fde706
22
Makefile
Normal file
22
Makefile
Normal file
@ -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/*
|
Loading…
Reference in New Issue
Block a user