# Makefile to compile all Pascal (*.p) files in current directories # type "make" to (re-)compile # type "make clean" to remove all .o files and compiled executables SRC := $(wildcard *.p) OBJ = $(SRC:.p=.o) BIN = $(SRC:.p=) all: $(BIN) %: %.p fpc -v0 $^ clean: rm $(BIN) $(OBJ)