Making the Makefile create directories
This commit is contained in:
parent
f09329adcf
commit
69f733f20a
6
Makefile
6
Makefile
@ -5,9 +5,11 @@ LFLAGS = -s
|
||||
all: bin/libcatwalk.so
|
||||
|
||||
bin/libcatwalk.so: obj/directions.o obj/grid.o obj/indicators.o obj/route.o
|
||||
-@mkdir -p $(@D)
|
||||
$(CC) -shared -o $@ $(FLAGS) $^ $(LFLAGS)
|
||||
|
||||
obj/%.o: src/%.c
|
||||
-@mkdir -p $(@D)
|
||||
$(CC) -o $@ -c $(FLAGS) $<
|
||||
|
||||
obj/directions.o: src/directions.c
|
||||
@ -17,6 +19,6 @@ obj/route.o: src/route.c
|
||||
|
||||
.PHONY: clean mrproper
|
||||
clean:
|
||||
rm -f obj/*
|
||||
rm -rf obj
|
||||
mrproper: clean
|
||||
rm -f bin/*
|
||||
rm -rf bin
|
||||
|
Loading…
Reference in New Issue
Block a user