Home | History | Annotate | Line # | Download | only in conf
Makefile.mac68k revision 1.86
      1 #	$NetBSD: Makefile.mac68k,v 1.86 2004/06/04 04:45:50 thorpej 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/mac68k/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/mac68k/conf/Makefile.mac68k
     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 MAC68K=		$S/arch/mac68k
     29 GENASSYM=	${MAC68K}/mac68k/genassym.cf
     30 
     31 ##
     32 ## (2) compile settings
     33 ##
     34 CPPFLAGS+=	-Dmac68k
     35 CFLAGS+=	-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 MD_OBJS=	locore.o ${FPSP}
     50 MD_CFILES=
     51 MD_SFILES=	${MAC68K}/mac68k/locore.s
     52 
     53 locore.o: ${MAC68K}/mac68k/locore.s assym.h
     54 	${NORMAL_S}
     55 
     56 ##
     57 ## (5) link settings
     58 ##
     59 LINKFORMAT=	-n
     60 TEXTADDR?=	0
     61 
     62 ##
     63 ## (6) port specific target dependencies
     64 ##
     65 
     66 # depend on CPU configuration
     67 locore.o pmap.o trap.o: Makefile
     68 
     69 ##
     70 ## (7) misc settings
     71 ##
     72 
     73 ##
     74 ## (8) config(8) generated machinery
     75 ##
     76 %INCLUDES
     77 
     78 %OBJS
     79 
     80 %CFILES
     81 
     82 %SFILES
     83 
     84 %LOAD
     85 
     86 %RULES
     87 
     88 ##
     89 ## (9) port independent kernel machinery
     90 ##
     91 .include "$S/conf/Makefile.kern.inc"
     92 
     93 ##
     94 ## (10) Appending make options.
     95 ##
     96 %MAKEOPTIONSAPPEND
     97