Makefile.hpcarm revision 1.12
11.12Satatat# $NetBSD: Makefile.hpcarm,v 1.12 2001/12/09 05:00:44 atatat 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.8SthorpejMACHINE_ARCH=arm 211.7SjmcUSETOOLS?= no 221.12SatatatNEED_OWN_INSTALL_TARGET?=no 231.5Sthorpej.include <bsd.own.mk> 241.1Sichiro 251.12Satatat## 261.12Satatat## (1) port identification 271.12Satatat## 281.12SatatatHPCARM= $S/arch/hpcarm 291.12SatatatARM= $S/arch/arm 301.12SatatatGENASSYM= ${ARM}/arm32/genassym.cf 311.11SthorpejGENASSYM_EXTRAS+= ${HPCARM}/hpcarm/genassym.cf 321.11Sthorpej 331.12Satatat## 341.12Satatat## (2) compile settings 351.12Satatat## 361.12SatatatCPPFLAGS+= -Dhpcarm -Darm32 371.12SatatatCWARNFLAGS+= -Wcomment 381.12SatatatLOOSE_PROTOTYPES= yes 391.12SatatatAFLAGS+= -x assembler-with-cpp 401.12Satatat 411.12Satatat## 421.12Satatat## (3) libkern and compat 431.12Satatat## 441.1SichiroKERN_AS= obj 451.1Sichiro 461.12Satatat## 471.12Satatat## (4) local objects, compile rules, and dependencies 481.12Satatat## 491.12SatatatMD_OBJS= locore.o 501.12SatatatMD_CFILES= 511.12SatatatMD_SFILES= ${HPCARM}/hpcarm/locore.S 521.1Sichiro 531.12Satatatlocore.o: ${HPCARM}/hpcarm/locore.S assym.h 541.12Satatat ${NORMAL_S} 551.1Sichiro 561.12Satatat## 571.12Satatat## (5) link settings 581.12Satatat## 591.12SatatatTEXTADDR?= C0040000 601.12SatatatLINKFLAGS_NORMAL= -X 611.12Satatat 621.12Satatat## 631.12Satatat## (6) port specific target dependencies 641.12Satatat## 651.1Sichiro 661.9Slukem# depend on CPU configuration 671.1Sichirocpufunc.o cpufunc_asm.o: Makefile 681.1Sichiro 691.1Sichiro# depend on DIAGNOSTIC etc. 701.1Sichirocpuswitch.o fault.o machdep.o: Makefile 711.1Sichiro 721.12Satatat## 731.12Satatat## (7) misc settings 741.12Satatat## 751.12Satatat 761.12Satatat## 771.12Satatat## (8) config(8) generated machinery 781.12Satatat## 791.12Satatat%INCLUDES 801.12Satatat 811.12Satatat%OBJS 821.12Satatat 831.12Satatat%CFILES 841.1Sichiro 851.12Satatat%SFILES 861.1Sichiro 871.12Satatat%LOAD 881.1Sichiro 891.1Sichiro%RULES 901.12Satatat 911.12Satatat## 921.12Satatat## (9) port independent kernel machinery 931.12Satatat## 941.12Satatat.include "$S/conf/Makefile.kern.inc" 95