Makefile.i386 revision 1.122
11.122Satatat#	$NetBSD: Makefile.i386,v 1.122 2001/12/09 05:00:45 atatat Exp $
21.62Smycroft
31.8Scgd# Makefile for NetBSD
41.1Scgd#
51.1Scgd# This makefile is constructed from a machine description:
61.1Scgd#	config machineid
71.1Scgd# Most changes should be made in the machine description
81.36Sderaadt#	/sys/arch/i386/conf/``machineid''
91.1Scgd# after which you should do
101.62Smycroft#	config machineid
111.62Smycroft# Machine generic makefile changes should be made in
121.36Sderaadt#	/sys/arch/i386/conf/Makefile.i386
131.42Smycroft# after which config should be rerun for all machines of that type.
141.119Satatat#
151.120Slukem# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.119Satatat# A better way is to specify -g only for a few files.
171.119Satatat#
181.119Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.117Sthorpej
201.119SatatatMACHINE_ARCH=	i386
211.118SjmcUSETOOLS?=	no
221.119SatatatNEED_OWN_INSTALL_TARGET?=no
231.119Satatat.include <bsd.own.mk>
241.42Smycroft
251.119Satatat##
261.119Satatat## (1) port identification
271.119Satatat##
281.119SatatatI386=		$S/arch/i386
291.119SatatatGENASSYM=	${I386}/i386/genassym.cf
301.119Satatat
311.119Satatat##
321.119Satatat## (2) compile settings
331.119Satatat##
341.121SatatatCPPFLAGS+=	-Di386
351.121SatatatAFLAGS+=	-x assembler-with-cpp -traditional-cpp
361.97Schristos
371.119Satatat##
381.120Slukem## (3) libkern and compat
391.119Satatat##
401.119SatatatKERN_AS=	obj
411.62Smycroft
421.119Satatat##
431.119Satatat## (4) local objects, compile rules, and dependencies
441.119Satatat##
451.119SatatatMD_OBJS=	locore.o
461.119SatatatMD_CFILES=
471.119SatatatMD_SFILES=	${I386}/i386/locore.s
481.1Scgd
491.119Satatatlocore.o: ${I386}/i386/locore.s assym.h
501.119Satatat	${NORMAL_S}
511.116Sthorpej
521.119Satatat##
531.119Satatat## (5) link settings
541.119Satatat##
551.116SthorpejTEXTADDR?=	c0100000
561.122SatatatLINKFLAGS_NORMAL=	-X
571.97Schristos.if (${OBJECT_FMT} == "ELF")
581.111SthorpejKERN_LDSCRIPT?=	kern.ldscript
591.119SatatatLINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
601.97Schristos.else
611.119SatatatLINKFORMAT=	-z
621.107Sthorpej.endif
631.107Sthorpej
641.119Satatat##
651.119Satatat## (6) port specific target dependencies
661.119Satatat##
671.98Smrg
681.119Satatatfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
691.119Satatatapmcall.o in_cksum.o pnpbioscall.o: assym.h
701.119Satatat
711.119Satatat##
721.119Satatat## (7) misc settings
731.119Satatat##
741.119SatatatKERNLINTFLAGS=	-bceghnxzF
751.119Satatat
761.119Satatat##
771.119Satatat## (8) config(8) generated machinery
781.119Satatat##
791.98Smrg%INCLUDES
801.74Smycroft
811.1Scgd%OBJS
821.1Scgd
831.1Scgd%CFILES
841.1Scgd
851.62Smycroft%SFILES
861.62Smycroft
871.1Scgd%LOAD
881.50Smycroft
891.119Satatat%RULES
901.1Scgd
911.119Satatat##
921.119Satatat## (9) port independent kernel machinery
931.119Satatat##
941.119Satatat.include "$S/conf/Makefile.kern.inc"
95