TARGETS := test undump
LIBS := binary.pas ihex.pas
FPC_FLAGS := -g
FPC := fpc $(FPC_FLAGS)
.PHONY: all
all: $(TARGETS)
.PHONY: clean
clean:
rm -f *.o $(TARGETS)
test: test.pas $(LIBS)
$(FPC) $@.pas
undump: undump.pas binary.pas ihex.pas