Home | History | Annotate | Line # | Download | only in conf
Makefile.sh3 revision 1.27.14.1
      1 #	$NetBSD: Makefile.sh3,v 1.27.14.1 2013/06/23 06:20:11 tls 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
     37 # -O2 is too -falign-* zealous for low-memory sh3 machines
     38 COPTS?=		-Os -freorder-blocks
     39 
     40 ##
     41 ## (3) libkern and compat
     42 ##
     43 OPT_MODULAR=	%MODULAR%
     44 .if !empty(OPT_MODULAR)
     45 KERN_AS=	obj
     46 .else
     47 KERN_AS=	library
     48 .endif
     49 
     50 ##
     51 ## (4) local objects, compile rules, and dependencies
     52 ##
     53 MD_OBJS=	locore.o
     54 MD_CFILES=
     55 MD_SFILES=	${THISSH3}/${MACHINE}/locore.S
     56 
     57 locore.o: ${THISSH3}/${MACHINE}/locore.S assym.h
     58 	${NORMAL_S}
     59 
     60 cpu_in_cksum.o exception_vector.o locore_subr.o: assym.h
     61 
     62 ##
     63 ## (5) link settings
     64 ##
     65 TEXTADDR?=	${DEFTEXTADDR}
     66 LINKFLAGS_NORMAL=	-X
     67 
     68 ##
     69 ## (6) port specific target dependencies
     70 ##
     71 
     72 # depend on CPU configuration
     73 locore.o machdep.o: Makefile
     74 
     75 ##
     76 ## (7) misc settings
     77 ##
     78 
     79 ##
     80 ## (8) config(8) generated machinery
     81 ##
     82 %INCLUDES
     83 
     84 %OBJS
     85 
     86 %CFILES
     87 
     88 %SFILES
     89 
     90 %LOAD
     91 
     92 %RULES
     93 
     94 ##
     95 ## (9) port independent kernel machinery
     96 ##
     97 .include "$S/conf/Makefile.kern.inc"
     98 
     99 ##
    100 ## (10) Appending make options.
    101 ##
    102 %MAKEOPTIONSAPPEND
    103