Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: Makefile.x68k,v 1.66 2018/09/22 12:24:04 rin 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 ##
     26 ## (1) port identification
     27 ##
     28 X68K=		$S/arch/x68k
     29 GENASSYM_CONF=	${X68K}/x68k/genassym.cf
     30 
     31 ##
     32 ## (2) compile settings
     33 ##
     34 CPPFLAGS+=	-Dx68k
     35 AFLAGS+=	-x assembler-with-cpp
     36 CMACHFLAGS?=	-m68020-60 -Wa,-m68030 -Wa,-m68851
     37 CFLAGS+=	${CMACHFLAGS} -msoft-float
     38 
     39 ##
     40 ## (3) libkern and compat
     41 ##
     42 OPT_MODULAR=	%MODULAR%
     43 
     44 ##
     45 ## (4) local objects, compile rules, and dependencies
     46 ##
     47 # for the Motorola 68040 Floating Point Software Product
     48 .include "$S/arch/m68k/fpsp/Makefile.inc"
     49 
     50 # for the Motorola 68060 Software Support Package
     51 .include "$S/arch/m68k/060sp/Makefile.inc"
     52 
     53 MD_OBJS=	locore.o
     54 MD_LIBS=	${FPSP}
     55 MD_CFILES=
     56 MD_SFILES=	${X68K}/x68k/locore.s
     57 
     58 locore.o: ${X68K}/x68k/locore.s assym.h Makefile
     59 	${NORMAL_S}
     60 
     61 copy.o copypage.o lock_stubs.o: assym.h
     62 
     63 ##
     64 ## (5) link settings
     65 ##
     66 TEXTADDR?=	0
     67 LINKFORMAT=	-n
     68 
     69 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc"
     70 
     71 ##
     72 ## (6) port specific target dependencies
     73 ##
     74 
     75 # depend on root or device configuration
     76 autoconf.o conf.o: Makefile
     77 
     78 # depend on maxusers
     79 machdep.o: Makefile
     80 
     81 # depend on DEBUG and/or DIAGNOSTIC options
     82 grf.o par.o sram.o: Makefile
     83 intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile
     84 intio.o vm_machdep.o: Makefile
     85 
     86 ##
     87 ## (7) misc settings
     88 ##
     89 
     90 # XXX work around gcc 4.5 issue
     91 COPTS.machdep.c += -O1
     92 
     93 ##
     94 ## (8) config(8) generated machinery
     95 ##
     96 %INCLUDES
     97 
     98 %OBJS
     99 
    100 %CFILES
    101 
    102 %SFILES
    103 
    104 %LOAD
    105 
    106 %RULES
    107 
    108 ##
    109 ## (9) port independent kernel machinery
    110 ##
    111 .include "$S/conf/Makefile.kern.inc"
    112 
    113 ##
    114 ## (10) Appending make options.
    115 ##
    116 %MAKEOPTIONSAPPEND
    117