Home | History | Annotate | Line # | Download | only in conf
Makefile.sh3 revision 1.23.16.1
      1 #	$NetBSD: Makefile.sh3,v 1.23.16.1 2007/03/29 19:27:31 reinoud 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/<machine>/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # CPU generic makefile changes should be made in
     12 #	/sys/arch/sh3/conf/Makefile.sh3
     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 USETOOLS?=	no
     21 NEED_OWN_INSTALL_TARGET?=no
     22 .include <bsd.own.mk>
     23 
     24 ##
     25 ## (1) port identification
     26 ##
     27 THISSH3=	$S/arch/${MACHINE}
     28 SH3=		$S/arch/sh3
     29 GENASSYM_CONF=	${SH3}/sh3/genassym.cf
     30 .-include "${THISSH3}/conf/Makefile.${MACHINE}.inc"
     31 
     32 ##
     33 ## (2) compile settings
     34 ##
     35 CPPFLAGS+=	-D${MACHINE}
     36 AFLAGS+=	-x assembler-with-cpp -traditional-cpp
     37 # pkgsrc/cross/sh* dies with -O2, use -O1 for now
     38 COPTS?=		-O1
     39 
     40 ##
     41 ## (3) libkern and compat
     42 ##
     43 
     44 ##
     45 ## (4) local objects, compile rules, and dependencies
     46 ##
     47 MD_OBJS=	locore.o
     48 MD_CFILES=
     49 MD_SFILES=	${THISSH3}/${MACHINE}/locore.S
     50 
     51 locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h
     52 	${NORMAL_S}
     53 
     54 ##
     55 ## (5) link settings
     56 ##
     57 TEXTADDR?=	${DEFTEXTADDR}
     58 LINKFLAGS_NORMAL=	-X
     59 
     60 ##
     61 ## (6) port specific target dependencies
     62 ##
     63 
     64 # depend on CPU configuration
     65 locore.o machdep.o: Makefile
     66 
     67 ##
     68 ## (7) misc settings
     69 ##
     70 
     71 ##
     72 ## (8) config(8) generated machinery
     73 ##
     74 %INCLUDES
     75 
     76 %OBJS
     77 
     78 %CFILES
     79 
     80 %SFILES
     81 
     82 %LOAD
     83 
     84 %RULES
     85 
     86 ##
     87 ## (9) port independent kernel machinery
     88 ##
     89 .include "$S/conf/Makefile.kern.inc"
     90 
     91 ##
     92 ## (10) Appending make options.
     93 ##
     94 %MAKEOPTIONSAPPEND
     95