Add Makefile for Pascal programs
This commit is contained in:
parent
5c16a97151
commit
19a5052d4d
@ -0,0 +1,12 @@
|
||||
PROGRAMS_SRC = $(wildcard *.pas)
|
||||
PROGRAMS_O = $(patsubst %.pas,%.o,$(PROGRAMS_SRC))
|
||||
PROGRAMS = $(patsubst %.pas,%,$(PROGRAMS_SRC))
|
||||
|
||||
all:
|
||||
$(foreach file, $(PROGRAMS), fpc ${file};)
|
||||
|
||||
clean:
|
||||
rm -f $(PROGRAMS_O)
|
||||
rm -f $(PROGRAMS)
|
||||
|
||||
.PHONY: all clean
|
Loading…
Reference in New Issue
Block a user