1# $NetBSD: Makefile.usermode,v 1.4 2011/01/21 15:59:09 joerg Exp $ 2 3MACHINE_ARCH= usermode 4USETOOLS?= no 5NEED_OWN_INSTALL_TARGET?= no 6.include <bsd.own.mk> 7 8SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o 9 10## 11## (1) port identification 12## 13USERMODE= $S/arch/usermode 14GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf 15 16## 17## (2) compile settings 18## 19DEFCOPTS= -O2 20CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc -Dfree=kernfree 21CPPFLAGS.init_main.c+= -Dmain=kernmain 22AFLAGS+= -x assembler-with-cpp 23 24## 25## (3) libkern and compat 26## 27KERN_AS= obj 28 29## 30## (4) local objects, compile rules, and dependencies 31## 32MD_OBJS= 33MD_CFILES= 34MD_SFILES= 35 36## 37## (5) link settings 38## 39 40## 41## (6) port specific target dependencies 42## 43 44## 45## (7) misc settings 46## 47 48## 49## (8) config(8) generated machinery 50%INCLUDES 51 52%OBJS 53 54%CFILES 55 56%SFILES 57 58%LOAD 59 60%RULES 61 62## 63## (9) port independent kernel machinery 64## 65.include "$S/conf/Makefile.kern.inc" 66 67## 68## (10) appending make options 69## 70%MAKEOPTIONSAPPEND 71