catwalk-cli/Makefile

31 lines
586 B
Makefile
Raw Normal View History

2021-10-11 18:45:03 +02:00
CC = gcc
FLAGS = -Wall -g
LFLAGS = -L/usr/local/lib/ -lcatwalk
2021-10-11 18:45:03 +02:00
all: bin/catwalk
bin/catwalk: obj/main.o obj/interact.o obj/print.o obj/simplegen.o
@mkdir -p $(@D)
$(CC) $(FLAGS) -o $@ $^ $(LFLAGS)
2021-10-11 18:45:03 +02:00
obj/%.o: src/%.c
@mkdir -p $(@D)
$(CC) $(FLAGS) -o $@ -c $<
obj/main.o: src/main.c
obj/interact.o: src/interact.c
obj/print.o: src/print.c
obj/simplegen.o: src/simplegen.c
.PHONY: clean mrproper install
clean:
rm -rf obj
mrproper: clean
rm -rf bin
install: bin/catwalk
@mkdir -p /usr/local/bin/
2021-10-30 15:52:19 +02:00
install -p bin/catwalk /usr/local/bin/
uninstall:
rm -f /usr/local/bin/catwalk