mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 21:22:38 +02:00
41 lines
634 B
Makefile
41 lines
634 B
Makefile
#
|
|
# Makefile.fpc for FPC graph demos (part of FPC demo package)
|
|
#
|
|
|
|
[target]
|
|
units=gameunit
|
|
programs=fpctris mandel samegame quad maze gravwars
|
|
|
|
[default]
|
|
fpcdir=../..
|
|
|
|
[prerules]
|
|
ifdef GRAPHICS
|
|
override FPCOPT+=-dUSEGRAPHICS
|
|
endif
|
|
|
|
[rules]
|
|
.PHONY: text gfx both
|
|
|
|
all: graph
|
|
|
|
clean : execlean fpc_cleanall
|
|
|
|
execlean :
|
|
$(DELTREE) text
|
|
$(DELTREE) graph
|
|
|
|
# below projects will call ourselves recursive
|
|
|
|
text:
|
|
$(MKDIR) text
|
|
$(MAKE) fpc_all COMPILER_TARGETDIR=text
|
|
|
|
graph:
|
|
$(MKDIR) graph
|
|
$(MAKE) fpc_all COMPILER_TARGETDIR=graph GRAPHICS=1
|
|
|
|
both:
|
|
$(MAKE) text
|
|
$(MAKE) graph
|