1 # $NetBSD: Makefile.usermode,v 1.2 2007/12/29 16:13:46 jmcneill Exp $
5 NEED_OWN_INSTALL_TARGET?= no
8 SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
11 ## (1) port identification
13 USERMODE= $S/arch/usermode
14 GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf
17 ## (2) compile settings
20 CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree
21 CPPFLAGS.init_main.c+= -Dmain=kernmain
22 AFLAGS+= -x assembler-with-cpp -traditional-cpp
25 ## (3) libkern and compat
30 ## (4) local objects, compile rules, and dependencies
41 ## (6) port specific target dependencies
49 ## (8) config(8) generated machinery
63 ## (9) port independent kernel machinery
65 .include "$S/conf/Makefile.kern.inc"
68 ## (10) appending make options