mirror of
https://github.com/ENSL/NS.git
synced 2024-11-24 05:21:16 +00:00
7b18f64309
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@16 67975925-1194-0748-b3d5-c16f83f1a3a1
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
#
|
|
# compiler
|
|
#
|
|
CC = c++
|
|
CXX = $(CC)
|
|
|
|
#
|
|
# Basename for libraries
|
|
#
|
|
LIB_BASENAME = libstlport_gcc
|
|
|
|
#
|
|
# guts for common stuff
|
|
#
|
|
#
|
|
LINK=ar crv
|
|
DYN_LINK=ar crv
|
|
|
|
OBJEXT=o
|
|
DYNEXT=so
|
|
STEXT=a
|
|
RM=rm -rf
|
|
PATH_SEP=/
|
|
MKDIR=mkdir -p
|
|
COMP=GCC7${ARCH}
|
|
INSTALL_STEP = install_unix
|
|
|
|
all: all_dynamic all_static symbolic_links
|
|
|
|
include common_macros.mak
|
|
|
|
WARNING_FLAGS= -W -Wno-sign-compare -Wno-unused -Wno-uninitialized -D_STLP_NO_TYPEINFO -D_STLP_NO_EXCEPTIONS -frtti
|
|
|
|
CXXFLAGS_COMMON = -I${STLPORT_DIR} ${WARNING_FLAGS}
|
|
|
|
CXXFLAGS_RELEASE_static = $(CXXFLAGS_COMMON) -O2
|
|
CXXFLAGS_RELEASE_dynamic = $(CXXFLAGS_COMMON) -O2 -fpic
|
|
|
|
CXXFLAGS_DEBUG_static = $(CXXFLAGS_COMMON) -O -g
|
|
CXXFLAGS_DEBUG_dynamic = $(CXXFLAGS_COMMON) -O -g -fpic
|
|
|
|
CXXFLAGS_STLDEBUG_static = $(CXXFLAGS_DEBUG_static) -D_STLP_DEBUG
|
|
CXXFLAGS_STLDEBUG_dynamic = $(CXXFLAGS_DEBUG_dynamic) -D_STLP_DEBUG -fpic
|
|
|
|
include common_percent_rules.mak
|
|
include common_rules.mak
|
|
|
|
|
|
#install: all
|
|
# cp -p $(LIB_TARGET) ${D_LIB_TARGET} ../lib
|
|
|
|
#%.s: %.cpp
|
|
# $(CXX) $(CXXFLAGS) -O4 -S -pto $< -o $@
|
|
|
|
|