fpc/demo/graph/Makefile.fpc

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