catwalk-cli/Makefile
2021-10-11 18:45:03 +02:00

29 lines
519 B
Makefile

CC = gcc
FLAGS = -Wall -g
LFLAGS = -lcatwalk
all: bin/catwalk
bin/catwalk: obj/main.o obj/interact.o obj/print.o obj/simplegen.o
@mkdir -p $(@D)
$(CC) $(FLAGS) -o $@ $(LFLAGS) $^
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/
cp bin/catwalk /usr/local/bin/