1 1.7 scole # $NetBSD: Makefile.ia64,v 1.7 2019/05/04 02:06:59 scole Exp $ 2 1.1 cherry 3 1.1 cherry # Makefile for NetBSD 4 1.1 cherry # 5 1.1 cherry # This makefile is constructed from a machine description: 6 1.1 cherry # config machineid 7 1.1 cherry # Most changes should be made in the machine description 8 1.1 cherry # /sys/arch/ia64/conf/``machineid'' 9 1.1 cherry # after which you should do 10 1.1 cherry # config machineid 11 1.1 cherry # Machine generic makefile changes should be made in 12 1.1 cherry # /sys/arch/ia64/conf/Makefile.ia64 13 1.1 cherry # after which config should be rerun for all machines of that type. 14 1.1 cherry # 15 1.1 cherry # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.1 cherry # A better way is to specify -g only for a few files. 17 1.1 cherry # 18 1.1 cherry # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.1 cherry 20 1.1 cherry MACHINE_ARCH= ia64 21 1.1 cherry USETOOLS?= no 22 1.1 cherry NEED_OWN_INSTALL_TARGET?=no 23 1.1 cherry .include <bsd.own.mk> 24 1.1 cherry 25 1.1 cherry ## 26 1.1 cherry ## (1) port identification 27 1.1 cherry ## 28 1.1 cherry IA64= $S/arch/ia64 29 1.1 cherry GENASSYM_CONF= ${IA64}/ia64/genassym.cf 30 1.1 cherry 31 1.1 cherry ## 32 1.1 cherry ## (2) compile settings 33 1.1 cherry ## 34 1.1 cherry CPPFLAGS+= -mconstant-gp -Dia64 35 1.1 cherry AFLAGS+= -x assembler-with-cpp -Wa,-x 36 1.1 cherry 37 1.7 scole # XXX don't optimize pmap.c to get rid of assembler warnings like: 38 1.7 scole # Warning: Use of 'st8' may violate RAW dependency 'RR#' (data) 39 1.7 scole # Happening with gcc7 and iirc several years worth of prior gcc versions 40 1.7 scole COPTS.pmap.c+= -O0 41 1.7 scole 42 1.1 cherry ## 43 1.1 cherry ## (3) libkern and compat 44 1.1 cherry ## 45 1.6 rin OPT_MODULAR= %MODULAR% 46 1.1 cherry 47 1.1 cherry ## 48 1.1 cherry ## (4) local objects, compile rules, and dependencies 49 1.1 cherry ## 50 1.1 cherry MD_OBJS= locore.o 51 1.1 cherry MD_CFILES= 52 1.1 cherry MD_SFILES= ${IA64}/ia64/locore.S 53 1.1 cherry 54 1.1 cherry locore.o: ${IA64}/ia64/locore.S assym.h 55 1.1 cherry ${NORMAL_S} 56 1.1 cherry ## 57 1.1 cherry ## (5) link settings 58 1.1 cherry ## 59 1.1 cherry ##TEXTADDR?= 0xdeadbeeffeeddead 60 1.1 cherry LINKFLAGS_NORMAL= -X 61 1.4 uebayasi KERNLDSCRIPT?= ${IA64}/conf/kern.ldscript 62 1.1 cherry 63 1.1 cherry ## 64 1.1 cherry ## (6) port specific target dependencies 65 1.1 cherry ## 66 1.1 cherry 67 1.1 cherry ## 68 1.1 cherry ## (7) misc settings 69 1.1 cherry ## 70 1.1 cherry 71 1.1 cherry ## 72 1.1 cherry ## (8) config(8) generated machinery 73 1.1 cherry ## 74 1.1 cherry %INCLUDES 75 1.1 cherry 76 1.1 cherry %OBJS 77 1.1 cherry 78 1.1 cherry %CFILES 79 1.1 cherry 80 1.1 cherry %SFILES 81 1.1 cherry 82 1.1 cherry %LOAD 83 1.1 cherry 84 1.1 cherry %RULES 85 1.1 cherry 86 1.1 cherry 87 1.1 cherry ## 88 1.1 cherry ## (9) port independent kernel machinery 89 1.1 cherry ## 90 1.1 cherry .include "$S/conf/Makefile.kern.inc" 91 1.1 cherry 92 1.1 cherry ## 93 1.1 cherry ## (10) Appending make options. 94 1.1 cherry ## 95 1.1 cherry %MAKEOPTIONSAPPEND 96