Browse Source

* updated

marco 25 years ago
parent
commit
43c87be76d
1 changed files with 72 additions and 107 deletions
  1. 72 107
      install/demo/Makefile

+ 72 - 107
install/demo/Makefile

@@ -1,8 +1,8 @@
 #
 #
-# Makefile generated by fpcmake v0.99.13 on 1999-12-24 16:08
+# Makefile generated by fpcmake v0.99.13 on 2000-01-01 15:03
 #
 #
 
 
-defaultrule: all
+defaultrule: both
 
 
 #####################################################################
 #####################################################################
 # Autodetect OS (Linux or Dos or Windows NT)
 # Autodetect OS (Linux or Dos or Windows NT)
@@ -138,15 +138,16 @@ endif
 
 
 # Targets
 # Targets
 
 
-override EXEOBJECTS+=eratos qsort hello blackbox magic lines fpctris
+UNITOBJECTS=gameunit
+EXEOBJECTS=eratos qsort hello blackbox magic lines fpctris
 ifeq ($(OS_TARGET),linux)
 ifeq ($(OS_TARGET),linux)
-override EXEOBJECTS+=mandel samegame
+EXEOBJECTS+=mandel samegame quad maze gravwars
 endif
 endif
 ifeq ($(OS_TARGET),go32v2)
 ifeq ($(OS_TARGET),go32v2)
-override EXEOBJECTS+=mandel samegame
+EXEOBJECTS+=mandel samegame quad maze gravwars voxel
 endif
 endif
 ifeq ($(OS_TARGET),win32)
 ifeq ($(OS_TARGET),win32)
-override EXEOBJECTS+=winhello menu mandel dlltest testdll
+EXEOBJECTS+=winhello menu mandel dlltest testdll
 endif
 endif
 
 
 # Clean
 # Clean
@@ -154,7 +155,6 @@ endif
 
 
 # Install
 # Install
 
 
-ZIPTARGET=install
 
 
 # Defaults
 # Defaults
 
 
@@ -164,26 +164,23 @@ ZIPTARGET=install
 ifndef FPCDIR
 ifndef FPCDIR
 FPCDIR=../..
 FPCDIR=../..
 endif
 endif
-ifndef PACKAGEDIR
-PACKAGEDIR=$(FPCDIR)/packages
-endif
-ifndef COMPONENTDIR
-COMPONENTDIR=$(FPCDIR)/components
-endif
 override NEEDUNITDIR=$(FPCDIR)/api
 override NEEDUNITDIR=$(FPCDIR)/api
 ifndef TARGETDIR
 ifndef TARGETDIR
 TARGETDIR=.
 TARGETDIR=.
 endif
 endif
 
 
-# Packages
-
-
 # Libraries
 # Libraries
 
 
 
 
 # Info
 # Info
 
 
-INFOTARGET=fpc_infocfg fpc_infoobjects fpc_infoinstall 
+FPCINFO=fpc_infocfg fpc_infoobjects fpc_infoinstall 
+
+# Post Settings
+
+ifdef GRAPHICS
+override FPCOPT+=-dUSEGRAPHICS
+endif
 
 
 #####################################################################
 #####################################################################
 # Default Directories
 # Default Directories
@@ -221,6 +218,24 @@ override UNITSDIR=$(FPCDIR)/units/$(OS_TARGET)
 endif
 endif
 endif
 endif
 
 
+
+
+# On linux, try to find where libgcc.a is.
+ifdef inlinux
+ifndef GCCLIBDIR
+GCCLIBDIR:=$(shell dirname `(gcc -v 2>&1)| head -n 1| awk '{ print $$4 } '`)
+endif
+endif
+export GCCLIBDIR
+
+# Where to find other libraries
+ifdef inlinux
+ifndef OTHERLIBDIR
+OTHERLIBDIR:=$(shell grep -v "^\#" /etc/ld.so.conf | awk '{ ORS=" "; print $1 }')
+endif
+endif
+export OTHERLIBDIR
+
 #####################################################################
 #####################################################################
 # Install Directories
 # Install Directories
 #####################################################################
 #####################################################################
@@ -293,14 +308,12 @@ ifneq ($(OS_TARGET),$(OS_SOURCE))
 override FPCOPT+=-T$(OS_TARGET)
 override FPCOPT+=-T$(OS_TARGET)
 endif
 endif
 
 
-ifdef RTLDIR
-override FPCOPT+=-Fu$(RTLDIR)
-endif
 
 
-ifdef UNITSDIR
-override FPCOPT+=-Fu$(UNITSDIR)
+ifdef NEEDOPT
+override FPCOPT+=$(NEEDOPT)
 endif
 endif
 
 
+
 ifdef NEEDUNITDIR
 ifdef NEEDUNITDIR
 override FPCOPT+=$(addprefix -Fu,$(NEEDUNITDIR))
 override FPCOPT+=$(addprefix -Fu,$(NEEDUNITDIR))
 endif
 endif
@@ -310,6 +323,7 @@ ifdef TARGETDIR
 override FPCOPT+=-FE$(TARGETDIR)
 override FPCOPT+=-FE$(TARGETDIR)
 endif
 endif
 
 
+
 # Smartlinking
 # Smartlinking
 ifdef SMARTLINK
 ifdef SMARTLINK
 override FPCOPT+=-CX
 override FPCOPT+=-CX
@@ -470,39 +484,6 @@ endif
 endif
 endif
 export ECHO
 export ECHO
 
 
-# ppdep
-ifndef PPDEP
-PPDEP:=$(strip $(wildcard $(addsuffix /ppdep$(EXEEXT),$(SEARCHPATH))))
-ifeq ($(PPDEP),)
-PPDEP=
-else
-PPDEP:=$(firstword $(PPDEP))
-endif
-endif
-export PPDEP
-
-# ppumove
-ifndef PPUMOVE
-PPUMOVE:=$(strip $(wildcard $(addsuffix /ppumove$(EXEEXT),$(SEARCHPATH))))
-ifeq ($(PPUMOVE),)
-PPUMOVE=
-else
-PPUMOVE:=$(firstword $(PPUMOVE))
-endif
-endif
-export PPUMOVE
-
-# ppufiles
-ifndef PPUFILES
-PPUFILES:=$(strip $(wildcard $(addsuffix /ppufiles$(EXEEXT),$(SEARCHPATH))))
-ifeq ($(PPUFILES),)
-PPUFILES=
-else
-PPUFILES:=$(firstword $(PPUFILES))
-endif
-endif
-export PPUFILES
-
 # Look if UPX is found for go32v2 and win32. We can't use $UPX becuase
 # Look if UPX is found for go32v2 and win32. We can't use $UPX becuase
 # upx uses that one itself (PFV)
 # upx uses that one itself (PFV)
 ifndef UPXPROG
 ifndef UPXPROG
@@ -649,65 +630,31 @@ PASEXT=.pas
 endif
 endif
 endif
 endif
 
 
-#####################################################################
-# Standard rules
-#####################################################################
 
 
 all: fpc_all
 all: fpc_all
 
 
-debug: fpc_debug
-
-smart: fpc_smart
+staticlib: fpc_staticlib
 
 
-shared: fpc_shared
+sharedlib: fpc_sharedlib
 
 
 showinstall: fpc_showinstall
 showinstall: fpc_showinstall
 
 
-install: fpc_install
+staticinstall: fpc_staticinstall
+
+sharedinstall: fpc_sharedinstall
 
 
-sourceinstall: fpc_sourceinstall
+libinstall: fpc_libinstall
 
 
 zipinstall: fpc_zipinstall
 zipinstall: fpc_zipinstall
 
 
 zipinstalladd: fpc_zipinstalladd
 zipinstalladd: fpc_zipinstalladd
 
 
-clean: fpc_clean
+clean_all: fpc_clean_all
 
 
-cleanall: fpc_cleanall
+depend: fpc_depend
 
 
 info: fpc_info
 info: fpc_info
 
 
-.PHONY:  all debug smart shared showinstall install sourceinstall zipinstall zipinstalladd clean cleanall info
-
-#####################################################################
-# Package depends
-#####################################################################
-
-ifneq ($(wildcard $(RTLDIR)),)
-ifeq ($(wildcard $(RTLDIR)/$(FPCMADE)),)
-override COMPILEPACKAGES+=rtl
-rtl_package:
-	$(MAKE) -C $(RTLDIR) all
-endif
-endif
-
-.PHONY:  rtl_package
-
-#####################################################################
-# Exes
-#####################################################################
-
-.PHONY: fpc_exes
-
-override EXEFILES=$(addsuffix $(EXEEXT),$(EXEOBJECTS))
-override EXEOFILES=$(addsuffix $(OEXT),$(EXEOBJECTS))
-
-override ALLTARGET+=fpc_exes
-override INSTALLEXEFILES+=$(EXEFILES)
-override CLEANEXEFILES+=$(EXEFILES) $(EXEOFILES)
-
-fpc_exes: $(EXEFILES)
-
 #####################################################################
 #####################################################################
 # General compile rules
 # General compile rules
 #####################################################################
 #####################################################################
@@ -835,16 +782,6 @@ ifdef EXTRAINSTALLFILES
 	$(INSTALL) $(EXTRAINSTALLFILES) $(EXTRAINSTALLDIR)
 	$(INSTALL) $(EXTRAINSTALLFILES) $(EXTRAINSTALLDIR)
 endif
 endif
 
 
-#####################################################################
-# Source install rules
-#####################################################################
-
-.PHONY: fpc_sourceinstall
-
-fpc_sourceinstall: clean
-	$(MKDIR) $(SOURCEINSTALLDIR)
-	$(COPYTREE) $(BASEDIR) $(SOURCEINSTALLDIR)
-
 #####################################################################
 #####################################################################
 # Zip
 # Zip
 #####################################################################
 #####################################################################
@@ -946,6 +883,15 @@ endif
 	-$(DELTREE) *$(SMARTEXT)
 	-$(DELTREE) *$(SMARTEXT)
 	-$(DEL) $(FPCMADE) $(PPAS) link.res $(REDIRFILE)
 	-$(DEL) $(FPCMADE) $(PPAS) link.res $(REDIRFILE)
 
 
+#####################################################################
+# Depend rules
+#####################################################################
+
+.PHONY: fpc_depend
+
+fpc_depend:
+	$(PPDEP) $(UNITOBJECTS)
+
 #####################################################################
 #####################################################################
 # Info rules
 # Info rules
 #####################################################################
 #####################################################################
@@ -1006,6 +952,25 @@ endif
 ifeq ($(OS_TARGET),win32)
 ifeq ($(OS_TARGET),win32)
 vpath %$(PASEXT) win32
 vpath %$(PASEXT) win32
 endif
 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
 # Demo installation for linux