gcc80: Bring in makefiles but leave them unhooked.
[dragonfly.git] / gnu / usr.bin / cc80 / cc_tools / libcpp / Makefile
1 # Despite the source files ending in ".c", the c++ compiler needs to build
2 # everything.  We have to roll our own targets to properly support this.
3
4 GCC_NO_PATH=    yes
5 LOCAL_CONFIG=   yes
6 .include "../Makefile.inc"
7 .PATH: ${GCCDIR}/libcpp
8
9 LIB=            cpp
10
11 CFLAGS+=        -I${.CURDIR}
12 CFLAGS+=        -Duchar="unsigned char"
13 CXXFLAGS+=      ${NOEXCEPTION_FLAGS}
14 GOOD_CONFIG=    ${.CURDIR}/../../support-libs/libcpp/config.h
15
16 SRCS=           charset.c \
17                 directives-only.c \
18                 directives.c \
19                 errors.c \
20                 expr.c \
21                 files.c \
22                 identifiers.c \
23                 init.c \
24                 lex.c \
25                 line-map.c \
26                 macro.c \
27                 mkdeps.c \
28                 pch.c \
29                 symtab.c \
30                 traditional.c
31
32 localedir.h:
33         touch $@
34
35 config.h: ${GOOD_CONFIG}
36         cp ${.ALLSRC} .
37
38 beforedepend: localedir.h config.h
39 afterdepend: libcpp.na
40
41 CLEANFILES=     localedir.h config.h
42
43 .include "../../Makefile.intcxx_lib"