1 # $NetBSD: Makefile.atari,v 1.75.14.1 2017/12/03 11:35:57 jdolecek 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_CONF= ${ATARI}/atari/genassym.cf 25 26 ## 27 ## (2) compile settings 28 ## 29 CPPFLAGS+= -Datari 30 .if !defined(CMACHFLAGS) 31 .include "$S/arch/m68k/Makefile.cmachflags" 32 CMACHFLAGS+= -Wa,-m68030 33 .endif 34 CFLAGS+= ${CMACHFLAGS} -msoft-float 35 AFLAGS+= -x assembler-with-cpp 36 37 ## 38 ## (3) libkern and compat 39 ## 40 KERN_AS= obj 41 42 ## 43 ## (4) local objects, compile rules, and dependencies 44 ## 45 # for the Motorola 68040 Floating Point Software Product 46 .include "$S/arch/m68k/fpsp/Makefile.inc" 47 48 # for the Motorola 68060 Software Support Package 49 .include "$S/arch/m68k/060sp/Makefile.inc" 50 51 MD_OBJS= locore.o 52 MD_LIBS= ${FPSP} 53 MD_CFILES= 54 MD_SFILES= ${ATARI}/atari/locore.s 55 56 copy.o copypage.o lock_stubs.o: assym.h 57 58 locore.o: ${ATARI}/atari/locore.s assym.h 59 ${NORMAL_S} 60 61 ## 62 ## (5) link settings 63 ## 64 TEXTADDR?= 0 65 LINKFORMAT= -n 66 67 ## 68 ## (6) port specific target dependencies 69 ## 70 71 # depend on CPU configuration 72 locore.o pmap.o pmap_motorola.o sys_machdep.o: Makefile 73 74 ## 75 ## (7) misc settings 76 ## 77 78 ## 79 ## (8) config(8) generated machinery 80 ## 81 %INCLUDES 82 83 %OBJS 84 85 %CFILES 86 87 %SFILES 88 89 %LOAD 90 91 %RULES 92 93 ## 94 ## (9) port independent kernel machinery 95 ## 96 .include "$S/conf/Makefile.kern.inc" 97 98 ## 99 ## (10) Appending make options. 100 ## 101 %MAKEOPTIONSAPPEND 102