planarbot/makefile

21 lines
464 B
Makefile
Raw Normal View History

2022-11-01 22:09:32 +01:00
CFLAGS += -g -Wall -Werror -pedantic -ansi
all: planarbot inputfile
valgrind ./planarbot < inputfile
2022-11-08 23:31:00 +01:00
test: echojson
find jsontest -type f -exec valgrind ./echojson \{\} \;
planarbot: planarbot.o arraylist.o sortedmap.o json.o
2022-11-01 22:09:32 +01:00
planarbot.o: arraylist.h
arraylist.o: arraylist.h
sortedmap.o: sortedmap.h
json.o: json.h arraylist.h sortedmap.h
2022-11-08 23:31:00 +01:00
echojson: echojson.o json.o arraylist.o sortedmap.o
echojson.o: json.h
2022-11-01 22:09:32 +01:00
clean:
rm -f *.o planarbot
2022-11-08 23:31:00 +01:00
.PHONY: all clean