Makefile.i386 revision 1.128
11.128Schristos# $NetBSD: Makefile.i386,v 1.128 2002/12/12 17:41:19 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.125SfvdlMD_OBJS= locore.o spl.o vector.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.119Satatat ${NORMAL_S} 571.116Sthorpej 581.119Satatat## 591.119Satatat## (5) link settings 601.119Satatat## 611.116SthorpejTEXTADDR?= c0100000 621.122SatatatLINKFLAGS_NORMAL= -X 631.97Schristos.if (${OBJECT_FMT} == "ELF") 641.111SthorpejKERN_LDSCRIPT?= kern.ldscript 651.119SatatatLINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT} 661.97Schristos.else 671.119SatatatLINKFORMAT= -z 681.107Sthorpej.endif 691.107Sthorpej 701.119Satatat## 711.119Satatat## (6) port specific target dependencies 721.119Satatat## 731.98Smrg 741.126Schristosfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h 751.126Schristossvr4_sigcode.o mach_sigcode.o: assym.h 761.119Satatatapmcall.o in_cksum.o pnpbioscall.o: assym.h 771.128Schristosclock.o: config_time.h 781.119Satatat 791.119Satatat## 801.119Satatat## (7) misc settings 811.119Satatat## 821.119Satatat 831.119Satatat## 841.119Satatat## (8) config(8) generated machinery 851.119Satatat## 861.98Smrg%INCLUDES 871.74Smycroft 881.1Scgd%OBJS 891.1Scgd 901.1Scgd%CFILES 911.1Scgd 921.62Smycroft%SFILES 931.62Smycroft 941.1Scgd%LOAD 951.50Smycroft 961.119Satatat%RULES 971.1Scgd 981.119Satatat## 991.119Satatat## (9) port independent kernel machinery 1001.119Satatat## 1011.119Satatat.include "$S/conf/Makefile.kern.inc" 102