Makefile.usermode revision 1.7
11.7Sjmcneill# $NetBSD: Makefile.usermode,v 1.7 2011/08/11 22:38:25 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.7SjmcneillNVFLAGS= -n 421.1Sjmcneill 431.1Sjmcneill## 441.1Sjmcneill## (6) port specific target dependencies 451.1Sjmcneill## 461.1Sjmcneill 471.1Sjmcneill## 481.1Sjmcneill## (7) misc settings 491.1Sjmcneill## 501.1Sjmcneill 511.1Sjmcneill## 521.1Sjmcneill## (8) config(8) generated machinery 531.1Sjmcneill%INCLUDES 541.1Sjmcneill 551.1Sjmcneill%OBJS 561.1Sjmcneill 571.1Sjmcneill%CFILES 581.1Sjmcneill 591.1Sjmcneill%SFILES 601.1Sjmcneill 611.1Sjmcneill%LOAD 621.1Sjmcneill 631.1Sjmcneill%RULES 641.1Sjmcneill 651.1Sjmcneill## 661.1Sjmcneill## (9) port independent kernel machinery 671.1Sjmcneill## 681.1Sjmcneill.include "$S/conf/Makefile.kern.inc" 691.1Sjmcneill 701.1Sjmcneill## 711.1Sjmcneill## (10) appending make options 721.1Sjmcneill## 731.1Sjmcneill%MAKEOPTIONSAPPEND 74