1 # $NetBSD: Makefile.usermode,v 1.2 2007/12/29 16:13:46 jmcneill Exp $ 2 3 MACHINE_ARCH= usermode 4 USETOOLS?= no 5 NEED_OWN_INSTALL_TARGET?= no 6 .include <bsd.own.mk> 7 8 SYSTEM_LD= ${CC} -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o 9 10 ## 11 ## (1) port identification 12 ## 13 USERMODE= $S/arch/usermode 14 GENASSYM_CONF= ${USERMODE}/usermode/genassym.cf 15 16 ## 17 ## (2) compile settings 18 ## 19 DEFCOPTS= -O2 20 CPPFLAGS+= -Dusermode -Dmalloc=kernmalloc 21 CPPFLAGS.init_main.c+= -Dmain=kernmain 22 AFLAGS+= -x assembler-with-cpp -traditional-cpp 23 24 ## 25 ## (3) libkern and compat 26 ## 27 KERN_AS= obj 28 29 ## 30 ## (4) local objects, compile rules, and dependencies 31 ## 32 MD_OBJS= 33 MD_CFILES= 34 MD_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