1 # $NetBSD: Makefile.hp700,v 1.15 2009/05/08 09:33:57 skrll Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/hp700/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/hp700/conf/Makefile.hp700
13 # after which config should be rerun for all machines of that type.
15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
16 # A better way is to specify -g only for a few files.
18 # makeoptions DEBUGLIST="uvm* trap if_*"
21 NEED_OWN_INSTALL_TARGET?=no
25 ## (1) port identification
29 GENASSYM_CONF= ${HP700}/hp700/genassym.cf
32 ## (2) compile settings
34 CPPFLAGS+= -Dhppa -Dhp700
35 CFLAGS+= -mpa-risc-1-1 -msoft-float -mdisable-fpregs
37 .include "${HPPA}/spmath/Makefile.inc"
42 LIBSPMATH= ${SPMATH_PROF}
45 CFLAGS+= -mno-space-regs -mfast-indirect-calls -mportable-runtime
46 AFLAGS+= -x assembler-with-cpp -P -traditional
50 CFLAGS+= -fno-omit-frame-pointer
54 ## (3) libkern and compat
59 ## (4) local objects, compile rules, and dependencies
61 MD_OBJS= locore.o ${LIBSPMATH}
63 MD_SFILES= ${HP700}/hp700/locore.S
65 locore.o: ${HP700}/hp700/locore.S
71 LINKFORMAT= -T ${HP700}/conf/ld.script
74 EXTRA_LINKFLAGS= -Map $@.map
77 ## (6) port specific target dependencies
80 # depend on CPU configuration
81 db_machdep.o machdep.o pmap.o vm_machdep.o: Makefile
83 # depends on KGDBDEV, KGDBRATE, DDB, etc.
84 com_gsc.o clock.o pdc.o autoconf.o machdep.o: Makefile
91 ## (8) config(8) generated machinery
106 ## (9) port independent kernel machinery
108 .include "$S/conf/Makefile.kern.inc"
111 ## (10) Appending make options.