Fixed Makefile

Modification de la place des arguments de bibliothèque.
Les liens peuvent donc être effectués à partir de libcatwalk.
This commit is contained in:
Valentin Moguérou 2021-10-27 22:10:07 +02:00
parent 3c3ddb6291
commit a3295272f0

View File

@ -1,12 +1,12 @@
CC = gcc CC = gcc
FLAGS = -Wall -g FLAGS = -Wall -g
LFLAGS = -lcatwalk LFLAGS = -L/usr/local/lib/ -lcatwalk
all: bin/catwalk all: bin/catwalk
bin/catwalk: obj/main.o obj/interact.o obj/print.o obj/simplegen.o bin/catwalk: obj/main.o obj/interact.o obj/print.o obj/simplegen.o
@mkdir -p $(@D) @mkdir -p $(@D)
$(CC) $(FLAGS) -o $@ $(LFLAGS) $^ $(CC) $(FLAGS) -o $@ $^ $(LFLAGS)
obj/%.o: src/%.c obj/%.o: src/%.c
@mkdir -p $(@D) @mkdir -p $(@D)