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 \{\} \;
|
|
|
|
|
2022-11-02 00:05:01 +01:00
|
|
|
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
|
2022-11-02 00:05:01 +01:00
|
|
|
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
|