Makefile.i386 revision 1.150
11.150Schristos# $NetBSD: Makefile.i386,v 1.150 2007/05/30 17:16:55 christos 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.138SchristosGENASSYM_CONF= ${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.137Sdsl.if !empty(IDENT:M-DLKM) 411.119SatatatKERN_AS= obj 421.137Sdsl.else 431.137SdslKERN_AS= library 441.137Sdsl.endif 451.62Smycroft 461.119Satatat## 471.119Satatat## (4) local objects, compile rules, and dependencies 481.119Satatat## 491.150SchristosMD_OBJS= locore.o copy.o spl.o vector.o lock_stubs.o 501.119SatatatMD_CFILES= 511.141SyamtMD_SFILES= ${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \ 521.150Schristos ${I386}/i386/vector.S ${I386}/i386/lock_stubs.S 531.1Scgd 541.125Sfvdllocore.o: ${I386}/i386/locore.S assym.h 551.125Sfvdl ${NORMAL_S} 561.125Sfvdl 571.141Syamtcopy.o: ${I386}/i386/copy.S assym.h 581.141Syamt ${NORMAL_S} 591.141Syamt 601.125Sfvdlspl.o: ${I386}/i386/spl.S assym.h 611.125Sfvdl ${NORMAL_S} 621.125Sfvdl 631.125Sfvdlvector.o: ${I386}/i386/vector.S assym.h 641.129Schristos ${NORMAL_S} 651.129Schristos 661.150Schristoslock_stubs.o: ${I386}/i386/lock_stubs.S assym.h 671.150Schristos ${NORMAL_S} 681.150Schristos 691.119Satatat## 701.119Satatat## (5) link settings 711.119Satatat## 721.116SthorpejTEXTADDR?= c0100000 731.122SatatatLINKFLAGS_NORMAL= -X 741.97Schristos.if (${OBJECT_FMT} == "ELF") 751.111SthorpejKERN_LDSCRIPT?= kern.ldscript 761.119SatatatLINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT} 771.97Schristos.else 781.119SatatatLINKFORMAT= -z 791.107Sthorpej.endif 801.107Sthorpej 811.119Satatat## 821.119Satatat## (6) port specific target dependencies 831.119Satatat## 841.98Smrg 851.126Schristosfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h 861.126Schristossvr4_sigcode.o mach_sigcode.o: assym.h 871.130Schristosapmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h 881.132Ssimonbmptramp.o: assym.h 891.146Schristoskvm86call.o: assym.h 901.128Schristosclock.o: config_time.h 911.119Satatat 921.119Satatat## 931.119Satatat## (7) misc settings 941.119Satatat## 951.119Satatat 961.119Satatat## 971.119Satatat## (8) config(8) generated machinery 981.119Satatat## 991.98Smrg%INCLUDES 1001.74Smycroft 1011.1Scgd%OBJS 1021.1Scgd 1031.1Scgd%CFILES 1041.1Scgd 1051.62Smycroft%SFILES 1061.62Smycroft 1071.1Scgd%LOAD 1081.50Smycroft 1091.119Satatat%RULES 1101.1Scgd 1111.144Sgdamore## Include rules for Atheros WLAN 1121.144Sgdamore.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc" 1131.133Sjmc 1141.119Satatat## 1151.119Satatat## (9) port independent kernel machinery 1161.119Satatat## 1171.119Satatat.include "$S/conf/Makefile.kern.inc" 1181.135Sthorpej 1191.135Sthorpej## 1201.135Sthorpej## (10) Appending make options. 1211.135Sthorpej## 1221.135Sthorpej%MAKEOPTIONSAPPEND 123