bootstrap: Remove helpers for upgrading directly from pre 4.4
[dragonfly.git] / gnu / usr.bin / cc50 / cc_tools / libcpp / Makefile
blob5d6d6abc9a6aa93f6504ee10f8082a20ec0c6c15
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.
4 GCC_NO_PATH= yes
5 LOCAL_CONFIG= yes
6 .include "../Makefile.inc"
7 .PATH: ${GCCDIR}/libcpp
9 LIB= cpp
11 CFLAGS+= -I${.CURDIR}
12 CFLAGS+= -Duchar="unsigned char"
13 GOOD_CONFIG= ${.CURDIR}/../../support-libs/libcpp/config.h
15 SRCS= charset.c \
16 directives-only.c \
17 directives.c \
18 errors.c \
19 expr.c \
20 files.c \
21 identifiers.c \
22 init.c \
23 lex.c \
24 line-map.c \
25 macro.c \
26 mkdeps.c \
27 pch.c \
28 symtab.c \
29 traditional.c
31 localedir.h:
32 touch $@
34 config.h: ${GOOD_CONFIG}
35 cp ${.ALLSRC} .
37 beforedepend: localedir.h config.h
38 afterdepend: libcpp.na
40 CLEANFILES= localedir.h config.h
42 .include "../../Makefile.intcxx_lib"