custom message type for VM_INFO
[minix3.git] / share / mk / minix.service.mk
blobf09130b630b236400126c7d839ee9968451b8894
1 # MINIX-specific servers/drivers options
2 .include <bsd.own.mk>
4 # LSC: Our minimal c library has no putchar, which is called by the builtin
5 # functions of the compiler, so prevent using them.
7 AFLAGS+= -D__ASSEMBLY__
8 COPTS+= -fno-builtin
10 # LSC Static linking, order matters!
11 # We can't use --start-group/--end-group as they are not supported by our
12 # version of clang.
14 # 1. No default libs
15 LDADD:= -nodefaultlibs ${LDADD}
17 # 2. Services system library
18 LDADD+= -lsys
19 DPADD+= ${LIBSYS}
21 # 3. Minimal C library, if libc had not yet been added
22 .if ${LDADD:M-lc} == ""
23 LDADD+= -lminc
24 DPADD+= ${LIBMINC}
25 .endif # empty(${LDADD:M-lc})
27 .if ${MACHINE_ARCH} == "earm"
29 # LSC: On ARM, when compiling statically, with gcc, lgcc_eh is required
30 .if ${PROG:U} != "kernel" && !empty(CC:M*gcc)
31 # gcc_eh uses abort(), which is provided by minc
32 LDFLAGS+= ${${ACTIVE_CC} == "gcc":? -lgcc_eh:}
33 .endif # ${PROG:U} != "kernel" && !empty(CC:M*gcc)
35 .endif # ${MACHINE_ARCH} == "earm"
37 # Get (more) internal minix definitions and declarations.
38 CPPFLAGS += -D_MINIX_SYSTEM=1
40 .include <bsd.prog.mk>