Home | History | Annotate | Line # | Download | only in conf
Makefile.sparc revision 1.90
      1 # 	$NetBSD: Makefile.sparc,v 1.90 2014/11/15 12:37:37 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/sparc/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/sparc/conf/Makefile.sparc
     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=	sparc
     21 USETOOLS?=	no
     22 NEED_OWN_INSTALL_TARGET?=no
     23 .include <bsd.own.mk>
     24 
     25 ##
     26 ## (1) port identification
     27 ##
     28 SPARC=		$S/arch/sparc
     29 GENASSYM_CONF=	${SPARC}/sparc/genassym.cf
     30 
     31 ##
     32 ## (2) compile settings
     33 ##
     34 # work around GCC (egcs-2.91.66) bug which is liable
     35 # to use FPU registers as temporaries:
     36 CFLAGS+=	-mno-fpu
     37 CFLAGS+=	-Wa,-Av8
     38 AFLAGS+=	-x assembler-with-cpp
     39 AFLAGS+=	-Wa,-Av8
     40 
     41 ##
     42 ## (3) libkern and compat
     43 ##
     44 KERN_AS=	obj
     45 
     46 ##
     47 ## (4) local objects, compile rules, and dependencies
     48 ##
     49 MD_OBJS=	locore.o
     50 MD_CFILES=
     51 MD_SFILES=	${SPARC}/sparc/locore.s
     52 
     53 locore.o: ${SPARC}/sparc/locore.s assym.h
     54 	${NORMAL_S}
     55 
     56 amd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h
     57 
     58 ##
     59 ## (5) link settings
     60 ##
     61 TEXTADDR?=	F0004000
     62 EXTRA_LINKFLAGS=	-X
     63 KERN_LDSCRIPT?= kern.ldscript
     64 LINKFORMAT=	-n
     65 LINKSCRIPT=	-T ${SPARC}/conf/${KERN_LDSCRIPT}
     66 
     67 ##
     68 ## (6) port specific target dependencies
     69 ##
     70 
     71 ##
     72 ## (7) misc settings
     73 ##
     74 
     75 ##
     76 ## (8) config(8) generated machinery
     77 ##
     78 %INCLUDES
     79 
     80 %OBJS
     81 
     82 %CFILES
     83 
     84 %SFILES
     85 
     86 %LOAD
     87 
     88 %RULES
     89 
     90 ##
     91 ## (9) port independent kernel machinery
     92 ##
     93 .include "$S/conf/Makefile.kern.inc"
     94 
     95 ##
     96 ## (10) Appending make options.
     97 ##
     98 %MAKEOPTIONSAPPEND
     99