Makefile.i386 revision 1.188
1# $NetBSD: Makefile.i386,v 1.188 2018/02/23 09:00:55 maxv 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 25USE_SSP?= yes 26 27## 28## (1) port identification 29## 30I386= $S/arch/i386 31GENASSYM_CONF= ${I386}/i386/genassym.cf 32 33## 34## (2) compile settings 35## 36DEFCOPTS= -O2 -fno-omit-frame-pointer 37CPPFLAGS+= -Di386 38CFLAGS+= -msoft-float -fno-shrink-wrap 39## no-sse implies no-sse2 but not no-avx 40CFLAGS+= -mno-mmx -mno-sse -mno-avx 41 42## 43## (3) libkern and compat 44## 45OPT_MODULAR= %MODULAR% 46.if !empty(OPT_MODULAR) 47KERN_AS= obj 48.else 49KERN_AS= library 50.endif 51 52## 53## (4) local objects, compile rules, and dependencies 54## 55MD_OBJS= locore.o copy.o spl.o vector.o lock_stubs.o 56MD_CFILES= 57MD_SFILES= ${I386}/i386/locore.S ${I386}/i386/copy.S ${I386}/i386/spl.S \ 58 ${I386}/i386/vector.S ${I386}/i386/lock_stubs.S 59 60locore.o: ${I386}/i386/locore.S assym.h 61 ${NORMAL_S} 62 63copy.o: ${I386}/i386/copy.S assym.h 64 ${NORMAL_S} 65 66spl.o: ${I386}/i386/spl.S assym.h 67 ${NORMAL_S} 68 69vector.o: ${I386}/i386/vector.S assym.h 70 ${NORMAL_S} 71 72lock_stubs.o: ${I386}/i386/lock_stubs.S assym.h 73 ${NORMAL_S} 74 75## 76## (5) link settings 77## 78TEXTADDR?= c0100000 79LINKFLAGS_NORMAL= -X 80KERNLDSCRIPT?= ${I386}/conf/kern.ldscript 81 82## 83## (6) port specific target dependencies 84## 85 86i386func.o: assym.h 87linux_sigcode.o lock_stubs.o: assym.h 88cpufunc.o cpu_in_cksum.o pnpbioscall.o bioscall.o: assym.h 89mptramp.o: assym.h 90acpi_wakeup_low.o busfunc.o: assym.h 91 92## 93## (7) misc settings 94## 95 96.if !make(obj) && !make(clean) && !make(cleandir) 97.BEGIN:: 98 -@rm -f i386 && \ 99 ln -s $S/arch/i386/include i386 100.endif 101 102## 103## (8) config(8) generated machinery 104## 105%INCLUDES 106 107%OBJS 108 109%CFILES 110 111%SFILES 112 113%LOAD 114 115%RULES 116 117## 118## (9) port independent kernel machinery 119## 120.include "$S/conf/Makefile.kern.inc" 121 122## Include rules for ACPI wakecode 123.include "$S/arch/x86/acpi/Makefile.wakecode.inc" 124 125## 126## (10) Appending make options. 127## 128%MAKEOPTIONSAPPEND 129