Makefile.hpcarm revision 1.19
11.19Srin# $NetBSD: Makefile.hpcarm,v 1.19 2018/09/22 12:24:02 rin Exp $ 21.1Sichiro 31.1Sichiro# Makefile for NetBSD 41.1Sichiro# 51.1Sichiro# This makefile is constructed from a machine description: 61.1Sichiro# config machineid 71.1Sichiro# Most changes should be made in the machine description 81.1Sichiro# /sys/arch/hpcarm/conf/``machineid'' 91.1Sichiro# after which you should do 101.1Sichiro# config machineid 111.1Sichiro# Machine generic makefile changes should be made in 121.1Sichiro# /sys/arch/hpcarm/conf/Makefile.hpcarm 131.1Sichiro# after which config should be rerun for all machines of that type. 141.12Satatat# 151.12Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g" 161.12Satatat# A better way is to specify -g only for a few files. 171.12Satatat# 181.12Satatat# makeoptions DEBUGLIST="uvm* trap if_*" 191.6Sthorpej 201.7SjmcUSETOOLS?= no 211.12SatatatNEED_OWN_INSTALL_TARGET?=no 221.5Sthorpej.include <bsd.own.mk> 231.1Sichiro 241.12Satatat## 251.12Satatat## (1) port identification 261.12Satatat## 271.12SatatatHPCARM= $S/arch/hpcarm 281.12SatatatARM= $S/arch/arm 291.16SchristosGENASSYM_CONF= ${ARM}/arm32/genassym.cf 301.11SthorpejGENASSYM_EXTRAS+= ${HPCARM}/hpcarm/genassym.cf 311.11Sthorpej 321.12Satatat## 331.12Satatat## (2) compile settings 341.12Satatat## 351.12SatatatCPPFLAGS+= -Dhpcarm -Darm32 361.12SatatatCWARNFLAGS+= -Wcomment 371.12SatatatAFLAGS+= -x assembler-with-cpp 381.12Satatat 391.12Satatat## 401.12Satatat## (3) libkern and compat 411.12Satatat## 421.19SrinOPT_MODULAR= %MODULAR% 431.1Sichiro 441.12Satatat## 451.12Satatat## (4) local objects, compile rules, and dependencies 461.12Satatat## 471.12SatatatMD_OBJS= locore.o 481.12SatatatMD_CFILES= 491.12SatatatMD_SFILES= ${HPCARM}/hpcarm/locore.S 501.1Sichiro 511.12Satatatlocore.o: ${HPCARM}/hpcarm/locore.S assym.h 521.12Satatat ${NORMAL_S} 531.1Sichiro 541.12Satatat## 551.12Satatat## (5) link settings 561.12Satatat## 571.12SatatatTEXTADDR?= C0040000 581.12SatatatLINKFLAGS_NORMAL= -X 591.12Satatat 601.12Satatat## 611.12Satatat## (6) port specific target dependencies 621.12Satatat## 631.1Sichiro 641.9Slukem# depend on CPU configuration 651.1Sichirocpufunc.o cpufunc_asm.o: Makefile 661.1Sichiro 671.1Sichiro# depend on DIAGNOSTIC etc. 681.1Sichirocpuswitch.o fault.o machdep.o: Makefile 691.1Sichiro 701.18Sjoergatomic.o bcopyinout.o bcopy_page.o copystr.o cpu_in_cksum.o: assym.h 711.18Sjoergcpuswitch.o exception.o fiq_subr.o fusu.o sa11x0_irq.o sigcode.o: assym.h 721.18Sjoergspl.o vectors.o: assym.h 731.18Sjoerg 741.12Satatat## 751.12Satatat## (7) misc settings 761.12Satatat## 771.12Satatat 781.12Satatat## 791.12Satatat## (8) config(8) generated machinery 801.12Satatat## 811.12Satatat%INCLUDES 821.12Satatat 831.12Satatat%OBJS 841.12Satatat 851.12Satatat%CFILES 861.1Sichiro 871.12Satatat%SFILES 881.1Sichiro 891.12Satatat%LOAD 901.1Sichiro 911.1Sichiro%RULES 921.12Satatat 931.12Satatat## 941.12Satatat## (9) port independent kernel machinery 951.12Satatat## 961.12Satatat.include "$S/conf/Makefile.kern.inc" 971.15Sthorpej 981.15Sthorpej## 991.15Sthorpej## (10) Appending make options. 1001.15Sthorpej## 1011.15Sthorpej%MAKEOPTIONSAPPEND 102