Makefile.usermode revision 1.6
11.6Sjmcneill# $NetBSD: Makefile.usermode,v 1.6 2011/08/11 22:30:41 jmcneill Exp $ 21.1Sjmcneill 31.1SjmcneillMACHINE_ARCH= usermode 41.1SjmcneillUSETOOLS?= no 51.1SjmcneillNEED_OWN_INSTALL_TARGET?= no 61.1Sjmcneill.include <bsd.own.mk> 71.1Sjmcneill 81.1Sjmcneill## 91.1Sjmcneill## (1) port identification 101.1Sjmcneill## 111.1SjmcneillUSERMODE= $S/arch/usermode 121.1SjmcneillGENASSYM_CONF= ${USERMODE}/usermode/genassym.cf 131.1Sjmcneill 141.1Sjmcneill## 151.1Sjmcneill## (2) compile settings 161.1Sjmcneill## 171.6SjmcneillDEFCOPTS= -O2 -fno-omit-frame-pointer 181.5SjmcneillCPPFLAGS+= -Dusermode 191.2SjmcneillCPPFLAGS.init_main.c+= -Dmain=kernmain 201.1Sjmcneill 211.1Sjmcneill## 221.1Sjmcneill## (3) libkern and compat 231.1Sjmcneill## 241.1SjmcneillKERN_AS= obj 251.6SjmcneillCOMPAT_AS= obj 261.1Sjmcneill 271.1Sjmcneill## 281.1Sjmcneill## (4) local objects, compile rules, and dependencies 291.1Sjmcneill## 301.1SjmcneillMD_OBJS= 311.1SjmcneillMD_CFILES= 321.1SjmcneillMD_SFILES= 331.1Sjmcneill 341.1Sjmcneill## 351.1Sjmcneill## (5) link settings 361.1Sjmcneill## 371.6SjmcneillSYSTEM_LD= @${_MKSHMSG} " link ${.CUTDIR:T}/${.TARGET}"; \ 381.6Sjmcneill ${_MKSHECHO}\ 391.6Sjmcneill ${CC} ${COPTS} -Wl,-Map,$@.map -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \ 401.6Sjmcneill ${CC} ${COPTS} -Wl,-Map,$@.map -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o 411.6Sjmcneill 421.6Sjmcneillnewvers: vers.o 431.6Sjmcneillvers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh 441.6Sjmcneill ${_MKMSG_CREATE} vers.c 451.6Sjmcneill ${HOST_SH} $S/conf/newvers.sh -n ${_NVFLAGS} 461.6Sjmcneill ${_MKTARGET_COMPILE} 471.6Sjmcneill ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c 481.1Sjmcneill 491.1Sjmcneill## 501.1Sjmcneill## (6) port specific target dependencies 511.1Sjmcneill## 521.1Sjmcneill 531.1Sjmcneill## 541.1Sjmcneill## (7) misc settings 551.1Sjmcneill## 561.1Sjmcneill 571.1Sjmcneill## 581.1Sjmcneill## (8) config(8) generated machinery 591.1Sjmcneill%INCLUDES 601.1Sjmcneill 611.1Sjmcneill%OBJS 621.1Sjmcneill 631.1Sjmcneill%CFILES 641.1Sjmcneill 651.1Sjmcneill%SFILES 661.1Sjmcneill 671.1Sjmcneill%LOAD 681.1Sjmcneill 691.1Sjmcneill%RULES 701.1Sjmcneill 711.1Sjmcneill## 721.1Sjmcneill## (9) port independent kernel machinery 731.1Sjmcneill## 741.1Sjmcneill.include "$S/conf/Makefile.kern.inc" 751.1Sjmcneill 761.1Sjmcneill## 771.1Sjmcneill## (10) appending make options 781.1Sjmcneill## 791.1Sjmcneill%MAKEOPTIONSAPPEND 80