5ba62dde2e2e8fe6f642c9d41d944355307a74e7
[dragonfly.git] / gnu / usr.bin / cc47 / liblto_plugin / Makefile
1 GCC_NO_LIBS=    # defined
2 .include "Makefile.headers"
3 .include "../Makefile.inc"
4 .PATH: ${GCCDIR}/lto-plugin
5 .PATH: ${GCCDIR}/libiberty
6 .PATH: ${GCCDIR}/include
7 .PATH: ${GCCDIR}/gcc/cp
8 .PATH: ${GCCDIR}/libcpp/include
9
10 LIB=            lto_plugin
11
12 SHLIB_MAJOR=    0
13 NOPROFILE=      yes
14 NOINSTALLLIB=   yes
15
16 # GCC driver looks for LTO plugin library in libexec, not lib
17 TARGET_SHLIBDIR=        /usr/libexec/gcc47
18
19 # Plugin support file locations
20 PLUGIN_RESOURCE_DIR=    /usr/lib/gcc47/plugin
21 PLUGIN_HEADER_DIR=      ${PLUGIN_RESOURCE_DIR}/include
22
23 CFLAGS+=        -I${GCCDIR}/include
24 CFLAGS+=        -I${GCCDIR}/libiberty
25 CFLAGS+=        -DHAVE_CONFIG_H
26 SRCS=           lto-plugin.c
27 SRCS+=          hashtab.c \
28                 xmalloc.c \
29                 simple-object.c \
30                 simple-object-elf.c \
31                 simple-object-mach-o.c \
32                 simple-object-coff.c \
33                 xstrerror.c \
34                 pex-unix.c \
35                 pex-common.c \
36                 argv.c \
37                 safe-ctype.c \
38                 xexit.c \
39                 xstrdup.c \
40                 make-temp-file.c \
41                 concat.c
42
43 INCSGROUPS+=    LVL1_ LVL2_ LVL2_1_ LVL2_2_ LVL2_3_ LVL2_4_ LVL2_5_
44 LVL1_DIR=       ${PLUGIN_RESOURCE_DIR}
45 LVL2_DIR=       ${PLUGIN_HEADER_DIR}
46 LVL2_1_DIR=     ${PLUGIN_HEADER_DIR}/c-family
47 LVL2_2_DIR=     ${PLUGIN_HEADER_DIR}/cp
48 LVL2_3_DIR=     ${PLUGIN_HEADER_DIR}/objc
49 LVL2_4_DIR=     ${PLUGIN_HEADER_DIR}/config
50 LVL2_5_DIR=     ${PLUGIN_HEADER_DIR}/config/i386
51
52 LVL1_=          ${.OBJDIR}/../cc_tools/tools/gtype.state
53 LVL2_=          ${PLUGIN_HEADERS}
54 LVL2_1_=        ${PLUGIN_HEADERS_CFAMILY}
55 LVL2_2_=        ${PLUGIN_HEADERS_CP}
56 LVL2_3_=        ${PLUGIN_HEADERS_OBJC}
57 LVL2_4_=        ${PLUGIN_HEADERS_CONFIG}
58 LVL2_5_=        ${PLUGIN_HEADERS_CONFIG_I386}
59
60 .include <bsd.lib.mk>