Home | History | Annotate | Line # | Download | only in conf
Makefile.amiga revision 1.96.2.3
      1 #	$NetBSD: Makefile.amiga,v 1.96.2.3 2002/04/17 00:02:15 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 NEED_OWN_INSTALL_TARGET?=no
     23 .include <bsd.own.mk>
     24 
     25 ##
     26 ## (1) port identification
     27 ##
     28 AMIGA=		$S/arch/amiga
     29 GENASSYM=	${AMIGA}/amiga/genassym.cf
     30 
     31 ##
     32 ## (2) compile settings
     33 ##
     34 CPPFLAGS+=	-Damiga -DFPCOPROC
     35 .if empty(IDENT:M-DM68060)
     36 CMACHFLAGS=	-m68020
     37 .else
     38 CMACHFLAGS=	-m68060 -Wa,-m68030 -Wa,-m68851
     39 .endif
     40 CFLAGS+=	${CMACHFLAGS} -msoft-float
     41 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     42 
     43 .SUFFIXES: .o .g
     44 
     45 .g.o: ; echo This is a dummy rule and should not be executed.
     46 
     47 NORMAL_G=	gspa -c tmscode < $< > $*.c && \
     48 		${CC} -c ${CFLAGS} ${CPPFLAGS} ${PROF} $*.c
     49 
     50 ##
     51 ## (3) libkern and compat
     52 ##
     53 KERN_AS=	obj
     54 
     55 ##
     56 ## (4) local objects, compile rules, and dependencies
     57 ##
     58 # for the Motorola 68040 Floating Point Software Product
     59 .include "$S/arch/m68k/fpsp/Makefile.inc"
     60 
     61 # for the Motorola 68060 Software Support Package
     62 .include "$S/arch/m68k/060sp/Makefile.inc"
     63 
     64 MD_OBJS=	locore.o ${FPSP}
     65 MD_CFILES=
     66 MD_SFILES=	${AMIGA}/amiga/locore.s
     67 
     68 locore.o: ${AMIGA}/amiga/locore.s assym.h
     69 	${NORMAL_S}
     70 
     71 ##
     72 ## (5) link settings
     73 ##
     74 TEXTADDR?=	0
     75 LINKFORMAT=	-n
     76 
     77 ##
     78 ## (6) port specific target dependencies
     79 ##
     80 
     81 # depend on CPU configuration
     82 amiga_init.o locore.o pmap.o sys_machdep.o: Makefile
     83 bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile
     84 
     85 # depends on defined(DRACO)
     86 a2kbbc.o: Makefile
     87 
     88 ##
     89 ## (7) misc settings
     90 ##
     91 
     92 ##
     93 ## (8) config(8) generated machinery
     94 ##
     95 %INCLUDES
     96 
     97 %OBJS
     98 
     99 %CFILES
    100 
    101 %SFILES
    102 
    103 %LOAD
    104 
    105 %RULES
    106 
    107 ##
    108 ## (9) port independent kernel machinery
    109 ##
    110 .include "$S/conf/Makefile.kern.inc"
    111