Makefile.usermode revision 1.7
1# $NetBSD: Makefile.usermode,v 1.7 2011/08/11 22:38:25 jmcneill Exp $
2
3MACHINE_ARCH=			usermode
4USETOOLS?=			no
5NEED_OWN_INSTALL_TARGET?=	no
6.include <bsd.own.mk>
7
8##
9## (1) port identification
10##
11USERMODE=	$S/arch/usermode
12GENASSYM_CONF=	${USERMODE}/usermode/genassym.cf
13
14##
15## (2) compile settings
16##
17DEFCOPTS=	-O2 -fno-omit-frame-pointer
18CPPFLAGS+=	-Dusermode
19CPPFLAGS.init_main.c+=	-Dmain=kernmain
20
21##
22## (3) libkern and compat
23##
24KERN_AS=	obj
25COMPAT_AS=	obj
26
27##
28## (4) local objects, compile rules, and dependencies
29##
30MD_OBJS=
31MD_CFILES=
32MD_SFILES=
33
34##
35## (5) link settings
36##
37SYSTEM_LD=	@${_MKSHMSG} "   link  ${.CUTDIR:T}/${.TARGET}"; \
38		${_MKSHECHO}\
39		${CC} ${COPTS} -Wl,-Map,$@.map -o $@ '$${SYSTEM_OBJ}' '$${EXTRA_OBJ}' vers.o; \
40		${CC} ${COPTS} -Wl,-Map,$@.map -o $@ ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
41NVFLAGS=	-n
42
43##
44## (6) port specific target dependencies
45##
46
47##
48## (7) misc settings
49##
50
51##
52## (8) config(8) generated machinery
53%INCLUDES
54
55%OBJS
56
57%CFILES
58
59%SFILES
60
61%LOAD
62
63%RULES
64
65##
66## (9) port independent kernel machinery
67##
68.include "$S/conf/Makefile.kern.inc"
69
70##
71## (10) appending make options
72##
73%MAKEOPTIONSAPPEND
74