Makefile.i386 revision 1.126
11.126Schristos# $NetBSD: Makefile.i386,v 1.126 2002/11/24 18:56:01 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.123Sthorpej.if defined(HAVE_GCC3) 361.123SthorpejAFLAGS+= -x assembler-with-cpp 371.123Sthorpej.else 381.121SatatatAFLAGS+= -x assembler-with-cpp -traditional-cpp 391.123Sthorpej.endif 401.97Schristos 411.119Satatat## 421.120Slukem## (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.125SfvdlMD_OBJS= locore.o spl.o vector.o 501.119SatatatMD_CFILES= 511.125SfvdlMD_SFILES= ${I386}/i386/locore.S 521.1Scgd 531.125Sfvdllocore.o: ${I386}/i386/locore.S assym.h 541.125Sfvdl ${NORMAL_S} 551.125Sfvdl 561.125Sfvdlspl.o: ${I386}/i386/spl.S assym.h 571.125Sfvdl ${NORMAL_S} 581.125Sfvdl 591.125Sfvdlvector.o: ${I386}/i386/vector.S assym.h 601.119Satatat ${NORMAL_S} 611.116Sthorpej 621.119Satatat## 631.119Satatat## (5) link settings 641.119Satatat## 651.116SthorpejTEXTADDR?= c0100000 661.122SatatatLINKFLAGS_NORMAL= -X 671.97Schristos.if (${OBJECT_FMT} == "ELF") 681.111SthorpejKERN_LDSCRIPT?= kern.ldscript 691.119SatatatLINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT} 701.97Schristos.else 711.119SatatatLINKFORMAT= -z 721.107Sthorpej.endif 731.107Sthorpej 741.119Satatat## 751.119Satatat## (6) port specific target dependencies 761.119Satatat## 771.98Smrg 781.126Schristosfreebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h 791.126Schristossvr4_sigcode.o mach_sigcode.o: assym.h 801.119Satatatapmcall.o in_cksum.o pnpbioscall.o: assym.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