Home | History | Annotate | Line # | Download | only in conf
Makefile.x68k revision 1.53.2.2
      1 #	$NetBSD: Makefile.x68k,v 1.53.2.2 2002/01/08 00:28:36 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/x68k/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/x68k/conf/Makefile.x68k
     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 # DEBUG is set to -g if debugging.
     26 # PROF is set to -pg if profiling.
     27 
     28 ##
     29 ## (1) port identification
     30 ##
     31 X68K=		$S/arch/x68k
     32 GENASSYM=	${X68K}/x68k/genassym.cf
     33 
     34 ##
     35 ## (2) compile settings
     36 ##
     37 CPPFLAGS+=	-Dx68k
     38 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     39 CMACHFLAGS?=	-m68020-60 -Wa,-m68030 -Wa,-m68851
     40 CFLAGS+=	${CMACHFLAGS} -msoft-float
     41 
     42 ##
     43 ## (3) libkern and compat
     44 ##
     45 KERN_AS=	obj
     46 
     47 ##
     48 ## (4) local objects, compile rules, and dependencies
     49 ##
     50 # for the Motorola 68040 Floating Point Software Product
     51 .include "$S/arch/m68k/fpsp/Makefile.inc"
     52 
     53 # for the Motorola 68060 Software Support Package
     54 .include "$S/arch/m68k/060sp/Makefile.inc"
     55 
     56 MD_OBJS=	locore.o ${FPSP}
     57 MD_CFILES=
     58 MD_SFILES=	${X68K}/x68k/locore.s
     59 
     60 locore.o: ${X68K}/x68k/locore.s assym.h Makefile
     61 	${NORMAL_S}
     62 
     63 ##
     64 ## (5) link settings
     65 ##
     66 TEXTADDR?=	0
     67 LINKFORMAT=	-n
     68 
     69 ##
     70 ## (6) port specific target dependencies
     71 ##
     72 
     73 # depend on root or device configuration
     74 autoconf.o conf.o: Makefile
     75 
     76 # depend on maxusers
     77 machdep.o: Makefile
     78 
     79 # depend on DEBUG and/or DIAGNOSTIC options
     80 grf.o par.o sram.o: Makefile
     81 intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile
     82 intio.o vm_machdep.o: Makefile
     83 
     84 ##
     85 ## (7) misc settings
     86 ##
     87 
     88 
     89 
     90 ##
     91 ## (8) config(8) generated machinery
     92 ##
     93 %INCLUDES
     94 
     95 %OBJS
     96 
     97 %CFILES
     98 
     99 %SFILES
    100 
    101 %LOAD
    102 
    103 %RULES
    104 
    105 ##
    106 ## (9) port independent kernel machinery
    107 ##
    108 .include "$S/conf/Makefile.kern.inc"
    109