fix small typo
[openwrt.git] / package / ustl / files / Common.mk
1 LIBNAME = ustl
2 MAJOR = 0
3 MINOR = 8
4 BUILD = 0
5
6 CC = $(CROSS)gcc
7 CXX = $(CROSS)g++
8 LD = $(CROSS)gcc
9 AR = $(CROSS)ar
10 RANLIB = $(CROSS)ranlib
11 DOXYGEN = echo
12 INSTALL = /usr/bin/install
13 RM = rm -f
14 LN = ln -sf
15
16 prefix = /usr
17 exec_prefix = /usr
18 BINDIR = /usr/bin
19 INCDIR = /usr/include
20 LIBDIR = /usr/lib
21
22 DESTDIR =
23
24 INSTALLDIR = ${INSTALL} -d
25 INSTALLLIB = ${INSTALL} -p -m 644
26 INSTALLEXE = ${INSTALL} -p -m 755
27 INSTALLDATA = ${INSTALL} -p -m 644
28
29 CWARNOPTS = -Werror -Wall -W -Wpointer-arith -Wno-cast-align \
30 -Wcast-qual -Wwrite-strings -Wredundant-decls
31 CXXWARNOPTS = ${CWARNOPTS} -Wconversion -Wsign-promo -Wsynth -Woverloaded-virtual
32 PROCESSOR_OPTS =
33 INLINE_OPTS = -finline-limit=65535
34 CUSTOMINCDIR =
35 CUSTOMLIBDIR =
36
37 BUILD_SHARED = 1
38 BUILD_STATIC = 1
39 #DEBUG = 1
40 #PROFILE = 1
41 STANDALONE = -nodefaultlibs
42
43 CFLAGS = \
44 ${CUSTOMINCDIR} ${OPTFLAGS} ${CWARNOPTS} ${STANDALONE}
45 CXXFLAGS = \
46 ${CUSTOMINCDIR} ${OPTFLAGS} ${INLINE_OPTS} \
47 ${CXXWARNOPTS} ${STANDALONE} -fno-builtin
48 LDFLAGS = ${CUSTOMLIBDIR} ${STANDALONE}
49 OPTFLAGS = ${PROCESSOR_OPTS}
50 ifdef DEBUG
51 OPTFLAGS += -O0 -g
52 else
53 OPTFLAGS += -O3 -DNDEBUG=1
54 endif
55 ifdef PROFILE
56 OPTFLAGS += -pg
57 endif
58 ifdef STANDALONE
59 LIBS += -lsupc++ -lgcc_eh -lgcc -lc
60 endif
61 ifdef BUILD_SHARED
62 CFLAGS += -fPIC
63 CXXFLAGS += -fPIC
64 endif
65 SHBLDFL = -shared
66
67 LIBA = lib${LIBNAME}.a
68 LIBSO = lib${LIBNAME}.so
69 ifdef MAJOR
70 LIBSOLNK = ${LIBSO}.${MAJOR}.${MINOR}
71 LIBSOBLD = ${LIBSO}.${MAJOR}.${MINOR}.${BUILD}
72 endif
73 TOCLEAN += ${LIBSO} ${LIBA} ${LIBSOBLD}
74
This page took 0.046497 seconds and 5 git commands to generate.