Browse Source

* reinserted

peter 26 years ago
parent
commit
b5a64f5239
1 changed files with 20 additions and 7 deletions
  1. 20 7
      compiler/Makefile.fpc

+ 20 - 7
compiler/Makefile.fpc

@@ -1,10 +1,9 @@
 #
 #
-#   Makefile.fpc for shedit
+#   Makefile.fpc for Free Pascal Compiler
 #
 #
 
 
 [dirs]
 [dirs]
 fpcdir=..
 fpcdir=..
-unitdir=
 targetdir=.
 targetdir=.
 
 
 [defaults]
 [defaults]
@@ -16,6 +15,20 @@ toolcmp=1
 
 
 
 
 [presettings]
 [presettings]
+# Allow ALPHA, POWERPC, M68K, I386 defines for target cpu
+ifdef ALPHA
+CPU_TARGET=alpha
+endif
+ifdef POWERPC
+CPU_TARGET=powerpc
+endif
+ifdef M68K
+CPU_TARGET=m68k
+endif
+ifdef I386
+CPU_TARGET=i386
+endif
+
 # RTL
 # RTL
 RTL=../rtl
 RTL=../rtl
 UTILS=../utils
 UTILS=../utils
@@ -54,15 +67,15 @@ MSGFILE=error$(FPCLANG).msg
 # set correct defines (-d$(CPU_TARGET) is automaticly added in makefile.fpc)
 # set correct defines (-d$(CPU_TARGET) is automaticly added in makefile.fpc)
 override LOCALDEF+=-dGDB -dBROWSERLOG
 override LOCALDEF+=-dGDB -dBROWSERLOG
 
 
-# for i386 also insert MMX support
+# i386 specific
 ifeq ($(CPU_TARGET),i386)
 ifeq ($(CPU_TARGET),i386)
+# also insert MMX support
 override LOCALDEF+=-dSUPPORT_MMX
 override LOCALDEF+=-dSUPPORT_MMX
-endif
-
 # We don't need the intel and binary writer on linux...
 # We don't need the intel and binary writer on linux...
 ifdef inlinux
 ifdef inlinux
 override LOCALDEF+=-dNOAG386INT -dNOAG386BIN
 override LOCALDEF+=-dNOAG386INT -dNOAG386BIN
 endif
 endif
+endif
 
 
 override LOCALOPT+=$(LOCALDEF)
 override LOCALOPT+=$(LOCALDEF)
 
 
@@ -262,8 +275,8 @@ ifdef inlinux
         $(INSTALLEXE) $(EXENAME) $(LIBINSTALLDIR)
         $(INSTALLEXE) $(EXENAME) $(LIBINSTALLDIR)
 else
 else
         $(MKDIR) $(BININSTALLDIR)
         $(MKDIR) $(BININSTALLDIR)
-ifdef UPX
-        -$(UPX) $(EXENAME)
+ifdef UPXPROG
+        -$(UPXPROG) $(EXENAME)
 endif
 endif
         $(INSTALLEXE) $(EXENAME) $(BININSTALLDIR)
         $(INSTALLEXE) $(EXENAME) $(BININSTALLDIR)
 endif
 endif