1 1.3 uebayasi # $NetBSD: Makefile.ia64,v 1.4 2015/08/18 10:18:20 uebayasi 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.1 cherry ## 38 1.1 cherry ## (3) libkern and compat 39 1.1 cherry ## 40 1.1 cherry KERN_AS= obj 41 1.1 cherry 42 1.1 cherry ## 43 1.1 cherry ## (4) local objects, compile rules, and dependencies 44 1.1 cherry ## 45 1.1 cherry MD_OBJS= locore.o 46 1.1 cherry MD_CFILES= 47 1.1 cherry MD_SFILES= ${IA64}/ia64/locore.S 48 1.1 cherry 49 1.1 cherry locore.o: ${IA64}/ia64/locore.S assym.h 50 1.1 cherry ${NORMAL_S} 51 1.1 cherry ## 52 1.1 cherry ## (5) link settings 53 1.1 cherry ## 54 1.1 cherry ##TEXTADDR?= 0xdeadbeeffeeddead 55 1.1 cherry LINKFLAGS_NORMAL= -X 56 1.4 uebayasi KERNLDSCRIPT?= ${IA64}/conf/kern.ldscript 57 1.4 uebayasi LINKSCRIPT= -T ${KERNLDSCRIPT} 58 1.1 cherry 59 1.1 cherry ## 60 1.1 cherry ## (6) port specific target dependencies 61 1.1 cherry ## 62 1.1 cherry 63 1.1 cherry ## 64 1.1 cherry ## (7) misc settings 65 1.1 cherry ## 66 1.1 cherry 67 1.1 cherry ## 68 1.1 cherry ## (8) config(8) generated machinery 69 1.1 cherry ## 70 1.1 cherry %INCLUDES 71 1.1 cherry 72 1.1 cherry %OBJS 73 1.1 cherry 74 1.1 cherry %CFILES 75 1.1 cherry 76 1.1 cherry %SFILES 77 1.1 cherry 78 1.1 cherry %LOAD 79 1.1 cherry 80 1.1 cherry %RULES 81 1.1 cherry 82 1.1 cherry 83 1.1 cherry ## 84 1.1 cherry ## (9) port independent kernel machinery 85 1.1 cherry ## 86 1.1 cherry .include "$S/conf/Makefile.kern.inc" 87 1.1 cherry 88 1.1 cherry ## 89 1.1 cherry ## (10) Appending make options. 90 1.1 cherry ## 91 1.1 cherry %MAKEOPTIONSAPPEND 92