1 1.80.2.3 nathanw # $NetBSD: Makefile.hp300,v 1.80.2.3 2002/06/20 03:38:36 nathanw Exp $ 2 1.80.2.2 nathanw 3 1.80.2.2 nathanw # Makefile for NetBSD 4 1.80.2.2 nathanw # 5 1.80.2.2 nathanw # This makefile is constructed from a machine description: 6 1.80.2.2 nathanw # config machineid 7 1.80.2.2 nathanw # Most changes should be made in the machine description 8 1.80.2.2 nathanw # /sys/arch/hp300/conf/``machineid'' 9 1.80.2.2 nathanw # after which you should do 10 1.80.2.2 nathanw # config machineid 11 1.80.2.2 nathanw # Machine generic makefile changes should be made in 12 1.80.2.2 nathanw # /sys/arch/hp300/conf/Makefile.hp300 13 1.80.2.2 nathanw # after which config should be rerun for all machines of that type. 14 1.80.2.2 nathanw # 15 1.80.2.2 nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.80.2.2 nathanw # A better way is to specify -g only for a few files. 17 1.80.2.2 nathanw # 18 1.80.2.2 nathanw # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.80.2.2 nathanw 20 1.80.2.2 nathanw MACHINE_ARCH=m68k 21 1.80.2.2 nathanw USETOOLS?= no 22 1.80.2.2 nathanw NEED_OWN_INSTALL_TARGET?=no 23 1.80.2.2 nathanw .include <bsd.own.mk> 24 1.80.2.2 nathanw 25 1.80.2.2 nathanw ## 26 1.80.2.2 nathanw ## (1) port identification 27 1.80.2.2 nathanw ## 28 1.80.2.2 nathanw HP300= $S/arch/hp300 29 1.80.2.2 nathanw GENASSYM= ${HP300}/hp300/genassym.cf 30 1.80.2.2 nathanw 31 1.80.2.2 nathanw ## 32 1.80.2.2 nathanw ## (2) compile settings 33 1.80.2.2 nathanw ## 34 1.80.2.2 nathanw CPPFLAGS+= -Dhp300 35 1.80.2.2 nathanw CFLAGS+= -msoft-float 36 1.80.2.3 nathanw .if defined(HAVE_GCC3) 37 1.80.2.3 nathanw AFLAGS+= -x assembler-with-cpp 38 1.80.2.3 nathanw .else 39 1.80.2.2 nathanw AFLAGS+= -x assembler-with-cpp -traditional-cpp 40 1.80.2.3 nathanw .endif 41 1.80.2.2 nathanw 42 1.80.2.2 nathanw ## 43 1.80.2.2 nathanw ## (3) libkern and compat 44 1.80.2.2 nathanw ## 45 1.80.2.2 nathanw KERN_AS= obj 46 1.80.2.2 nathanw 47 1.80.2.2 nathanw ## 48 1.80.2.2 nathanw ## (4) local objects, compile rules, and dependencies 49 1.80.2.2 nathanw ## 50 1.80.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 51 1.80.2.2 nathanw .include "$S/arch/m68k/fpsp/Makefile.inc" 52 1.80.2.2 nathanw 53 1.80.2.2 nathanw MD_OBJS= locore.o ${FPSP} 54 1.80.2.2 nathanw MD_CFILES= 55 1.80.2.2 nathanw MD_SFILES= ${HP300}/hp300/locore.s 56 1.80.2.2 nathanw 57 1.80.2.2 nathanw locore.o: ${HP300}/hp300/locore.s assym.h 58 1.80.2.2 nathanw ${NORMAL_S} 59 1.80.2.2 nathanw 60 1.80.2.2 nathanw ## 61 1.80.2.2 nathanw ## (5) link settings 62 1.80.2.2 nathanw ## 63 1.80.2.2 nathanw LINKFORMAT= -n 64 1.80.2.2 nathanw TEXTADDR?= 0 65 1.80.2.2 nathanw 66 1.80.2.2 nathanw ## 67 1.80.2.2 nathanw ## (6) port specific target dependencies 68 1.80.2.2 nathanw ## 69 1.80.2.2 nathanw 70 1.80.2.2 nathanw # depend on CPU configuration 71 1.80.2.2 nathanw dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile 72 1.80.2.2 nathanw 73 1.80.2.2 nathanw ## 74 1.80.2.2 nathanw ## (7) misc settings 75 1.80.2.2 nathanw ## 76 1.80.2.2 nathanw 77 1.80.2.2 nathanw ## 78 1.80.2.2 nathanw ## (8) config(8) generated machinery 79 1.80.2.2 nathanw ## 80 1.80.2.2 nathanw %INCLUDES 81 1.80.2.2 nathanw 82 1.80.2.2 nathanw %OBJS 83 1.80.2.2 nathanw 84 1.80.2.2 nathanw %CFILES 85 1.80.2.2 nathanw 86 1.80.2.2 nathanw #%SFILES 87 1.80.2.2 nathanw 88 1.80.2.2 nathanw %LOAD 89 1.80.2.2 nathanw 90 1.80.2.2 nathanw %RULES 91 1.80.2.2 nathanw 92 1.80.2.2 nathanw ## 93 1.80.2.2 nathanw ## (9) port independent kernel machinery 94 1.80.2.2 nathanw ## 95 1.80.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 96