OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / STLport / Makefile
1 LDFLAGS += -L$(ROOTDIR)/$(LIBCDIR)/lib
2
3 #
4 # latest versions are in git
5 # git://stlport.git.sourceforge.net/gitroot/stlport/stlport
6 # look at moving to git version soon
7 #
8
9 STLPORT_CFLAGS = -D_GLIBCXX_HAVE_MBSTATE_T=1
10
11 STLPORT_PKG := STLport-5.2.1
12 $(STLPORT_PKG)_URL := http://downloads.sourceforge.net/project/stlport/STLport/STLport-5.2.1/STLport-5.2.1.tar.bz2
13 $(STLPORT_PKG)_NODEFCONF := 1
14 $(STLPORT_PKG)_CONFOPTS := \
15         --prefix= \
16         --target=$(CONFIGURE_HOST) \
17         --with-extra-cxxflags="${CXXFLAGS} ${CPPFLAGS} $(STLPORT_CFLAGS)" \
18         --with-extra-cflags="${CFLAGS} ${CPPFLAGS}" \
19         --with-extra-ldflags="${LDFLAGS}"
20 ifndef CONFIG_LIB_STLPORT_SHARED
21 $(STLPORT_PKG)_CONFOPTS += --enable-static --disable-shared
22 else
23 $(STLPORT_PKG)_CONFOPTS += --use-static-gcc
24 endif
25 MAKEVARS = ARCH=a
26 AUTOMAKE_y += $(STLPORT_PKG)
27 AUTOMAKE_ROMFS = stlport_romfs
28
29 include $(ROOTDIR)/tools/automake.inc
30
31 stlport_romfs:
32         $(ROMFSINST) -e CONFIG_LIB_STLPORT_SHARED \
33                 build/$(STLPORT_PKG)-install/lib/libstlport.so.5.2.1 /lib/libstlport.so.5.2.1
34         $(ROMFSINST) -e CONFIG_LIB_STLPORT_SHARED -s \
35                 libstlport.so.5.2.1 /lib/libstlport.so.5.2; \