Home | History | Annotate | Line # | Download | only in conf
Makefile.hp300 revision 1.92
      1 #	$NetBSD: Makefile.hp300,v 1.92 2015/09/06 02:17:30 uebayasi 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/hp300/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/hp300/conf/Makefile.hp300
     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 HP300=		$S/arch/hp300
     29 GENASSYM_CONF=	${HP300}/hp300/genassym.cf
     30 
     31 ##
     32 ## (2) compile settings
     33 ##
     34 CPPFLAGS+=	-Dhp300
     35 CFLAGS+=	-msoft-float
     36 AFLAGS+=	-x assembler-with-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
     50 MD_LIBS=	${FPSP}
     51 MD_CFILES=
     52 MD_SFILES=	${HP300}/hp300/locore.s
     53 
     54 locore.o: ${HP300}/hp300/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 dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o trap.o: Makefile
     69 
     70 ##
     71 ## (7) misc settings
     72 ##
     73 
     74 ##
     75 ## (8) config(8) generated machinery
     76 ##
     77 %INCLUDES
     78 
     79 %OBJS
     80 
     81 %CFILES
     82 
     83 %SFILES
     84 
     85 %LOAD
     86 
     87 %RULES
     88 
     89 ##
     90 ## (9) port independent kernel machinery
     91 ##
     92 .include "$S/conf/Makefile.kern.inc"
     93 
     94 ##
     95 ## (10) Appending make options.
     96 ##
     97 %MAKEOPTIONSAPPEND
     98