Home | History | Annotate | Line # | Download | only in conf
Makefile.atari revision 1.70
      1 #	$NetBSD: Makefile.atari,v 1.70 2005/05/31 04:03:10 christos 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 empty(IDENT:M-DM68060)
     31 CMACHFLAGS=	-m68020
     32 .else
     33 CMACHFLAGS=	-m68060 -Wa,-m68030
     34 .endif
     35 CFLAGS+=	${CMACHFLAGS} -msoft-float
     36 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     37 
     38 ##
     39 ## (3) libkern and compat
     40 ##
     41 KERN_AS=	obj
     42 
     43 ##
     44 ## (4) local objects, compile rules, and dependencies
     45 ##
     46 # for the Motorola 68040 Floating Point Software Product
     47 .include "$S/arch/m68k/fpsp/Makefile.inc"
     48 
     49 # for the Motorola 68060 Software Support Package
     50 .include "$S/arch/m68k/060sp/Makefile.inc"
     51 
     52 MD_OBJS=	locore.o ${FPSP}
     53 MD_CFILES=
     54 MD_SFILES=	${ATARI}/atari/locore.s
     55 
     56 locore.o: ${ATARI}/atari/locore.s assym.h
     57 	${NORMAL_S}
     58 
     59 ##
     60 ## (5) link settings
     61 ##
     62 TEXTADDR?=	0
     63 LINKFORMAT=	-n
     64 
     65 ##
     66 ## (6) port specific target dependencies
     67 ##
     68 
     69 # depend on CPU configuration
     70 locore.o pmap.o sys_machdep.o: Makefile
     71 
     72 ##
     73 ## (7) misc settings
     74 ##
     75 
     76 ##
     77 ## (8) config(8) generated machinery
     78 ##
     79 %INCLUDES
     80 
     81 %OBJS
     82 
     83 %CFILES
     84 
     85 %SFILES
     86 
     87 %LOAD
     88 
     89 %RULES
     90 
     91 ##
     92 ## (9) port independent kernel machinery
     93 ##
     94 .include "$S/conf/Makefile.kern.inc"
     95 
     96 ##
     97 ## (10) Appending make options.
     98 ##
     99 %MAKEOPTIONSAPPEND
    100