Unbreak world (gcc47 plugin)
[dragonfly.git] / gnu / usr.bin / cc47 / liblto_plugin / Makefile
CommitLineData
b450dd39 1GCC_NO_LIBS= # defined
be6440e3 2.include "Makefile.headers"
b450dd39
JM
3.include "../Makefile.inc"
4.PATH: ${GCCDIR}/lto-plugin
be6440e3
JM
5.PATH: ${GCCDIR}/libiberty
6.PATH: ${GCCDIR}/include
7.PATH: ${GCCDIR}/gcc/cp
8.PATH: ${GCCDIR}/libcpp/include
b450dd39
JM
9
10LIB= lto_plugin
11
12SHLIB_MAJOR= 0
13NOPROFILE= yes
14NOINSTALLLIB= yes
15
16# GCC driver looks for LTO plugin library in libexec, not lib
17TARGET_SHLIBDIR= /usr/libexec/gcc47
18
be6440e3
JM
19# Plugin support file locations
20PLUGIN_RESOURCE_DIR= /usr/lib/gcc47/plugin
21PLUGIN_HEADER_DIR= ${PLUGIN_RESOURCE_DIR}/include
22
b450dd39 23CFLAGS+= -I${GCCDIR}/include
be6440e3 24CFLAGS+= -I${GCCDIR}/libiberty
b450dd39
JM
25CFLAGS+= -DHAVE_CONFIG_H
26SRCS= lto-plugin.c
be6440e3
JM
27SRCS+= 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
75e35d3a 43FILESGROUPS+= LVL1_ LVL2_ LVL2_1_ LVL2_2_ LVL2_3_ LVL2_4_ LVL3_
be6440e3
JM
44LVL1_DIR= ${PLUGIN_RESOURCE_DIR}
45LVL2_DIR= ${PLUGIN_HEADER_DIR}
46LVL2_1_DIR= ${PLUGIN_HEADER_DIR}/c-family
47LVL2_2_DIR= ${PLUGIN_HEADER_DIR}/cp
48LVL2_3_DIR= ${PLUGIN_HEADER_DIR}/objc
49LVL2_4_DIR= ${PLUGIN_HEADER_DIR}/config
75e35d3a 50LVL3_DIR= ${PLUGIN_HEADER_DIR}/config/i386
be6440e3
JM
51
52LVL1_= ${.OBJDIR}/../cc_tools/tools/gtype.state
53LVL2_= ${PLUGIN_HEADERS}
54LVL2_1_= ${PLUGIN_HEADERS_CFAMILY}
55LVL2_2_= ${PLUGIN_HEADERS_CP}
56LVL2_3_= ${PLUGIN_HEADERS_OBJC}
57LVL2_4_= ${PLUGIN_HEADERS_CONFIG}
75e35d3a 58LVL3_= ${PLUGIN_HEADERS_CONFIG_I386}
b450dd39
JM
59
60.include <bsd.lib.mk>