Home | History | Annotate | Line # | Download | only in conf
Makefile.acorn32 revision 1.10
      1 #	$NetBSD: Makefile.acorn32,v 1.10 2002/01/09 20:54:40 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/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 MACHINE_ARCH?=arm32
     21 USETOOLS?=	no
     22 NEED_OWN_INSTALL_TARGET?=no
     23 .include <bsd.own.mk>
     24 
     25 ##
     26 ## (1) port identification
     27 ##
     28 ACORN32=	$S/arch/acorn32
     29 ARM=		$S/arch/arm
     30 GENASSYM=	${ARM}/arm32/genassym.cf
     31 GENASSYM_EXTRAS+=	${ACORN32}/acorn32/genassym.cf
     32 
     33 ##
     34 ## (2) compile settings
     35 ##
     36 CPPFLAGS+=	-Darm32
     37 CWARNFLAGS+=	-Wcomment
     38 LOOSE_PROTOTYPES= yes
     39 AFLAGS+=	-x assembler-with-cpp
     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=	${ARM}/arm32/locore.S
     52 
     53 locore.o: ${ARM}/arm32/locore.S assym.h
     54 	${NORMAL_S}
     55 
     56 .ifdef MONITOR
     57 MD_OBJS+=	modedefs.o
     58 MD_CFILES+=	modedefs.c
     59 
     60 modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
     61 	awk -f ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
     62 
     63 modedefs.o: modedefs.c
     64 	${NORMAL_C}
     65 .endif
     66 
     67 ##
     68 ## (5) link settings
     69 ##
     70 LOADADDRESS?=	0xF0000000
     71 LINKFLAGS_NORMAL=	-x
     72 
     73 ##
     74 ## (6) port specific target dependencies
     75 ##
     76 
     77 # depend on CPU configuration
     78 cpufunc.o cpufunc_asm.o: Makefile
     79 
     80 # depend on DIAGNOSTIC etc.
     81 cpuswitch.o fault.o machdep.o: Makefile
     82 
     83 ##
     84 ## (7) misc settings
     85 ##
     86 
     87 ##
     88 ## (8) config(8) generated machinery
     89 ##
     90 %INCLUDES
     91 
     92 %OBJS
     93 
     94 %CFILES
     95 
     96 %SFILES
     97 
     98 %LOAD
     99 
    100 %RULES
    101 
    102 ##
    103 ## (9) port independent kernel machinery
    104 ##
    105 .include "$S/conf/Makefile.kern.inc"
    106