fpc/install/demo/Makefile.fpc
2000-01-21 00:43:35 +00:00

71 lines
1.3 KiB
Makefile

#
# Makefile.fpc for FPC demoes and FPCGames package
#
[targets]
units=gameunit
programs=eratos qsort hello blackbox magic lines fpctris
programs_win32=mandel samegame quad maze gravwars \
winhello menu dlltest testdll
programs_linux=mandel samegame quad maze gravwars
programs_go32v2=mandel samegame quad maze gravwars \
voxel
[require]
# Not always necessary, but saves a lot of trouble
packages=api
[install]
packagename=demo
[defaults]
defaultrule=both
[dirs]
fpcdir=..
targetdir=.
[postsettings]
ifdef GRAPHICS
override FPCOPT+=-dUSEGRAPHICS
endif
[rules]
ifeq ($(OS_TARGET),win32)
vpath %$(PASEXT) win32
endif
.PHONY: text gfx both
clean : execlean fpc_cleanall
execlean :
-$(DEL) tfpctris$(EXEEXT) tsamegam$(EXEEXT) *.scr
text:
$(MAKE) all
$(MOVE) fpctris$(EXEEXT) tfpctris$(EXEEXT)
$(MOVE) samegame$(EXEEXT) tsamegam$(EXEEXT)
gfx:
$(MAKE) all GRAPHICS=1
both:
$(MAKE) text
$(DEL) gameunit$(OEXT) gameunit$(PPUEXT)
$(MAKE) gfx
#################################
# Demo installation for linux
#
.PHONY: installexamples
ifndef EXAMPLESINSTALLDIR
EXAMPLESINSTALLDIR=$(DOCINSTALLDIR)/examples
endif
installexamples:
$(MKDIR) $(EXAMPLESINSTALLDIR)
$(COPYTREE) * $(EXAMPLESINSTALLDIR)