Makefile.i386 revision 1.186
11.186Smaxv# $NetBSD: Makefile.i386,v 1.186 2017/08/09 19:11:13 maxv 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.166StronUSE_SSP?= yes 261.166Stron 271.119Satatat## 281.119Satatat## (1) port identification 291.119Satatat## 301.119SatatatI386= $S/arch/i386 311.138SchristosGENASSYM_CONF= ${I386}/i386/genassym.cf 321.119Satatat 331.119Satatat## 341.119Satatat## (2) compile settings 351.119Satatat## 361.182SjakllschDEFCOPTS= -O2 -fno-omit-frame-pointer 371.121SatatatCPPFLAGS+= -Di386 381.181SjoergCFLAGS+= -msoft-float 391.180Sdsl## no-sse implies no-sse2 but not no-avx 401.180SdslCFLAGS+= -mno-mmx -mno-sse -mno-avx 411.170Sjoerg 421.119Satatat## 431.120Slukem## (3) libkern and compat 441.119Satatat## 451.164ScubeOPT_MODULAR= %MODULAR% 461.163Sapb.if !empty(OPT_MODULAR) 471.119SatatatKERN_AS= obj 481.137Sdsl.else 491.137SdslKERN_AS= library 501.137Sdsl.endif 511.62Smycroft 521.119Satatat## 531.119Satatat## (4) local objects, compile rules, and dependencies 541.119Satatat## 551.150SchristosMD_OBJS= locore.o copy.o spl.o vector.o lock_stubs.o 561.119SatatatMD_CFILES= 571.141SyamtMD_SFILES= ${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \ 581.150Schristos ${I386}/i386/vector.S ${I386}/i386/lock_stubs.S 591.1Scgd 601.125Sfvdllocore.o: ${I386}/i386/locore.S assym.h 611.125Sfvdl ${NORMAL_S} 621.125Sfvdl 631.141Syamtcopy.o: ${I386}/i386/copy.S assym.h 641.141Syamt ${NORMAL_S} 651.141Syamt 661.125Sfvdlspl.o: ${I386}/i386/spl.S assym.h 671.125Sfvdl ${NORMAL_S} 681.125Sfvdl 691.125Sfvdlvector.o: ${I386}/i386/vector.S assym.h 701.129Schristos ${NORMAL_S} 711.129Schristos 721.150Schristoslock_stubs.o: ${I386}/i386/lock_stubs.S assym.h 731.150Schristos ${NORMAL_S} 741.150Schristos 751.119Satatat## 761.119Satatat## (5) link settings 771.119Satatat## 781.116SthorpejTEXTADDR?= c0100000 791.122SatatatLINKFLAGS_NORMAL= -X 801.184SuebayasiKERNLDSCRIPT?= ${I386}/conf/kern.ldscript 811.107Sthorpej 821.119Satatat## 831.119Satatat## (6) port specific target dependencies 841.119Satatat## 851.98Smrg 861.186Smaxvi386func.o: assym.h 871.186Smaxvlinux_sigcode.o lock_stubs.o: assym.h 881.177Sdslcpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h 891.132Ssimonbmptramp.o: assym.h 901.178Sdslacpi_wakeup_low.o busfunc.o: assym.h 911.119Satatat 921.119Satatat## 931.119Satatat## (7) misc settings 941.119Satatat## 951.119Satatat 961.165Stsutsui.if !make(obj) && !make(clean) && !make(cleandir) 971.159Smrg.BEGIN: 981.159Smrg @rm -f i386 && \ 991.159Smrg ln -s $S/arch/i386/include i386 1001.159Smrg.endif 1011.159Smrg 1021.119Satatat## 1031.119Satatat## (8) config(8) generated machinery 1041.119Satatat## 1051.98Smrg%INCLUDES 1061.74Smycroft 1071.1Scgd%OBJS 1081.1Scgd 1091.1Scgd%CFILES 1101.1Scgd 1111.62Smycroft%SFILES 1121.62Smycroft 1131.1Scgd%LOAD 1141.50Smycroft 1151.119Satatat%RULES 1161.1Scgd 1171.119Satatat## 1181.119Satatat## (9) port independent kernel machinery 1191.119Satatat## 1201.119Satatat.include "$S/conf/Makefile.kern.inc" 1211.135Sthorpej 1221.175Schristos## Include rules for ACPI wakecode 1231.175Schristos.include "$S/arch/x86/acpi/Makefile.wakecode.inc" 1241.175Schristos 1251.135Sthorpej## 1261.135Sthorpej## (10) Appending make options. 1271.135Sthorpej## 1281.135Sthorpej%MAKEOPTIONSAPPEND 129