12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #
- # 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)
|