gcc50: Disconnect from buildworld.
[dragonfly.git] / gnu / usr.bin / cc50 / 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
13
14 common_out_object_file= i386-common.o
15
16 OBJS=           ${OBJS-libcommon-target}
17 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
18
19 # XXX workaround g++80 -Wnarrowing
20 # error: narrowing conversion of '-1' from 'int' to 'unsigned int' inside { }
21 .if ${CCVER:Mgcc80}
22 CFLAGS+=        -Wno-narrowing
23 .endif
24
25 .for ofile in ${OBJS-libcommon-target}
26 ${ofile}: ${ofile:.o=.c}
27         ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
28 .endfor
29
30 .include <bsd.lib.mk>