Home | History | Annotate | Line # | Download | only in conf
Makefile.amiga revision 1.94.2.2
      1 #	$NetBSD: Makefile.amiga,v 1.94.2.2 2002/06/23 17:34:23 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/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 .if defined(HAVE_GCC3)
     42 AFLAGS+=	-x assembler-with-cpp
     43 .else
     44 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     45 .endif
     46 
     47 ##
     48 ## (3) libkern and compat
     49 ##
     50 KERN_AS=	obj
     51 
     52 ##
     53 ## (4) local objects, compile rules, and dependencies
     54 ##
     55 # for the Motorola 68040 Floating Point Software Product
     56 .include "$S/arch/m68k/fpsp/Makefile.inc"
     57 
     58 # for the Motorola 68060 Software Support Package
     59 .include "$S/arch/m68k/060sp/Makefile.inc"
     60 
     61 MD_OBJS=	locore.o ${FPSP}
     62 MD_CFILES=
     63 MD_SFILES=	${AMIGA}/amiga/locore.s
     64 
     65 locore.o: ${AMIGA}/amiga/locore.s assym.h
     66 	${NORMAL_S}
     67 
     68 ##
     69 ## (5) link settings
     70 ##
     71 TEXTADDR?=	0
     72 LINKFORMAT=	-n
     73 
     74 ##
     75 ## (6) port specific target dependencies
     76 ##
     77 
     78 # depend on CPU configuration
     79 amiga_init.o locore.o pmap.o sys_machdep.o: Makefile
     80 bzsc.o bztzsc.o cbiisc.o cbsc.o flsc.o sbic.o: Makefile
     81 
     82 # depends on defined(DRACO)
     83 a2kbbc.o: Makefile
     84 
     85 ##
     86 ## (7) misc settings
     87 ##
     88 
     89 ##
     90 ## (8) config(8) generated machinery
     91 ##
     92 %INCLUDES
     93 
     94 %OBJS
     95 
     96 %CFILES
     97 
     98 %SFILES
     99 
    100 %LOAD
    101 
    102 %RULES
    103 
    104 ##
    105 ## (9) port independent kernel machinery
    106 ##
    107 .include "$S/conf/Makefile.kern.inc"
    108