Home | History | Annotate | Line # | Download | only in conf
      1  1.25       rin #	$NetBSD: Makefile.acorn32,v 1.25 2021/11/08 23:35:43 rin Exp $
      2   1.1   reinoud 
      3   1.1   reinoud # Makefile for NetBSD
      4   1.1   reinoud #
      5   1.1   reinoud # This makefile is constructed from a machine description:
      6   1.1   reinoud #	config machineid
      7   1.1   reinoud # Most changes should be made in the machine description
      8   1.1   reinoud #	/sys/arch/acorn32/conf/``machineid''
      9   1.1   reinoud # after which you should do
     10   1.1   reinoud #	config machineid
     11   1.1   reinoud # Machine generic makefile changes should be made in
     12   1.1   reinoud #	/sys/arch/acorn32/conf/Makefile.acorn32
     13   1.1   reinoud # after which config should be rerun for all machines of that type.
     14   1.9    atatat #
     15   1.9    atatat # To specify debugging, add the config line: makeoptions DEBUG="-g"
     16   1.9    atatat # A better way is to specify -g only for a few files.
     17   1.9    atatat #
     18   1.9    atatat #	makeoptions DEBUGLIST="uvm* trap if_*"
     19   1.3   thorpej 
     20   1.4       jmc USETOOLS?=	no
     21   1.9    atatat NEED_OWN_INSTALL_TARGET?=no
     22   1.2   thorpej .include <bsd.own.mk>
     23   1.1   reinoud 
     24   1.9    atatat ##
     25   1.9    atatat ## (1) port identification
     26   1.9    atatat ##
     27   1.1   reinoud ACORN32=	$S/arch/acorn32
     28   1.9    atatat ARM=		$S/arch/arm
     29  1.17  christos GENASSYM_CONF=	${ARM}/arm32/genassym.cf
     30   1.9    atatat GENASSYM_EXTRAS+=	${ACORN32}/acorn32/genassym.cf
     31   1.9    atatat 
     32   1.9    atatat ##
     33   1.9    atatat ## (2) compile settings
     34   1.9    atatat ##
     35   1.9    atatat CPPFLAGS+=	-Darm32
     36   1.9    atatat CWARNFLAGS+=	-Wcomment
     37   1.9    atatat AFLAGS+=	-x assembler-with-cpp
     38   1.9    atatat 
     39  1.25       rin OPT_DDB=	%DDB%
     40  1.25       rin .if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
     41  1.25       rin CFLAGS+=	-mapcs-frame
     42  1.25       rin .endif
     43  1.25       rin 
     44   1.9    atatat ##
     45   1.9    atatat ## (3) libkern and compat
     46   1.9    atatat ##
     47  1.24       rin OPT_MODULAR=	%MODULAR%
     48   1.1   reinoud 
     49   1.9    atatat ##
     50   1.9    atatat ## (4) local objects, compile rules, and dependencies
     51   1.9    atatat ##
     52   1.9    atatat MD_OBJS=	locore.o
     53   1.9    atatat MD_CFILES=
     54   1.9    atatat MD_SFILES=	${ARM}/arm32/locore.S
     55   1.1   reinoud 
     56  1.21     joerg atomic.o bcopy_page.o bcopyinout.o copystr.o cpuswitch.o: assym.h
     57  1.22     joerg cpu_in_cksum.o exception.o fiq_subr.o fusu.o iomd_irqhandler.o: assym.h
     58  1.22     joerg iomd_irq.o sigcode.o spl.o vectors.o: assym.h
     59  1.21     joerg 
     60   1.9    atatat locore.o: ${ARM}/arm32/locore.S assym.h
     61   1.9    atatat 	${NORMAL_S}
     62   1.1   reinoud 
     63   1.9    atatat MD_OBJS+=	modedefs.o
     64   1.9    atatat MD_CFILES+=	modedefs.c
     65   1.1   reinoud 
     66  1.19     bjh21 .ifdef MONITOR
     67   1.9    atatat modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
     68  1.19     bjh21 	${_MKTARGET_CREATE}
     69  1.23       apb 	${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk \
     70  1.23       apb 		${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
     71  1.19     bjh21 .else
     72  1.19     bjh21 modedefs.c: ${ARM}/iomd/makemodes.awk Makefile
     73  1.19     bjh21 	${_MKTARGET_CREATE}
     74  1.23       apb 	${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk </dev/null >modedefs.c
     75  1.19     bjh21 .endif
     76   1.1   reinoud 
     77   1.9    atatat modedefs.o: modedefs.c
     78   1.1   reinoud 	${NORMAL_C}
     79  1.19     bjh21 
     80   1.1   reinoud 
     81   1.9    atatat ##
     82   1.9    atatat ## (5) link settings
     83   1.9    atatat ##
     84   1.9    atatat LOADADDRESS?=	0xF0000000
     85  1.14     bjh21 LINKFORMAT=	-N
     86   1.9    atatat LINKFLAGS_NORMAL=	-x
     87   1.9    atatat 
     88   1.9    atatat ##
     89   1.9    atatat ## (6) port specific target dependencies
     90   1.9    atatat ##
     91   1.1   reinoud 
     92   1.5     lukem # depend on CPU configuration
     93   1.1   reinoud cpufunc.o cpufunc_asm.o: Makefile
     94   1.1   reinoud 
     95   1.1   reinoud # depend on DIAGNOSTIC etc.
     96   1.1   reinoud cpuswitch.o fault.o machdep.o: Makefile
     97   1.1   reinoud 
     98   1.9    atatat ##
     99   1.9    atatat ## (7) misc settings
    100   1.9    atatat ##
    101   1.9    atatat 
    102   1.9    atatat ##
    103   1.9    atatat ## (8) config(8) generated machinery
    104   1.9    atatat ##
    105   1.9    atatat %INCLUDES
    106   1.1   reinoud 
    107   1.9    atatat %OBJS
    108   1.1   reinoud 
    109   1.9    atatat %CFILES
    110   1.1   reinoud 
    111   1.9    atatat %SFILES
    112   1.1   reinoud 
    113   1.9    atatat %LOAD
    114   1.1   reinoud 
    115   1.1   reinoud %RULES
    116   1.9    atatat 
    117   1.9    atatat ##
    118   1.9    atatat ## (9) port independent kernel machinery
    119   1.9    atatat ##
    120   1.9    atatat .include "$S/conf/Makefile.kern.inc"
    121  1.16   thorpej 
    122  1.16   thorpej ##
    123  1.16   thorpej ## (10) Appending make options.
    124  1.16   thorpej ##
    125  1.16   thorpej %MAKEOPTIONSAPPEND
    126