summaryrefslogtreecommitdiff
path: root/package/ustl/files/Common.mk
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-08 22:15:42 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-08 22:15:42 +0000
commit8bc453a49c360ea3d366af4e6c505da898694e2e (patch)
tree4b3025a83dd03c07acde84657aae73b035a0ec21 /package/ustl/files/Common.mk
parent9fa48fca6ddd9998a520ab41044a290d707e6b2c (diff)
add uSTL package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2603 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ustl/files/Common.mk')
-rw-r--r--package/ustl/files/Common.mk74
1 files changed, 74 insertions, 0 deletions
diff --git a/package/ustl/files/Common.mk b/package/ustl/files/Common.mk
new file mode 100644
index 0000000000..dea71e1158
--- /dev/null
+++ b/package/ustl/files/Common.mk
@@ -0,0 +1,74 @@
+LIBNAME = ustl
+MAJOR = 0
+MINOR = 8
+BUILD = 0
+
+CC = $(CROSS)gcc
+CXX = $(CROSS)g++
+LD = $(CROSS)gcc
+AR = $(CROSS)ar
+RANLIB = $(CROSS)ranlib
+DOXYGEN = echo
+INSTALL = /usr/bin/install
+RM = rm -f
+LN = ln -sf
+
+prefix = /usr
+exec_prefix = /usr
+BINDIR = /usr/bin
+INCDIR = /usr/include
+LIBDIR = /usr/lib
+
+DESTDIR =
+
+INSTALLDIR = ${INSTALL} -d
+INSTALLLIB = ${INSTALL} -p -m 644
+INSTALLEXE = ${INSTALL} -p -m 755
+INSTALLDATA = ${INSTALL} -p -m 644
+
+CWARNOPTS = -Werror -Wall -W -Wpointer-arith -Wno-cast-align \
+ -Wcast-qual -Wwrite-strings -Wredundant-decls
+CXXWARNOPTS = ${CWARNOPTS} -Wconversion -Wsign-promo -Wsynth -Woverloaded-virtual
+PROCESSOR_OPTS =
+INLINE_OPTS = -finline-limit=65535
+CUSTOMINCDIR =
+CUSTOMLIBDIR =
+
+BUILD_SHARED = 1
+BUILD_STATIC = 1
+#DEBUG = 1
+#PROFILE = 1
+STANDALONE = -nodefaultlibs
+
+CFLAGS = \
+ ${CUSTOMINCDIR} ${OPTFLAGS} ${CWARNOPTS} ${STANDALONE}
+CXXFLAGS = \
+ ${CUSTOMINCDIR} ${OPTFLAGS} ${INLINE_OPTS} \
+ ${CXXWARNOPTS} ${STANDALONE} -fno-builtin
+LDFLAGS = ${CUSTOMLIBDIR} ${STANDALONE}
+OPTFLAGS = ${PROCESSOR_OPTS}
+ifdef DEBUG
+ OPTFLAGS += -O0 -g
+else
+ OPTFLAGS += -O3 -DNDEBUG=1
+endif
+ifdef PROFILE
+ OPTFLAGS += -pg
+endif
+ifdef STANDALONE
+ LIBS += -lsupc++ -lgcc_eh -lgcc -lc
+endif
+ifdef BUILD_SHARED
+ CFLAGS += -fPIC
+ CXXFLAGS += -fPIC
+endif
+SHBLDFL = -shared
+
+LIBA = lib${LIBNAME}.a
+LIBSO = lib${LIBNAME}.so
+ifdef MAJOR
+LIBSOLNK = ${LIBSO}.${MAJOR}.${MINOR}
+LIBSOBLD = ${LIBSO}.${MAJOR}.${MINOR}.${BUILD}
+endif
+TOCLEAN += ${LIBSO} ${LIBA} ${LIBSOBLD}
+