Home | History | Annotate | Line # | Download | only in conf
Makefile.amiga revision 1.96.2.2
      1 #	$NetBSD: Makefile.amiga,v 1.96.2.2 2002/01/08 00:22:58 nathanw 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/amiga/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/amiga/conf/Makefile.amiga
     13 # after which config should be rerun for all machines of that type.
     14 #
     15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16 # A better way is to specify -g only for a few files.
     17 #
     18 #	makeoptions DEBUGLIST="uvm* trap if_*"
     19 
     20 MACHINE_ARCH=m68k
     21 USETOOLS?=	no
     22 
     23 .include <bsd.own.mk>
     24 
     25 # DEBUG is set to -g if debugging.
     26 # PROF is set to -pg if profiling.
     27 
     28 AR?=	ar
     29 AS?=	as
     30 CC?=	cc
     31 CPP?=	cpp
     32 LD?=	ld
     33 LORDER?=lorder
     34 MACHINE_ARCH=m68k
     35 USETOOLS?=	no
     36 NEED_OWN_INSTALL_TARGET?=no
     37 .include <bsd.own.mk>
     38 
     39 ##
     40 ## (1) port identification
     41 ##
     42 AMIGA=		$S/arch/amiga
     43 GENASSYM=	${AMIGA}/amiga/genassym.cf
     44 
     45 ##
     46 ## (2) compile settings
     47 ##
     48 CPPFLAGS+=	-Damiga -DFPCOPROC
     49 .if empty(IDENT:M-DM68060)
     50 CMACHFLAGS=	-m68020
     51 .else
     52 CMACHFLAGS=	-m68060 -Wa,-m68030 -Wa,-m68851
     53 .endif
     54 CFLAGS+=	${CMACHFLAGS} -msoft-float
     55 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     56 
     57 .SUFFIXES: .o .g
     58 
     59 .g.o: ; echo This is a dummy rule and should not be executed.
     60 
     61 NORMAL_G=	gspa -c tmscode < $< > $*.c && \
     62 		${CC} -c ${CFLAGS} ${CPPFLAGS} ${PROF} $*.c
     63 
     64 ##
     65 ## (3) libkern and compat
     66 ##
     67 KERN_AS=	obj
     68 
     69 ##
     70 ## (4) local objects, compile rules, and dependencies
     71 ##
     72 # for the Motorola 68040 Floating Point Software Product
     73 .include "$S/arch/m68k/fpsp/Makefile.inc"
     74 
     75 # for the Motorola 68060 Software Support Package
     76 .include "$S/arch/m68k/060sp/Makefile.inc"
     77 
     78 MD_OBJS=	locore.o ${FPSP}
     79 MD_CFILES=
     80 MD_SFILES=	${AMIGA}/amiga/locore.s
     81 
     82 locore.o: ${AMIGA}/amiga/locore.s assym.h
     83 	${NORMAL_S}
     84 
     85 ##
     86 ## (5) link settings
     87 ##
     88 TEXTADDR?=	0
     89 LINKFORMAT=	-n
     90 
     91 ##
     92 ## (6) port specific target dependencies
     93 ##
     94 
     95 # depend on CPU configuration
     96 amiga_init.o locore.o pmap.o sys_machdep.o: Makefile
     97 bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile
     98 
     99 # depends on defined(DRACO)
    100 a2kbbc.o: Makefile
    101 
    102 ##
    103 ## (7) misc settings
    104 ##
    105 
    106 ##
    107 ## (8) config(8) generated machinery
    108 ##
    109 %INCLUDES
    110 
    111 %OBJS
    112 
    113 %CFILES
    114 
    115 %SFILES
    116 
    117 %LOAD
    118 
    119 %RULES
    120 
    121 ##
    122 ## (9) port independent kernel machinery
    123 ##
    124 .include "$S/conf/Makefile.kern.inc"
    125