Makefile.usermode revision 1.2
11.2Sjmcneill# $NetBSD: Makefile.usermode,v 1.2 2007/12/29 16:13:46 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.1SjmcneillSYSTEM_LD=	${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
91.1Sjmcneill
101.1Sjmcneill##
111.1Sjmcneill## (1) port identification
121.1Sjmcneill##
131.1SjmcneillUSERMODE=	$S/arch/usermode
141.1SjmcneillGENASSYM_CONF=	${USERMODE}/usermode/genassym.cf
151.1Sjmcneill
161.1Sjmcneill##
171.1Sjmcneill## (2) compile settings
181.1Sjmcneill##
191.1SjmcneillDEFCOPTS=	-O2
201.1SjmcneillCPPFLAGS+=	-Dusermode -Dmalloc=kernmalloc
211.2SjmcneillCPPFLAGS.init_main.c+=	-Dmain=kernmain
221.1SjmcneillAFLAGS+=	-x assembler-with-cpp -traditional-cpp
231.1Sjmcneill
241.1Sjmcneill##
251.1Sjmcneill## (3) libkern and compat
261.1Sjmcneill##
271.1SjmcneillKERN_AS=	obj
281.1Sjmcneill
291.1Sjmcneill##
301.1Sjmcneill## (4) local objects, compile rules, and dependencies
311.1Sjmcneill##
321.1SjmcneillMD_OBJS=
331.1SjmcneillMD_CFILES=
341.1SjmcneillMD_SFILES=
351.1Sjmcneill
361.1Sjmcneill##
371.1Sjmcneill## (5) link settings
381.1Sjmcneill##
391.1Sjmcneill
401.1Sjmcneill##
411.1Sjmcneill## (6) port specific target dependencies
421.1Sjmcneill##
431.1Sjmcneill
441.1Sjmcneill##
451.1Sjmcneill## (7) misc settings
461.1Sjmcneill##
471.1Sjmcneill
481.1Sjmcneill##
491.1Sjmcneill## (8) config(8) generated machinery
501.1Sjmcneill%INCLUDES
511.1Sjmcneill
521.1Sjmcneill%OBJS
531.1Sjmcneill
541.1Sjmcneill%CFILES
551.1Sjmcneill
561.1Sjmcneill%SFILES
571.1Sjmcneill
581.1Sjmcneill%LOAD
591.1Sjmcneill
601.1Sjmcneill%RULES
611.1Sjmcneill
621.1Sjmcneill##
631.1Sjmcneill## (9) port independent kernel machinery
641.1Sjmcneill##
651.1Sjmcneill.include "$S/conf/Makefile.kern.inc"
661.1Sjmcneill
671.1Sjmcneill##
681.1Sjmcneill## (10) appending make options
691.1Sjmcneill##
701.1Sjmcneill%MAKEOPTIONSAPPEND
71