summaryrefslogtreecommitdiff
path: root/demo/graph/Makefile.fpc
blob: fc5fdd62b53361a567330926f86d3b257bb24b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
#   Makefile.fpc for FPC graph demos (part of FPC demo package)
#

[target]
units=gameunit
programs=fpctris mandel samegame quad maze gravwars

[default]
fpcdir=../../fpcsrc

[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