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