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