1 # $NetBSD: Makefile.sparc,v 1.78 2001/11/23 05:19:01 atatat 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/sparc/conf/``machineid'' 9 # after which you should do 10 # config machineid 11 # Machine generic makefile changes should be made in 12 # /sys/arch/sparc/conf/Makefile.sparc 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= sparc 21 USETOOLS?= no 22 NEED_OWN_INSTALL_TARGET?=no 23 .include <bsd.own.mk> 24 25 ## 26 ## (1) port identification 27 ## 28 SPARC= $S/arch/sparc 29 GENASSYM= ${SPARC}/sparc/genassym.cf 30 31 ## 32 ## (2) compile settings 33 ## 34 # work around GCC (egcs-2.91.66) bug which is liable 35 # to use FPU registers as temporaries: 36 CFLAGS+= -mno-fpu 37 AFLAGS+= -x assembler-with-cpp -traditional-cpp 38 39 ## 40 ## (3) libkern and compat 41 ## 42 KERN_AS= obj 43 44 ## 45 ## (4) local objects, compile rules, and dependencies 46 ## 47 MD_OBJS= locore.o 48 MD_CFILES= 49 MD_SFILES= ${SPARC}/sparc/locore.s 50 51 locore.o: ${SPARC}/sparc/locore.s assym.h 52 ${NORMAL_S} 53 54 ## 55 ## (5) link settings 56 ## 57 TEXTADDR?= F0004000 58 EXTRA_LINKFLAGS= -X 59 .if ${OBJECT_FMT} == "ELF" 60 KERN_LDSCRIPT?= kern.ldscript 61 LINKFORMAT= -n -T ${SPARC}/conf/${KERN_LDSCRIPT} 62 .else 63 LINKFORMAT= -N -p 64 .endif 65 66 ## 67 ## (6) port specific target dependencies 68 ## 69 70 # depend on CPU configuration 71 bwtwo.o cgsix.o cgthree.o cgtwo.o cons.o dma.o esp.o fb.o if_ie.o: Makefile 72 ms.c obio.o zs.c autoconf.o clock.o cpu.o disksubr.o: Makefile 73 mem.o openprom.o pmap.o vm_machdep.o: Makefile 74 75 ## 76 ## (7) misc settings 77 ## 78 79 ## 80 ## (8) config(8) generated machinery 81 ## 82 %INCLUDES 83 84 %OBJS 85 86 %CFILES 87 88 %SFILES 89 90 %LOAD 91 92 %RULES 93 94 ## 95 ## (9) port independent kernel machinery 96 ## 97 .include "$S/conf/Makefile.kern.inc" 98