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