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