PERFORCE change 31945 for review

Peter Wemm peter at FreeBSD.org
Tue May 27 14:44:52 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=31945

Change 31945 by peter at peter_hammer on 2003/05/27 14:44:02

	build in 32 bit mode

Affected files ...

.. //depot/projects/hammer/sys/boot/ficl/Makefile#2 edit

Differences ...

==== //depot/projects/hammer/sys/boot/ficl/Makefile#2 (text+ko) ====

@@ -34,8 +34,24 @@
 # Optional OO extension softwords
 #SOFTWORDS+=	oo.fr classes.fr
 
+.if defined(REALLY_AMD64)
+CFLAGS+=	-m32 -I.
+LDFLAGS=	-m elf_i386_fbsd
+.endif
+
 CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
 
 softcore.c: ${SOFTWORDS} softcore.awk
 	(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
 	    | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
+
+.if defined(REALLY_AMD64)
+${SRCS:M*.c:R:S/$/.o/g}: machine
+
+beforedepend ${OBJS}: machine
+
+machine:
+	ln -sf ${.CURDIR}/../../i386/include machine
+
+CLEANFILES+=	machine
+.endif


More information about the p4-projects mailing list