⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcc.mak

📁 symbian 上的stl_port进过编译的。
💻 MAK
字号:
# -*- Makefile -*- Time-stamp: <07/12/11 10:20:41 ptr>ifndef NOT_USE_NOSTDLIBifeq ($(CXX_VERSION_MAJOR),2)# i.e. gcc before 3.x.x: 2.95, etc.# gcc before 3.x don't had libsupc++.a and libgcc_s.so# exceptions and operators new are in libgcc.a#  Unfortunatly gcc before 3.x has a buggy C++ language support outside stdc++, so definition of STDLIB below is commentedNOT_USE_NOSTDLIB := 1#STDLIBS := $(shell ${CXX} -print-file-name=libgcc.a) -lpthread -lc -lmendififeq ($(CXX_VERSION_MAJOR),3)# gcc before 3.3 (i.e. 3.0.x, 3.1.x, 3.2.x) has buggy libsupc++, so we should link with libstdc++ to avoid oneifeq ($(CXX_VERSION_MINOR),0)NOT_USE_NOSTDLIB := 1endififeq ($(CXX_VERSION_MINOR),1)NOT_USE_NOSTDLIB := 1endififeq ($(CXX_VERSION_MINOR),2)NOT_USE_NOSTDLIB := 1endifendifendififndef NOT_USE_NOSTDLIBifeq ($(OSNAME),linux)_USE_NOSTDLIB := 1endififeq ($(OSNAME),openbsd)_USE_NOSTDLIB := 1endififeq ($(OSNAME),freebsd)_USE_NOSTDLIB := 1endififeq ($(OSNAME),netbsd)_USE_NOSTDLIB := 1endififeq ($(OSNAME),sunos)_USE_NOSTDLIB := 1endififeq ($(OSNAME),darwin)_USE_NOSTDLIB := 1endifendififndef WITHOUT_STLPORTLDSEARCH += -L${STLPORT_LIB_DIR}release-shared:	STLPORT_LIB = -lstlportdbg-shared:	STLPORT_LIB = -lstlportgstldbg-shared:	STLPORT_LIB = -lstlportstlgifeq ($(OSNAME),cygming)LIB_VERSION = ${LIBMAJOR}.${LIBMINOR}release-shared : STLPORT_LIB = -lstlport.${LIB_VERSION}dbg-shared     : STLPORT_LIB = -lstlportg.${LIB_VERSION}stldbg-shared  : STLPORT_LIB = -lstlportstlg.${LIB_VERSION}release-static : STLPORT_LIB = -lstlport.${LIB_VERSION}dbg-static     : STLPORT_LIB = -lstlportg.${LIB_VERSION}stldbg-static  : STLPORT_LIB = -lstlportstlg.${LIB_VERSION}endififeq ($(OSNAME),windows)LIB_VERSION = ${LIBMAJOR}.${LIBMINOR}release-shared : STLPORT_LIB = -lstlport.${LIB_VERSION}dbg-shared     : STLPORT_LIB = -lstlportg.${LIB_VERSION}stldbg-shared  : STLPORT_LIB = -lstlportstlg.${LIB_VERSION}release-static : STLPORT_LIB = -lstlport.${LIB_VERSION}dbg-static     : STLPORT_LIB = -lstlportg.${LIB_VERSION}stldbg-static  : STLPORT_LIB = -lstlportstlg.${LIB_VERSION}endifendififdef _USE_NOSTDLIB# ifeq ($(CXX_VERSION_MAJOR),3)# Check whether gcc builded with --disable-sharedifeq ($(shell ${CXX} ${CXXFLAGS} -print-file-name=libgcc_eh.a),libgcc_eh.a)# gcc builded with --disable-shared, (no library libgcc_eh.a); all exception support in libgcc.a_LGCC_EH :=_LGCC_S := -lgccelse# gcc builded with --enable-shared (default)ifdef USE_STATIC_LIBGCC# if force usage of static libgcc, then exceptions support should be taken from libgcc_eh_LGCC_EH := -lgcc_eh_LGCC_S := -lgccelse# otherwise, exceptions support is in libgcc_s.so_LGCC_EH :=_LGCC_S := -lgcc_sendifendififeq ($(OSNAME),linux)START_OBJ := $(shell for o in crt{1,i,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)END_OBJ := $(shell for o in crt{end,n}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lmendififeq ($(OSNAME),openbsd)START_OBJ := $(shell for o in crt{0,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)END_OBJ := $(shell for o in crtend.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lmendififeq ($(OSNAME),freebsd)# FreeBSD < 5.3 should use -lc_r, while FreeBSD >= 5.3 use -lpthreadPTHR := $(shell if [ ${OSREL_MAJOR} -gt 5 ] ; then echo "pthread" ; else if [ ${OSREL_MAJOR} -lt 5 ] ; then echo "c_r" ; else if [ ${OSREL_MINOR} -lt 3 ] ; then echo "c_r" ; else echo "pthread"; fi ; fi ; fi)START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -l${PTHR} -lc -lmendififeq ($(OSNAME),netbsd)START_OBJ := $(shell for o in crt{1,i,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)END_OBJ := $(shell for o in crt{end,n}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lmendififeq ($(OSNAME),sunos)START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lmendififeq ($(OSNAME),darwin)START_OBJ := -lcrt1.o -lcrt2.oEND_OBJ :=STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lc -lm -lsupc++#LDFLAGS += -dynamicendifLDFLAGS += -nostdlib# endifelseifndef WITHOUT_STLPORTSTDLIBS = ${STLPORT_LIB}elseSTDLIBS =endifendif# workaround for gcc 2.95.x bug:ifeq ($(CXX_VERSION_MAJOR),2)OPT += -fPICendififeq ($(OSNAME),cygming)dbg-static:     LDFLAGS += -staticstldbg-static:  LDFLAGS += -staticrelease-static: LDFLAGS += -staticendififeq ($(OSNAME),windows)dbg-static:     LDFLAGS += -staticstldbg-static:  LDFLAGS += -staticrelease-static: LDFLAGS += -staticendif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -