kcpmtk/Makefile

22 lines
307 B
Makefile

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