Home | History | Annotate | Line # | Download | only in conf
Makefile.sparc revision 1.94
      1 # 	$NetBSD: Makefile.sparc,v 1.94 2016/02/27 19:26:13 joerg 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+=	${${ACTIVE_CC} == "gcc":? -mno-fpu :}
     37 CFLAGS+=	-Wa,-Av8
     38 CFLAGS+=	${${ACTIVE_CC} == "clang":? -Qunused-arguments :}
     39 AFLAGS+=	-x assembler-with-cpp
     40 AFLAGS+=	-Wa,-Av8
     41 AFLAGS+=	${${ACTIVE_CC} == "clang":? -Qunused-arguments :}
     42 
     43 ##
     44 ## (3) libkern and compat
     45 ##
     46 KERN_AS=	obj
     47 
     48 ##
     49 ## (4) local objects, compile rules, and dependencies
     50 ##
     51 MD_OBJS=	locore.o
     52 MD_CFILES=
     53 MD_SFILES=	${SPARC}/sparc/locore.s
     54 
     55 locore.o: ${SPARC}/sparc/locore.s assym.h
     56 	${NORMAL_S}
     57 
     58 amd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h
     59 
     60 ##
     61 ## (5) link settings
     62 ##
     63 TEXTADDR?=	F0004000
     64 EXTRA_LINKFLAGS=	-X
     65 KERNLDSCRIPT?= ${SPARC}/conf/kern.ldscript
     66 LINKFORMAT=	-n
     67 
     68 ##
     69 ## (6) port specific target dependencies
     70 ##
     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