1 1.95 skrll # $NetBSD: Makefile.hp300,v 1.95 2019/08/21 20:31:23 skrll Exp $ 2 1.20 cgd 3 1.12 brezak # Makefile for NetBSD 4 1.1 cgd # 5 1.1 cgd # This makefile is constructed from a machine description: 6 1.1 cgd # config machineid 7 1.1 cgd # Most changes should be made in the machine description 8 1.14 mycroft # /sys/arch/hp300/conf/``machineid'' 9 1.1 cgd # after which you should do 10 1.31 mycroft # config machineid 11 1.1 cgd # Machine generic makefile changes should be made in 12 1.14 mycroft # /sys/arch/hp300/conf/Makefile.hp300 13 1.1 cgd # after which config should be rerun for all machines of that type. 14 1.82 atatat # 15 1.82 atatat # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.82 atatat # A better way is to specify -g only for a few files. 17 1.82 atatat # 18 1.82 atatat # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.79 thorpej 20 1.79 thorpej MACHINE_ARCH=m68k 21 1.80 jmc USETOOLS?= no 22 1.82 atatat NEED_OWN_INSTALL_TARGET?=no 23 1.80 jmc .include <bsd.own.mk> 24 1.1 cgd 25 1.82 atatat ## 26 1.82 atatat ## (1) port identification 27 1.82 atatat ## 28 1.82 atatat HP300= $S/arch/hp300 29 1.86 christos GENASSYM_CONF= ${HP300}/hp300/genassym.cf 30 1.82 atatat 31 1.82 atatat ## 32 1.82 atatat ## (2) compile settings 33 1.82 atatat ## 34 1.82 atatat CPPFLAGS+= -Dhp300 35 1.82 atatat CFLAGS+= -msoft-float 36 1.88 joerg AFLAGS+= -x assembler-with-cpp 37 1.82 atatat 38 1.82 atatat ## 39 1.82 atatat ## (3) libkern and compat 40 1.82 atatat ## 41 1.94 rin OPT_MODULAR= %MODULAR% 42 1.1 cgd 43 1.82 atatat ## 44 1.82 atatat ## (4) local objects, compile rules, and dependencies 45 1.82 atatat ## 46 1.82 atatat # for the Motorola 68040 Floating Point Software Product 47 1.82 atatat .include "$S/arch/m68k/fpsp/Makefile.inc" 48 1.69 mrg 49 1.92 uebayasi MD_OBJS= locore.o 50 1.92 uebayasi MD_LIBS= ${FPSP} 51 1.82 atatat MD_CFILES= 52 1.82 atatat MD_SFILES= ${HP300}/hp300/locore.s 53 1.44 mycroft 54 1.82 atatat locore.o: ${HP300}/hp300/locore.s assym.h 55 1.82 atatat ${NORMAL_S} 56 1.1 cgd 57 1.93 mrg .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 58 1.93 mrg 59 1.82 atatat ## 60 1.82 atatat ## (5) link settings 61 1.82 atatat ## 62 1.82 atatat LINKFORMAT= -n 63 1.82 atatat TEXTADDR?= 0 64 1.82 atatat 65 1.82 atatat ## 66 1.82 atatat ## (6) port specific target dependencies 67 1.82 atatat ## 68 1.23 christos 69 1.82 atatat # depend on CPU configuration 70 1.95 skrll dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_bootstrap.o sys_machdep.o trap.o: Makefile 71 1.17 mycroft 72 1.82 atatat ## 73 1.82 atatat ## (7) misc settings 74 1.82 atatat ## 75 1.82 atatat 76 1.82 atatat ## 77 1.82 atatat ## (8) config(8) generated machinery 78 1.82 atatat ## 79 1.82 atatat %INCLUDES 80 1.41 mycroft 81 1.1 cgd %OBJS 82 1.1 cgd 83 1.1 cgd %CFILES 84 1.1 cgd 85 1.91 uebayasi %SFILES 86 1.31 mycroft 87 1.1 cgd %LOAD 88 1.1 cgd 89 1.82 atatat %RULES 90 1.81 lukem 91 1.82 atatat ## 92 1.82 atatat ## (9) port independent kernel machinery 93 1.82 atatat ## 94 1.82 atatat .include "$S/conf/Makefile.kern.inc" 95 1.85 thorpej 96 1.85 thorpej ## 97 1.85 thorpej ## (10) Appending make options. 98 1.85 thorpej ## 99 1.85 thorpej %MAKEOPTIONSAPPEND 100