Home | History | Annotate | Line # | Download | only in conf
Makefile.acorn32 revision 1.22.10.1
      1 #	$NetBSD: Makefile.acorn32,v 1.22.10.1 2009/05/04 08:10:25 yamt 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/acorn32/conf/``machineid''
      9 # after which you should do
     10 #	config machineid
     11 # Machine generic makefile changes should be made in
     12 #	/sys/arch/acorn32/conf/Makefile.acorn32
     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 ACORN32=	$S/arch/acorn32
     28 ARM=		$S/arch/arm
     29 GENASSYM_CONF=	${ARM}/arm32/genassym.cf
     30 GENASSYM_EXTRAS+=	${ACORN32}/acorn32/genassym.cf
     31 
     32 ##
     33 ## (2) compile settings
     34 ##
     35 CPPFLAGS+=	-Darm32
     36 CWARNFLAGS+=	-Wcomment
     37 AFLAGS+=	-x assembler-with-cpp
     38 
     39 ##
     40 ## (3) libkern and compat
     41 ##
     42 KERN_AS=	obj
     43 
     44 ##
     45 ## (4) local objects, compile rules, and dependencies
     46 ##
     47 MD_OBJS=	locore.o
     48 MD_CFILES=
     49 MD_SFILES=	${ARM}/arm32/locore.S
     50 
     51 atomic.o bcopy_page.o bcopyinout.o copystr.o cpuswitch.o: assym.h
     52 cpu_in_cksum.o exception.o fiq_subr.o fusu.o iomd_irqhandler.o: assym.h
     53 iomd_irq.o sigcode.o spl.o vectors.o: assym.h
     54 
     55 locore.o: ${ARM}/arm32/locore.S assym.h
     56 	${NORMAL_S}
     57 
     58 MD_OBJS+=	modedefs.o
     59 MD_CFILES+=	modedefs.c
     60 
     61 .ifdef MONITOR
     62 modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
     63 	${_MKTARGET_CREATE}
     64 	${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk \
     65 		${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
     66 .else
     67 modedefs.c: ${ARM}/iomd/makemodes.awk Makefile
     68 	${_MKTARGET_CREATE}
     69 	${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk </dev/null >modedefs.c
     70 .endif
     71 
     72 modedefs.o: modedefs.c
     73 	${NORMAL_C}
     74 
     75 
     76 ##
     77 ## (5) link settings
     78 ##
     79 LOADADDRESS?=	0xF0000000
     80 LINKFORMAT=	-N
     81 LINKFLAGS_NORMAL=	-x
     82 
     83 ##
     84 ## (6) port specific target dependencies
     85 ##
     86 
     87 # depend on CPU configuration
     88 cpufunc.o cpufunc_asm.o: Makefile
     89 
     90 # depend on DIAGNOSTIC etc.
     91 cpuswitch.o fault.o machdep.o: Makefile
     92 
     93 ##
     94 ## (7) misc settings
     95 ##
     96 
     97 ##
     98 ## (8) config(8) generated machinery
     99 ##
    100 %INCLUDES
    101 
    102 %OBJS
    103 
    104 %CFILES
    105 
    106 %SFILES
    107 
    108 %LOAD
    109 
    110 %RULES
    111 
    112 ##
    113 ## (9) port independent kernel machinery
    114 ##
    115 .include "$S/conf/Makefile.kern.inc"
    116 
    117 ##
    118 ## (10) Appending make options.
    119 ##
    120 %MAKEOPTIONSAPPEND
    121