1 1.53.2.3 nathanw # $NetBSD: Makefile.x68k,v 1.53.2.3 2002/04/17 00:04:46 nathanw Exp $ 2 1.53.2.2 nathanw # 3 1.53.2.2 nathanw # Makefile for NetBSD 4 1.53.2.2 nathanw # 5 1.53.2.2 nathanw # This makefile is constructed from a machine description: 6 1.53.2.2 nathanw # config machineid 7 1.53.2.2 nathanw # Most changes should be made in the machine description 8 1.53.2.2 nathanw # /sys/arch/x68k/conf/``machineid'' 9 1.53.2.2 nathanw # after which you should do 10 1.53.2.2 nathanw # config machineid 11 1.53.2.2 nathanw # Machine generic makefile changes should be made in 12 1.53.2.2 nathanw # /sys/arch/x68k/conf/Makefile.x68k 13 1.53.2.2 nathanw # after which config should be rerun for all machines of that type. 14 1.53.2.2 nathanw # 15 1.53.2.2 nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g" 16 1.53.2.2 nathanw # A better way is to specify -g only for a few files. 17 1.53.2.2 nathanw # 18 1.53.2.2 nathanw # makeoptions DEBUGLIST="uvm* trap if_*" 19 1.53.2.2 nathanw 20 1.53.2.2 nathanw MACHINE_ARCH=m68k 21 1.53.2.2 nathanw USETOOLS?= no 22 1.53.2.2 nathanw NEED_OWN_INSTALL_TARGET?=no 23 1.53.2.2 nathanw .include <bsd.own.mk> 24 1.53.2.2 nathanw 25 1.53.2.2 nathanw ## 26 1.53.2.2 nathanw ## (1) port identification 27 1.53.2.2 nathanw ## 28 1.53.2.2 nathanw X68K= $S/arch/x68k 29 1.53.2.2 nathanw GENASSYM= ${X68K}/x68k/genassym.cf 30 1.53.2.2 nathanw 31 1.53.2.2 nathanw ## 32 1.53.2.2 nathanw ## (2) compile settings 33 1.53.2.2 nathanw ## 34 1.53.2.2 nathanw CPPFLAGS+= -Dx68k 35 1.53.2.2 nathanw AFLAGS+= -x assembler-with-cpp -traditional-cpp 36 1.53.2.2 nathanw CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 37 1.53.2.2 nathanw CFLAGS+= ${CMACHFLAGS} -msoft-float 38 1.53.2.2 nathanw 39 1.53.2.2 nathanw ## 40 1.53.2.2 nathanw ## (3) libkern and compat 41 1.53.2.2 nathanw ## 42 1.53.2.2 nathanw KERN_AS= obj 43 1.53.2.2 nathanw 44 1.53.2.2 nathanw ## 45 1.53.2.2 nathanw ## (4) local objects, compile rules, and dependencies 46 1.53.2.2 nathanw ## 47 1.53.2.2 nathanw # for the Motorola 68040 Floating Point Software Product 48 1.53.2.2 nathanw .include "$S/arch/m68k/fpsp/Makefile.inc" 49 1.53.2.2 nathanw 50 1.53.2.2 nathanw # for the Motorola 68060 Software Support Package 51 1.53.2.2 nathanw .include "$S/arch/m68k/060sp/Makefile.inc" 52 1.53.2.2 nathanw 53 1.53.2.2 nathanw MD_OBJS= locore.o ${FPSP} 54 1.53.2.2 nathanw MD_CFILES= 55 1.53.2.2 nathanw MD_SFILES= ${X68K}/x68k/locore.s 56 1.53.2.2 nathanw 57 1.53.2.2 nathanw locore.o: ${X68K}/x68k/locore.s assym.h Makefile 58 1.53.2.2 nathanw ${NORMAL_S} 59 1.53.2.2 nathanw 60 1.53.2.2 nathanw ## 61 1.53.2.2 nathanw ## (5) link settings 62 1.53.2.2 nathanw ## 63 1.53.2.2 nathanw TEXTADDR?= 0 64 1.53.2.2 nathanw LINKFORMAT= -n 65 1.53.2.2 nathanw 66 1.53.2.2 nathanw ## 67 1.53.2.2 nathanw ## (6) port specific target dependencies 68 1.53.2.2 nathanw ## 69 1.53.2.2 nathanw 70 1.53.2.2 nathanw # depend on root or device configuration 71 1.53.2.2 nathanw autoconf.o conf.o: Makefile 72 1.53.2.2 nathanw 73 1.53.2.2 nathanw # depend on maxusers 74 1.53.2.2 nathanw machdep.o: Makefile 75 1.53.2.2 nathanw 76 1.53.2.2 nathanw # depend on DEBUG and/or DIAGNOSTIC options 77 1.53.2.2 nathanw grf.o par.o sram.o: Makefile 78 1.53.2.2 nathanw intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile 79 1.53.2.2 nathanw intio.o vm_machdep.o: Makefile 80 1.53.2.2 nathanw 81 1.53.2.2 nathanw ## 82 1.53.2.2 nathanw ## (7) misc settings 83 1.53.2.2 nathanw ## 84 1.53.2.2 nathanw 85 1.53.2.2 nathanw 86 1.53.2.2 nathanw 87 1.53.2.2 nathanw ## 88 1.53.2.2 nathanw ## (8) config(8) generated machinery 89 1.53.2.2 nathanw ## 90 1.53.2.2 nathanw %INCLUDES 91 1.53.2.2 nathanw 92 1.53.2.2 nathanw %OBJS 93 1.53.2.2 nathanw 94 1.53.2.2 nathanw %CFILES 95 1.53.2.2 nathanw 96 1.53.2.2 nathanw %SFILES 97 1.53.2.2 nathanw 98 1.53.2.2 nathanw %LOAD 99 1.53.2.2 nathanw 100 1.53.2.2 nathanw %RULES 101 1.53.2.2 nathanw 102 1.53.2.2 nathanw ## 103 1.53.2.2 nathanw ## (9) port independent kernel machinery 104 1.53.2.2 nathanw ## 105 1.53.2.2 nathanw .include "$S/conf/Makefile.kern.inc" 106