forked from boostorg/regex
Updated makefiles, added sunpro makefile support
[SVN r9743]
This commit is contained in:
130
demo/regress/sunpro.mak
Normal file
130
demo/regress/sunpro.mak
Normal file
@ -0,0 +1,130 @@
|
||||
|
||||
# very basic makefile for regression tests
|
||||
# tests every library combination, static/dynamic/multimthread/singlethread/narrow/wide
|
||||
#
|
||||
# Sun Workshop 6 and greater:
|
||||
#
|
||||
CXX= CC $(INCLUDES) -I../../../../ -I./ $(CXXFLAGS) -L../../lib/sunpro $(LDFLAGS)
|
||||
|
||||
total : r rm r/regress rm/regress rs rms rs/regress rms/regress rw rmw rw/regress rmw/regress rsw rmsw rsw/regress rmsw/regress
|
||||
echo testsing narrow character versions:
|
||||
./r/regress tests.txt
|
||||
./rm/regress tests.txt
|
||||
./rs/regress tests.txt
|
||||
./rms/regress tests.txt
|
||||
echo testsing wide character versions;
|
||||
./rw/regress tests.txt
|
||||
./rmw/regress tests.txt
|
||||
./rsw/regress tests.txt
|
||||
./rmsw/regress tests.txt
|
||||
|
||||
#
|
||||
# delete the cache before each build.
|
||||
# NB this precludes multithread builds:
|
||||
#
|
||||
r/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -o r/regress tests.cpp parse.cpp regress.cpp -lboost_regex$(LIBSUFFIX) $(LIBS)
|
||||
|
||||
rm/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -mt -o rm/regress tests.cpp parse.cpp regress.cpp -lboost_regex_mt$(LIBSUFFIX) $(LIBS)
|
||||
|
||||
rs/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -o rs/regress tests.cpp parse.cpp regress.cpp -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS)
|
||||
|
||||
rms/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -mt -o rms/regress tests.cpp parse.cpp regress.cpp -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS)
|
||||
|
||||
rw/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -DTEST_UNICODE -o rw/regress tests.cpp parse.cpp regress.cpp -lboost_regex$(LIBSUFFIX) $(LIBS)
|
||||
|
||||
rmw/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -mt -DTEST_UNICODE -o rmw/regress tests.cpp parse.cpp regress.cpp -lboost_regex_mt$(LIBSUFFIX) $(LIBS)
|
||||
|
||||
rsw/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -DTEST_UNICODE -o rsw/regress tests.cpp parse.cpp regress.cpp -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS)
|
||||
|
||||
rmsw/regress : tests.cpp parse.cpp regress.cpp
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
$(CXX) -O2 -mt -DTEST_UNICODE -o rmsw/regress tests.cpp parse.cpp regress.cpp -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS)
|
||||
|
||||
r:
|
||||
mkdir -p r
|
||||
|
||||
rm:
|
||||
mkdir -p rm
|
||||
|
||||
rs:
|
||||
mkdir -p rs
|
||||
|
||||
rms:
|
||||
mkdir -p rms
|
||||
|
||||
rw:
|
||||
mkdir -p rw
|
||||
|
||||
rmw:
|
||||
mkdir -p rmw
|
||||
|
||||
rsw:
|
||||
mkdir -p rsw
|
||||
|
||||
rmsw:
|
||||
mkdir -p rmsw
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -fr SunWS_cache
|
||||
rm -fr r rm rs rms rw rmw rsw rmsw
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -5,11 +5,24 @@
|
||||
#
|
||||
# we don't test single threaded builds as stlport doesn't support these...
|
||||
#
|
||||
CFLAGS= /Oityb1 /GF /Gy -GX -GR -I..\..\..\..\
|
||||
#
|
||||
# Add additional compiler options here:
|
||||
#
|
||||
CXXFLAGS=
|
||||
#
|
||||
# Add additional include directories here:
|
||||
#
|
||||
INCLUDES=
|
||||
#
|
||||
# add additional linker flags here:
|
||||
#
|
||||
XLFLAGS=
|
||||
|
||||
LFLAGS= -link /LIBPATH:..\..\lib\vc6-stlport user32.lib
|
||||
CFLAGS= $(INCLUDES) /Oityb1 /GF /Gy -GX -GR -I..\..\..\..\ $(CXXFLAGS)
|
||||
|
||||
all :: r1m.exe r2m.exe r3m.exe r4m.exe r5m.exe r6m.exe r1l.exe r2l.exe r3l.exe r4l.exe r5l.exe r6l.exe r1md.exe r2md.exe r3md.exe r4md.exe r5md.exe r6md.exe r1lmd.exe r2lmd.exe r3lmd.exe r4lmd.exe r5lmd.exe r6lmd.exe r1mdd.exe r2mdd.exe r3mdd.exe r4mdd.exe r5mdd.exe r6mdd.exe r1lmdd.exe r2lmdd.exe r3lmdd.exe
|
||||
LFLAGS= -link /LIBPATH:..\..\lib\vc6-stlport user32.lib $(XLFLAGS)
|
||||
|
||||
all :: r1m.exe r2m.exe r3m.exe r4m.exe r5m.exe r6m.exe r1l.exe r2l.exe r3l.exe r4l.exe r5l.exe r6l.exe r1ls.exe r2ls.exe r3ls.exe r4ls.exe r5ls.exe r6ls.exe r1md.exe r2md.exe r3md.exe r4md.exe r5md.exe r6md.exe r1lmd.exe r2lmd.exe r3lmd.exe r4lmd.exe r5lmd.exe r6lmd.exe r1mdd.exe r2mdd.exe r3mdd.exe r4mdd.exe r5mdd.exe r6mdd.exe r1lmdd.exe r2lmdd.exe r3lmdd.exe
|
||||
echo testing static multi-threaded version....
|
||||
r1m tests.txt test1252.txt
|
||||
r2m tests.txt
|
||||
@ -24,6 +37,13 @@ all :: r1m.exe r2m.exe r3m.exe r4m.exe r5m.exe r6m.exe r1l.exe r2l.exe r3l.exe r
|
||||
r4l tests.txt test1252.txt
|
||||
r5l tests.txt
|
||||
r6l tests.txt
|
||||
echo testing static version with dll runtime....
|
||||
r1ls tests.txt test1252.txt
|
||||
r2ls tests.txt
|
||||
r3ls tests.txt
|
||||
r4ls tests.txt test1252.txt
|
||||
r5ls tests.txt
|
||||
r6ls tests.txt
|
||||
echo testing static multi-threaded debug version....
|
||||
r1md tests.txt test1252.txt
|
||||
r2md tests.txt
|
||||
@ -88,6 +108,24 @@ r5l.exe : tests.cpp parse.cpp regress.cpp
|
||||
r6l.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r6l.exe -DBOOST_RE_TEST_LOCALE_CPP -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r1ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r1ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_W32 tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r2ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r2ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_C tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r3ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r3ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_CPP tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r4ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r4ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_W32 -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r5ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r5ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_C -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r6ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r6ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_CPP -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
|
||||
r1md.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MTd /D_MT $(CFLAGS) -o r1md.exe -DBOOST_RE_TEST_LOCALE_W32 tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
@ -164,3 +202,5 @@ r6mdd.exe : tests.cpp parse.cpp regress.cpp
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -3,11 +3,24 @@
|
||||
#
|
||||
# Visual C++ 6
|
||||
#
|
||||
CFLAGS= /Oityb1 /GF /Gy -GX -GR -I..\..\..\..\
|
||||
#
|
||||
# Add additional compiler options here:
|
||||
#
|
||||
CXXFLAGS=
|
||||
#
|
||||
# Add additional include directories here:
|
||||
#
|
||||
INCLUDES=
|
||||
#
|
||||
# add additional linker flags here:
|
||||
#
|
||||
XLFLAGS=
|
||||
|
||||
LFLAGS= -link /LIBPATH:..\..\lib\vc6 user32.lib
|
||||
CFLAGS= $(INCLUDES) /Oityb1 /GF /Gy -GX -GR -I..\..\..\..\ $(CXXFLAGS)
|
||||
|
||||
all :: r1.exe r2.exe r3.exe r4.exe r5.exe r6.exe r1m.exe r2m.exe r3m.exe r4m.exe r5m.exe r6m.exe r1l.exe r2l.exe r3l.exe r4l.exe r5l.exe r6l.exe r1d.exe r2d.exe r3d.exe r4d.exe r5d.exe r6d.exe r1md.exe r2md.exe r3md.exe r4md.exe r5md.exe r6md.exe r1lmd.exe r2lmd.exe r3lmd.exe r4lmd.exe r5lmd.exe r6lmd.exe
|
||||
LFLAGS= -link /LIBPATH:..\..\lib\vc6 user32.lib $(XLFLAGS)
|
||||
|
||||
all :: r1.exe r2.exe r3.exe r4.exe r5.exe r6.exe r1m.exe r2m.exe r3m.exe r4m.exe r5m.exe r6m.exe r1l.exe r2l.exe r3l.exe r4l.exe r5l.exe r6l.exe r1ls.exe r2ls.exe r3ls.exe r4ls.exe r5ls.exe r6ls.exe r1d.exe r2d.exe r3d.exe r4d.exe r5d.exe r6d.exe r1md.exe r2md.exe r3md.exe r4md.exe r5md.exe r6md.exe r1lmd.exe r2lmd.exe r3lmd.exe r4lmd.exe r5lmd.exe r6lmd.exe
|
||||
echo testing static single threaded version....
|
||||
r1 tests.txt test1252.txt
|
||||
r2 tests.txt
|
||||
@ -29,6 +42,13 @@ all :: r1.exe r2.exe r3.exe r4.exe r5.exe r6.exe r1m.exe r2m.exe r3m.exe r4m.exe
|
||||
r4l tests.txt test1252.txt
|
||||
r5l tests.txt
|
||||
r6l tests.txt
|
||||
echo testing static version with DLL runtime....
|
||||
r1ls tests.txt test1252.txt
|
||||
r2ls tests.txt
|
||||
r3ls tests.txt
|
||||
r4ls tests.txt test1252.txt
|
||||
r5ls tests.txt
|
||||
r6ls tests.txt
|
||||
echo testing static single threaded debug version....
|
||||
r1d tests.txt test1252.txt
|
||||
r2d tests.txt
|
||||
@ -109,6 +129,24 @@ r6l.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r6l.exe -DBOOST_RE_TEST_LOCALE_CPP -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
|
||||
r1ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r1ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_W32 tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r2ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r2ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_C tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r3ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r3ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_CPP tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r4ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r4ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_W32 -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r5ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r5ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_C -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r6ls.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MD /D_MT /D_DLL $(CFLAGS) -o r6ls.exe -DBOOST_RE_STATIC_LIB -DBOOST_RE_TEST_LOCALE_CPP -DTEST_UNICODE tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
r1d.exe : tests.cpp parse.cpp regress.cpp
|
||||
cl /MLd $(CFLAGS) -o r1d.exe -DBOOST_RE_TEST_LOCALE_W32 tests.cpp parse.cpp regress.cpp $(LFLAGS)
|
||||
|
||||
@ -179,3 +217,5 @@ r6lmd.exe : tests.cpp parse.cpp regress.cpp
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user