|
@@ -1,5 +1,5 @@
|
|
|
#
|
|
|
-# Makefile generated by fpcmake v0.99.13 on 1999-11-25 23:49
|
|
|
+# Makefile generated by fpcmake v0.99.13 on 1999-12-12 18:45
|
|
|
#
|
|
|
|
|
|
defaultrule: all
|
|
@@ -65,12 +65,17 @@ endif
|
|
|
|
|
|
# What compiler to use ?
|
|
|
ifndef FPC
|
|
|
+# Compatibility with old makefiles
|
|
|
+ifdef PP
|
|
|
+export FPC=$(PP)
|
|
|
+else
|
|
|
ifdef inOS2
|
|
|
export FPC=ppos2$(EXEEXT)
|
|
|
else
|
|
|
export FPC=ppc386$(EXEEXT)
|
|
|
endif
|
|
|
endif
|
|
|
+endif
|
|
|
|
|
|
# Target OS
|
|
|
ifndef OS_TARGET
|
|
@@ -133,6 +138,9 @@ endif
|
|
|
|
|
|
override UNITOBJECTS+=doc_text shedit sh_pas sh_xml
|
|
|
ifeq ($(OS_TARGET),linux)
|
|
|
+override UNITOBJECTS+=gtkshedit
|
|
|
+endif
|
|
|
+ifeq ($(OS_TARGET),linux)
|
|
|
override EXEOBJECTS+=gtkdemo
|
|
|
endif
|
|
|
ifeq ($(OS_TARGET),win32)
|
|
@@ -209,6 +217,7 @@ endif
|
|
|
|
|
|
# create fcldir,rtldir,unitdir
|
|
|
ifdef FPCDIR
|
|
|
+override FPCDIR:=$(subst \,/,$(FPCDIR))
|
|
|
ifneq ($(FPCDIR),.)
|
|
|
override RTLDIR=$(FPCDIR)/rtl/$(OS_TARGET)
|
|
|
override FCLDIR=$(FPCDIR)/fcl/$(OS_TARGET)
|
|
@@ -347,7 +356,15 @@ ifdef CFGFILE
|
|
|
override FPCOPT+=@$(CFGFILE)
|
|
|
endif
|
|
|
|
|
|
-override COMPILER=$(FPC) $(FPCOPT)
|
|
|
+# For win32 the options are passed using the environment variable FPCEXTCMD
|
|
|
+ifeq ($(OS_SOURCE),win32)
|
|
|
+override FPCEXTCMD:=$(FPCOPT)
|
|
|
+override FPCOPT:=!FPCEXTCMD
|
|
|
+export FPCEXTCMD
|
|
|
+endif
|
|
|
+
|
|
|
+# Compiler commandline
|
|
|
+override COMPILER:=$(FPC) $(FPCOPT)
|
|
|
|
|
|
#####################################################################
|
|
|
# Shell tools
|
|
@@ -439,7 +456,7 @@ endif
|
|
|
ifeq (,$(findstring -s ,$(COMPILER)))
|
|
|
EXECPPAS=
|
|
|
else
|
|
|
-EXECPPAS=@$(PPAS)
|
|
|
+EXECPPAS:=@$(PPAS)
|
|
|
endif
|
|
|
|
|
|
# ldconfig to rebuild .so cache
|
|
@@ -766,7 +783,7 @@ fpc_debug:
|
|
|
|
|
|
# Default sharedlib units are all unit objects
|
|
|
ifndef SHAREDLIBUNITOBJECTS
|
|
|
-SHAREDLIBUNITOBJECTS=$(UNITOBJECTS)
|
|
|
+SHAREDLIBUNITOBJECTS:=$(UNITOBJECTS)
|
|
|
endif
|
|
|
|
|
|
fpc_smart:
|
|
@@ -796,13 +813,13 @@ endif
|
|
|
ifdef INSTALLPPUFILES
|
|
|
ifdef PPUFILES
|
|
|
ifdef inlinux
|
|
|
-INSTALLPPULINKFILES=$(shell $(PPUFILES) -S -O $(INSTALLPPUFILES))
|
|
|
-INSTALLPPULIBFILES=$(shell $(PPUFILES) -L $(INSTALLPPUFILES))
|
|
|
+INSTALLPPULINKFILES:=$(shell $(PPUFILES) -S -O $(INSTALLPPUFILES))
|
|
|
+INSTALLPPULIBFILES:=$(shell $(PPUFILES) -L $(INSTALLPPUFILES))
|
|
|
else
|
|
|
-INSTALLPPULINKFILES=$(shell $(PPUFILES) $(INSTALLPPUFILES))
|
|
|
+INSTALLPPULINKFILES:=$(shell $(PPUFILES) $(INSTALLPPUFILES))
|
|
|
endif
|
|
|
else
|
|
|
-INSTALLPPULINKFILES=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES))
|
|
|
+INSTALLPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(INSTALLPPUFILES))
|
|
|
endif
|
|
|
endif
|
|
|
|
|
@@ -876,7 +893,7 @@ endif
|
|
|
|
|
|
# Test dir if none specified
|
|
|
ifndef DESTZIPDIR
|
|
|
-DESTZIPDIR=$(BASEDIR)
|
|
|
+DESTZIPDIR:=$(BASEDIR)
|
|
|
endif
|
|
|
|
|
|
# Add .zip/.tar.gz extension
|
|
@@ -931,9 +948,9 @@ endif
|
|
|
|
|
|
ifdef CLEANPPUFILES
|
|
|
ifdef PPUFILES
|
|
|
-CLEANPPULINKFILES=$(shell $(PPUFILES) $(CLEANPPUFILES))
|
|
|
+CLEANPPULINKFILES:=$(shell $(PPUFILES) $(CLEANPPUFILES))
|
|
|
else
|
|
|
-CLEANPPULINKFILES=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES))
|
|
|
+CLEANPPULINKFILES:=$(subst $(PPUEXT),$(OEXT),$(CLEANPPUFILES))
|
|
|
endif
|
|
|
endif
|
|
|
|