Home | History | Annotate | Line # | Download | only in conf
      1 #	$NetBSD: Makefile.mvme68k,v 1.71 2026/04/20 09:47:46 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/mvme68k/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/mvme68k/conf/Makefile.mvme68k
     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 MVME68K=	$S/arch/mvme68k
     29 GENASSYM_CONF=	$S/arch/m68k/m68k/genassym.cf
     30 GENASSYM_EXTRAS+= ${MVME68K}/mvme68k/genassym.cf
     31 
     32 ##
     33 ## (2) compile settings
     34 ##
     35 CPPFLAGS+=	-Dmvme68k
     36 .if empty(KERNEL_OPT_M68060)
     37 .if empty(KERNEL_OPT_M68030)
     38 CMACHFLAGS=	-m68040
     39 .else
     40 CMACHFLAGS=	-m68030
     41 .endif
     42 .else		# M68060
     43 .if empty(KERNEL_OPT_M68030) && empty(KERNEL_OPT_M68040)
     44 CMACHFLAGS=	-m68060 -Wa,-march=68030 -Wa,-m68030 -Wa,-mcpu=68030 -Wa,-m68851
     45 .else
     46 CMACHFLAGS=	-m68020-60 -Wa,-m68030 -Wa,-mcpu=68030 -Wa,-m68851
     47 .endif
     48 .endif		# M68060
     49 CFLAGS+=	${CMACHFLAGS} -msoft-float
     50 AFLAGS+=	-x assembler-with-cpp
     51 
     52 ##
     53 ## (3) libkern and compat
     54 ##
     55 OPT_MODULAR=	%MODULAR%
     56 
     57 ##
     58 ## (4) local objects, compile rules, and dependencies
     59 ##
     60 .include "$S/arch/m68k/conf/Makefile.kern.m68k.inc"
     61 
     62 # for the Motorola 68040 Floating Point Software Product
     63 .include "$S/arch/m68k/fpsp/Makefile.inc"
     64 
     65 # for the Motorola 68060 Software Support Package
     66 .include "$S/arch/m68k/060sp/Makefile.inc"
     67 
     68 MD_OBJS=	locore.o
     69 MD_LIBS=	${FPSP}
     70 MD_CFILES=
     71 MD_SFILES=	${MVME68K}/mvme68k/locore.s
     72 
     73 
     74 locore.o: ${MVME68K}/mvme68k/locore.s assym.h
     75 	${NORMAL_S}
     76 ##
     77 ## (5) link settings
     78 ##
     79 LINKFORMAT=	-n
     80 TEXTADDR?=	8000
     81 
     82 ##
     83 ## (6) port specific target dependencies
     84 ##
     85 
     86 # depend on CPU configuration
     87 locore.o pmap.o sys_machdep.o trap.o: Makefile
     88 
     89 copy.o copypage.o lock_stubs.o: assym.h
     90 
     91 ##
     92 ## (7) misc settings
     93 ##
     94 
     95 ##
     96 ## (8) config(8) generated machinery
     97 ##
     98 %INCLUDES
     99 
    100 %OBJS
    101 
    102 %CFILES
    103 
    104 %SFILES
    105 
    106 %LOAD
    107 
    108 %RULES
    109 
    110 ##
    111 ## (9) port independent kernel machinery
    112 ##
    113 .include "$S/conf/Makefile.kern.inc"
    114 
    115 ##
    116 ## (10) Appending make options.
    117 ##
    118 %MAKEOPTIONSAPPEND
    119