Home | History | Annotate | Line # | Download | only in conf
Makefile.news68k revision 1.21.18.1
      1 #	$NetBSD: Makefile.news68k,v 1.21.18.1 2019/06/10 22:06:34 christos 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/news68k/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/news68k/conf/Makefile.news68k
     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 .ifndef S
     29 S=		../../../..
     30 .endif
     31 NEWS68K=	$S/arch/news68k
     32 GENASSYM_CONF=	${NEWS68K}/news68k/genassym.cf
     33 
     34 ##
     35 ## (2) compile settings
     36 ##
     37 CPPFLAGS+=	-Dnews68k
     38 CFLAGS+=	-msoft-float
     39 AFLAGS+=	-x assembler-with-cpp
     40 
     41 ##
     42 ## (3) libkern and compat
     43 ##
     44 OPT_MODULAR=	%MODULAR%
     45 
     46 ##
     47 ## (4) local objects, compile rules, and dependencies
     48 ##
     49 MD_OBJS=	locore.o
     50 MD_LIBS=	${FPSP}
     51 MD_CFILES=
     52 MD_SFILES=	${NEWS68K}/news68k/locore.s
     53 
     54 locore.o: ${NEWS68K}/news68k/locore.s assym.h
     55 	${NORMAL_S}
     56 
     57 ##
     58 ## (5) link settings
     59 ##
     60 LINKFORMAT=	-n
     61 TEXTADDR?=	0
     62 
     63 ##
     64 ## (6) port specific target dependencies
     65 ##
     66 
     67 # depend on CPU configuration
     68 machdep.o mainbus.o trap.o: Makefile
     69 
     70 copy.o copypage.o lock_stubs.o: assym.h
     71 
     72 ##
     73 ## (7) misc settings
     74 ##
     75 
     76 ##
     77 ## (8) config(8) generated machinery
     78 ##
     79 %INCLUDES
     80 
     81 %OBJS
     82 
     83 %CFILES
     84 
     85 %SFILES
     86 
     87 %LOAD
     88 
     89 %RULES
     90 
     91 ##
     92 ## (9) port independent kernel machinery
     93 ##
     94 .include "$S/conf/Makefile.kern.inc"
     95 
     96 ##
     97 ## (10) Appending make options.
     98 ##
     99 %MAKEOPTIONSAPPEND
    100