|
@@ -276,23 +276,24 @@ export SED:=$(firstword $(SED))
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|
|
-# Look if UPX is found for go32v2 and win32
|
|
|
|
-ifndef UPX
|
|
|
|
|
|
+# Look if UPX is found for go32v2 and win32. We can't use $UPX becuase
|
|
|
|
+# upx uses that one itself (PFV)
|
|
|
|
+ifndef UPXPROG
|
|
ifeq ($(OS_TARGET),go32v2)
|
|
ifeq ($(OS_TARGET),go32v2)
|
|
-UPX=1
|
|
|
|
|
|
+UPXPROG=1
|
|
endif
|
|
endif
|
|
ifeq ($(OS_TARGET),win32)
|
|
ifeq ($(OS_TARGET),win32)
|
|
-UPX=1
|
|
|
|
|
|
+UPXPROG=1
|
|
endif
|
|
endif
|
|
-ifdef UPX
|
|
|
|
-UPX=$(strip $(wildcard $(addsuffix /upx$(EXEEXT),$(SEARCHPATH))))
|
|
|
|
|
|
+ifdef UPXPROG
|
|
|
|
+UPXPROG=$(strip $(wildcard $(addsuffix /upx$(EXEEXT),$(SEARCHPATH))))
|
|
ifeq ($(UPX),)
|
|
ifeq ($(UPX),)
|
|
-UPX=
|
|
|
|
|
|
+UPXPROG=
|
|
else
|
|
else
|
|
-export UPX:=$(firstword $(UPX))
|
|
|
|
|
|
+export UPXPROG:=$(firstword $(UPX))
|
|
endif
|
|
endif
|
|
else
|
|
else
|
|
-UPX=
|
|
|
|
|
|
+UPXPROG=
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|
|
@@ -764,8 +765,8 @@ ifndef DEFAULTUNITS
|
|
ifdef EXEOBJECTS
|
|
ifdef EXEOBJECTS
|
|
$(MKDIR) $(BININSTALLDIR)
|
|
$(MKDIR) $(BININSTALLDIR)
|
|
# Compress the exes if upx is defined
|
|
# Compress the exes if upx is defined
|
|
-ifdef UPX
|
|
|
|
- -$(UPX) $(EXEFILES)
|
|
|
|
|
|
+ifdef UPXPROG
|
|
|
|
+ -$(UPXPROG) $(EXEFILES)
|
|
endif
|
|
endif
|
|
$(INSTALLEXE) $(EXEFILES) $(BININSTALLDIR)
|
|
$(INSTALLEXE) $(EXEFILES) $(BININSTALLDIR)
|
|
endif
|
|
endif
|
|
@@ -969,8 +970,8 @@ endif
|
|
ifdef CMP
|
|
ifdef CMP
|
|
@$(ECHO) Cmp....... $(CMP)
|
|
@$(ECHO) Cmp....... $(CMP)
|
|
endif
|
|
endif
|
|
-ifdef UPX
|
|
|
|
- @$(ECHO) Upx....... $(UPX)
|
|
|
|
|
|
+ifdef UPXPROG
|
|
|
|
+ @$(ECHO) Upx....... $(UPXPROG)
|
|
endif
|
|
endif
|
|
ifdef ZIPPROG
|
|
ifdef ZIPPROG
|
|
@$(ECHO) Zip....... $(ZIPPROG)
|
|
@$(ECHO) Zip....... $(ZIPPROG)
|
|
@@ -1043,7 +1044,10 @@ endif
|
|
|
|
|
|
#
|
|
#
|
|
# $Log$
|
|
# $Log$
|
|
-# Revision 1.43 1999-08-09 22:19:46 peter
|
|
|
|
|
|
+# Revision 1.44 1999-08-13 15:35:37 peter
|
|
|
|
+# * UPX -> UPXPROG, because upx 0.80+ use the environment itself
|
|
|
|
+#
|
|
|
|
+# Revision 1.43 1999/08/09 22:19:46 peter
|
|
# * classes vmt changed to only positive addresses
|
|
# * classes vmt changed to only positive addresses
|
|
# * sharedlib creation is working
|
|
# * sharedlib creation is working
|
|
#
|
|
#
|