Makefile.i386 revision 1.129
11.129Schristos# $NetBSD: Makefile.i386,v 1.129 2003/03/02 22:19:05 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.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.129SchristosMD_OBJS= locore.o spl.o vector.o microtime.o 461.119SatatatMD_CFILES= 471.125SfvdlMD_SFILES= ${I386}/i386/locore.S 481.1Scgd 491.125Sfvdllocore.o: ${I386}/i386/locore.S assym.h 501.125Sfvdl ${NORMAL_S} 511.125Sfvdl 521.125Sfvdlspl.o: ${I386}/i386/spl.S assym.h 531.125Sfvdl ${NORMAL_S} 541.125Sfvdl 551.125Sfvdlvector.o: ${I386}/i386/vector.S assym.h 561.129Schristos ${NORMAL_S} 571.129Schristos 581.129Schristosmicrotime.o: ${I386}/i386/microtime.S assym.h 591.119Satatat ${NORMAL_S} 601.116Sthorpej 611.119Satatat## 621.119Satatat## (5) link settings 631.119Satatat## 641.116SthorpejTEXTADDR?= c0100000 651.122SatatatLINKFLAGS_NORMAL= -X 661.97Schristos.if (${OBJECT_FMT} == "ELF") 671.111SthorpejKERN_LDSCRIPT?= kern.ldscript 681.119SatatatLINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT} 691.97Schristos.else 701.119SatatatLINKFORMAT= -z 711.107Sthorpej.endif 721.107Sthorpej 731.119Satatat## 741.119Satatat## (6) port specific target dependencies 751.119Satatat## 761.98Smrg 771.126Schristosfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h 781.126Schristossvr4_sigcode.o mach_sigcode.o: assym.h 791.119Satatatapmcall.o in_cksum.o pnpbioscall.o: assym.h 801.128Schristosclock.o: config_time.h 811.119Satatat 821.119Satatat## 831.119Satatat## (7) misc settings 841.119Satatat## 851.119Satatat 861.119Satatat## 871.119Satatat## (8) config(8) generated machinery 881.119Satatat## 891.98Smrg%INCLUDES 901.74Smycroft 911.1Scgd%OBJS 921.1Scgd 931.1Scgd%CFILES 941.1Scgd 951.62Smycroft%SFILES 961.62Smycroft 971.1Scgd%LOAD 981.50Smycroft 991.119Satatat%RULES 1001.1Scgd 1011.119Satatat## 1021.119Satatat## (9) port independent kernel machinery 1031.119Satatat## 1041.119Satatat.include "$S/conf/Makefile.kern.inc" 105