xref: /dragonfly/sys/platform/vkernel64/conf/Makefile (revision ae24b5e0)
1# Which version of config(8) is required.
2#
3%VERSREQ=	400026
4
5.if !defined(S)
6.if exists(./@/.)
7S=	./@
8.else
9S=	../..
10.endif
11.endif
12
13.include "$S/conf/kern.pre.mk"
14
15# Override the normal kernel link and link as a normal user program
16#
17# Note that the vkernel requires .hash section to be present as the kernel
18# linker uses it to resolve its symbols.
19#
20# Additionally, the max-page-size is set to 0x200000 regardless of the ld
21# default setting.
22#
23SYSTEM_LD= @${CC} ${DEBUG} ${PROF} -Wl,--export-dynamic -o ${.TARGET} ${SYSTEM_OBJS} vers.o -pthread
24SYSTEM_LD+= -Wl,--hash-style=sysv
25SYSTEM_LD+= -Wl,-z,max-page-size=0x200000
26
27%BEFORE_DEPEND
28
29%OBJS
30
31%CFILES
32
33%SFILES
34
35%MFILES
36
37%CLEAN
38
39.include "$S/conf/kern.post.mk"
40
41%RULES
42
43# DO NOT DELETE THIS LINE -- make depend uses it
44