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