Makefile.i386 revision 1.132
1# $NetBSD: Makefile.i386,v 1.132 2003/07/05 16:56:10 simonb Exp $ 2 3# Makefile for NetBSD 4# 5# This makefile is constructed from a machine description: 6# config machineid 7# Most changes should be made in the machine description 8# /sys/arch/i386/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/i386/conf/Makefile.i386 13# after which config should be rerun for all machines of that type. 14# 15# To specify debugging, add the config line: makeoptions DEBUG="-g" 16# A better way is to specify -g only for a few files. 17# 18# makeoptions DEBUGLIST="uvm* trap if_*" 19 20MACHINE_ARCH= i386 21USETOOLS?= no 22NEED_OWN_INSTALL_TARGET?=no 23.include <bsd.own.mk> 24 25## 26## (1) port identification 27## 28I386= $S/arch/i386 29GENASSYM= ${I386}/i386/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -Di386 35AFLAGS+= -x assembler-with-cpp -traditional-cpp 36 37## 38## (3) libkern and compat 39## 40KERN_AS= obj 41 42## 43## (4) local objects, compile rules, and dependencies 44## 45MD_OBJS= locore.o spl.o vector.o microtime.o 46MD_CFILES= 47MD_SFILES= ${I386}/i386/locore.S ${I386}/i386/spl.S \ 48 ${I386}/i386/vector.S ${I386}/i386/microtime.S 49 50locore.o: ${I386}/i386/locore.S assym.h 51 ${NORMAL_S} 52 53spl.o: ${I386}/i386/spl.S assym.h 54 ${NORMAL_S} 55 56vector.o: ${I386}/i386/vector.S assym.h 57 ${NORMAL_S} 58 59microtime.o: ${I386}/i386/microtime.S assym.h 60 ${NORMAL_S} 61 62## 63## (5) link settings 64## 65TEXTADDR?= c0100000 66LINKFLAGS_NORMAL= -X 67.if (${OBJECT_FMT} == "ELF") 68KERN_LDSCRIPT?= kern.ldscript 69LINKFORMAT= -T ${I386}/conf/${KERN_LDSCRIPT} 70.else 71LINKFORMAT= -z 72.endif 73 74## 75## (6) port specific target dependencies 76## 77 78freebsd_sigcode.o ibcs2_sigcode.o linux_sigcode.o: assym.h 79svr4_sigcode.o mach_sigcode.o: assym.h 80apmcall.o in_cksum.o pnpbioscall.o bioscall.o: assym.h 81mptramp.o: assym.h 82clock.o: config_time.h 83 84## 85## (7) misc settings 86## 87 88## 89## (8) config(8) generated machinery 90## 91%INCLUDES 92 93%OBJS 94 95%CFILES 96 97%SFILES 98 99%LOAD 100 101%RULES 102 103## 104## (9) port independent kernel machinery 105## 106.include "$S/conf/Makefile.kern.inc" 107