
SOURCES := $(wildcard *.pas)
TARGETS := $(SOURCES:%.pas=%)

SYNAPSE := $(HOME)/Documents/pascal/sources/synapse

PC := fpc
PFLAGS := -Mobjfpc -Sh
PFLAGS += -Fu$(SYNAPSE)

all: $(TARGETS)

%: %.pas
	$(PC) $(PFLAGS) $<

clean:
	@rm -fv *.o *.ppu $(TARGETS)
