Browse Source

B
:i
:i
Fpctris edited

B
B


B
B

marco 25 years ago
parent
commit
b15ce43819
1 changed files with 35 additions and 3 deletions
  1. 35 3
      install/demo/Makefile.fpc

+ 35 - 3
install/demo/Makefile.fpc

@@ -1,23 +1,55 @@
 #
-#   Makefile.fpc for shedit
+#   Makefile.fpc for FPC demoes and FPCGames package
 #
 
 [targets]
+units=gameunit
 programs=eratos qsort hello blackbox magic lines fpctris
 programs_win32=winhello menu mandel dlltest testdll
-programs_linux=mandel samegame
-programs_go32v2=mandel samegame
+programs_linux=mandel samegame quad maze gravwars
+programs_go32v2=mandel samegame quad maze gravwars
+
+# Not always necessary, but saves a lot of trouble
+
+[packages]
+packages=api
+
+[defaults]
+defaultrule=both
 
 [dirs]
 fpcdir=../..
 unitdir=$(FPCDIR)/api
 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