Makefile.i386 revision 1.119
11.119Satatat#	$NetBSD: Makefile.i386,v 1.119 2001/11/16 00:23:03 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.119Satatat# 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.119SatatatMD_CPPFLAGS=	-Di386
311.119Satatat
321.119Satatat##
331.119Satatat## (2) compile settings
341.119Satatat##
351.119SatatatCPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
361.119Satatat		${MD_CPPFLAGS}
371.119SatatatCOPTS?=		-O2
381.119SatatatCFLAGS=		${DEBUG} ${COPTS} ${CWARNFLAGS}
391.119SatatatAFLAGS=		-x assembler-with-cpp -traditional-cpp -D_LOCORE
401.97Schristos
411.119Satatat##
421.119Satatat## (3) libkern and compat 
431.119Satatat##
441.119SatatatKERN_AS=	obj
451.62Smycroft
461.119Satatat##
471.119Satatat## (4) local objects, compile rules, and dependencies
481.119Satatat##
491.119SatatatMD_OBJS=	locore.o
501.119SatatatMD_CFILES=
511.119SatatatMD_SFILES=	${I386}/i386/locore.s
521.1Scgd
531.119Satatatlocore.o: ${I386}/i386/locore.s assym.h
541.119Satatat	${NORMAL_S}
551.116Sthorpej
561.119Satatat##
571.119Satatat## (5) link settings
581.119Satatat##
591.116SthorpejTEXTADDR?=	c0100000
601.119SatatatEXTRA_LINKFLAGS=-X
611.97Schristos.if (${OBJECT_FMT} == "ELF")
621.111SthorpejKERN_LDSCRIPT?=	kern.ldscript
631.119SatatatLINKFORMAT=	-T ${I386}/conf/${KERN_LDSCRIPT}
641.97Schristos.else
651.119SatatatLINKFORMAT=	-z
661.107Sthorpej.endif
671.107Sthorpej
681.119Satatat##
691.119Satatat## (6) port specific target dependencies
701.119Satatat##
711.98Smrg
721.119Satatatfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o svr4_sigcode.o: assym.h
731.119Satatatapmcall.o in_cksum.o pnpbioscall.o: assym.h
741.119Satatat
751.119Satatat##
761.119Satatat## (7) misc settings
771.119Satatat##
781.119SatatatKERNLINTFLAGS=	-bceghnxzF
791.119Satatat
801.119Satatat##
811.119Satatat## (8) config(8) generated machinery
821.119Satatat##
831.98Smrg%INCLUDES
841.74Smycroft
851.1Scgd%OBJS
861.1Scgd
871.1Scgd%CFILES
881.1Scgd
891.62Smycroft%SFILES
901.62Smycroft
911.1Scgd%LOAD
921.50Smycroft
931.119Satatat%RULES
941.1Scgd
951.119Satatat##
961.119Satatat## (9) port independent kernel machinery
971.119Satatat##
981.119Satatat.include "$S/conf/Makefile.kern.inc"
99