head	1.3;
access;
symbols
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2007.05.26.08.45.15;	author fjoe;	state dead;
branches;
next	1.2;

1.2
date	2005.01.08.11.16.50;	author fjoe;	state Exp;
branches;
next	1.1;

1.1
date	2004.02.17.03.05.13;	author fjoe;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update to 3.00.

PR:		112560
Submitted by:	Peter Johnson
@
text
@--- stub/Makefile.orig	Fri Jun 25 01:35:35 2004
+++ stub/Makefile	Wed Jan  5 13:56:16 2005
@@@@ -27,6 +27,7 @@@@
 	l_djgpp2.h stubify.h \
 	l_exe.h \
 	l_lx_n2b.h l_lx_n2d.h l_lx_n2e.h \
+	l_b_n2b.h l_b_n2d.h l_b_n2e.h \
 	l_sys.h \
 	l_t_n2b.h l_t_n2bs.h l_t_n2d.h l_t_n2ds.h l_t_n2e.h l_t_n2es.h \
 	l_tmt.h \
@@@@ -103,6 +104,17 @@@@
 
 
 ###
+### FreeBSD/i386
+###
+
+CC_FREEBSD_I386 = gcc -march=i386 -mcpu=i386 -Os -fno-strict-aliasing
+CC_FREEBSD_I386 += -falign-functions=0 -falign-jumps=0 -falign-loops=0
+CC_FREEBSD_I386 += -Werror
+CC_FREEBSD_I386 += -Wall -W -Wcast-align -Wcast-qual -Wwrite-strings
+CC_FREEBSD_I386 += -funsigned-char
+
+
+###
 ### Motorola 68000
 ###
 
@@@@ -292,6 +304,31 @@@@
 
 
 # /***********************************************************************
+# // FreeBSD rules
+# ************************************************************************/
+
+l_b_n2b.h: l_linux.c l_xe_n2b.o
+	$(CC_FREEBSD_I386) -DNRV2B -s -o $T.o -c $<
+	ld -s -Map $T.map -o $T.bin l_xe_n2b.o $T.o -static -lc
+	objcopy -S -R .comment -R .note $T.bin
+	$(STRIPELF) $T.bin
+	$(BIN2H) $T.bin freebsd_i386_nrv2b_loader $@@
+
+l_b_n2d.h: l_linux.c l_xe_n2d.o
+	$(CC_FREEBSD_I386) -DNRV2D -s -o $T.o -c $<
+	ld -s -Map $T.map -o $T.bin l_xe_n2d.o $T.o -static -lc
+	objcopy -S -R .comment -R .note $T.bin
+	$(STRIPELF) $T.bin
+	$(BIN2H) $T.bin freebsd_i386_nrv2d_loader $@@
+
+l_b_n2e.h: l_linux.c l_xe_n2e.o
+	$(CC_FREEBSD_I386) -DNRV2E -s -o $T.o -c $<
+	ld -s -Map $T.map -o $T.bin l_xe_n2e.o $T.o -static -lc
+	objcopy -S -R .comment -R .note $T.bin
+	$(STRIPELF) $T.bin
+	$(BIN2H) $T.bin freebsd_i386_nrv2e_loader $@@
+
+# /***********************************************************************
 # // dependencies
 # ************************************************************************/
 
@@@@ -316,10 +353,13 @@@@
 l_djgpp2.h:     n2b_d32.asy  n2d_d32.asy  n2e_d32.asy  $(DEPS2)
 l_exe.h:        n2b_d8e.asy  n2d_d8e.asy  n2e_d8e.asy  $(DEPS2)
 l_lx_n2b.h:     n2b_d32.ash  $(DEPS1)
+l_b_n2b.h:      n2b_d32.ash  $(DEPS1)
 l_xe_n2b.o:     n2b_d32.ash  $(DEPS1)
 l_lx_n2d.h:     n2d_d32.ash  $(DEPS1)
+l_b_n2d.h:      n2d_d32.ash  $(DEPS1)
 l_xe_n2d.o:     n2d_d32.ash  $(DEPS1)
 l_lx_n2e.h:     n2e_d32.ash  $(DEPS1)
+l_b_n2e.h:      n2e_d32.ash  $(DEPS1)
 l_xe_n2e.o:     n2e_d32.ash  $(DEPS1)
 l_sys.h:        n2b_d16.asy  $(DEPS2)
 l_t_n2b.h:      n2b_d.ash    bits.ash  $(DEPS1)
@


1.2
log
@Update to 1.25.

PR:		72472
@
text
@@


1.1
log
@New port: upx 1.24

UPX is a free, portable, extendable, high-performance executable
packer for several different executable formats. It achieves an
excellent compression ratio and offers very fast decompression.
@
text
@d1 2
a2 2
--- stub/Makefile.orig	Wed Jan 28 03:28:03 2004
+++ stub/Makefile	Tue Feb 17 07:22:01 2004
d11 1
a11 3
@@@@ -81,6 +82,13 @@@@
 CC_LINUX_I386 += -funsigned-char
 ###CC_LINUX_I386 += -fwritable-strings -save-temps
d13 5
a17 1
+# Compiler for the FreeBSD/386 stubs.
d24 6
a29 4
 # Preprocessor for the a68k 68000-assembler.
 CPP_M68K = gcc -I$(UCL_UPX) -E -x assembler-with-cpp -Wall -Wp,-P,-C,-traditional,-nostdinc -D__A68K__
 ASM_M68K = a68k -q -x
@@@@ -255,6 +263,31 @@@@
d61 1
a61 1
@@@@ -274,10 +307,13 @@@@
@

