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