nrelease - fix/improve livecd
[dragonfly.git] / gnu / usr.bin / cc80 / support-libs / libcommon-target / Makefile
1 .include "../Makefile.inc"
2
3 LIB=            common-target
4 INTERNALLIB=    YES
5
6 .PATH: $(srcdir)/common
7 .PATH: $(srcdir)/common/config/i386
8
9 # Almost verbatim from Makefile
10 OBJS-libcommon-target = $(common_out_object_file) prefix.o params.o \
11         opts.o opts-common.o options.o vec.o hooks.o common-targhooks.o \
12         hash-table.o file-find.o spellcheck.o
13
14 common_out_object_file= i386-common.o
15
16 .if ${CFLAGS:M-DTOOLCHAIN_CHECKING}
17 OBJS-libcommon-target+= selftest.o
18 .endif
19
20 OBJS=           ${OBJS-libcommon-target}
21 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
22
23 # for opts-common.c
24 .if ${CCVER:Mgcc80}
25 CXXFLAGS+=      -Wno-narrowing
26 .elif ${CCVER:Mclang*}
27 CXXFLAGS+=      -Wno-c++11-narrowing
28 .endif
29
30 .for ofile in ${OBJS-libcommon-target}
31 ${ofile}: ${ofile:.o=.c}
32         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
33 .endfor
34
35 .include <bsd.lib.mk>