| 1 | # copyright John Maddock 2003 |
|---|
| 2 | # Distributed under the Boost Software License, Version 1.0. |
|---|
| 3 | # (See accompanying file LICENSE_1_0.txt or copy at |
|---|
| 4 | # http://www.boost.org/LICENSE_1_0.txt. |
|---|
| 5 | |
|---|
| 6 | # very basic makefile for regression tests |
|---|
| 7 | # tests every library combination, static/dynamic/multimthread/singlethread/narrow/wide |
|---|
| 8 | # |
|---|
| 9 | # Sun Workshop 6 and greater: |
|---|
| 10 | # |
|---|
| 11 | CXX= CC $(INCLUDES) -I../../../../ -I./ $(CXXFLAGS) -L../../../../stage/lib -L../../build/sunpro $(LDFLAGS) |
|---|
| 12 | # |
|---|
| 13 | # sources to compile for each test: |
|---|
| 14 | # |
|---|
| 15 | SOURCES=*.cpp |
|---|
| 16 | |
|---|
| 17 | 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 |
|---|
| 18 | echo testsing narrow character versions: |
|---|
| 19 | ./r/regress tests.txt |
|---|
| 20 | ./rm/regress tests.txt |
|---|
| 21 | ./rs/regress tests.txt |
|---|
| 22 | ./rms/regress tests.txt |
|---|
| 23 | echo testsing wide character versions; |
|---|
| 24 | ./rw/regress tests.txt |
|---|
| 25 | ./rmw/regress tests.txt |
|---|
| 26 | ./rsw/regress tests.txt |
|---|
| 27 | ./rmsw/regress tests.txt |
|---|
| 28 | |
|---|
| 29 | # |
|---|
| 30 | # delete the cache before each build. |
|---|
| 31 | # NB this precludes multithread builds: |
|---|
| 32 | # |
|---|
| 33 | r/regress : $(SOURCES) |
|---|
| 34 | rm -f *.o |
|---|
| 35 | rm -fr SunWS_cache |
|---|
| 36 | $(CXX) -O2 -o r/regress $(SOURCES) -lboost_regex$(LIBSUFFIX) $(LIBS) |
|---|
| 37 | |
|---|
| 38 | rm/regress : $(SOURCES) |
|---|
| 39 | rm -f *.o |
|---|
| 40 | rm -fr SunWS_cache |
|---|
| 41 | $(CXX) -O2 -mt -o rm/regress $(SOURCES) -lboost_regex_mt$(LIBSUFFIX) $(LIBS) |
|---|
| 42 | |
|---|
| 43 | rs/regress : $(SOURCES) |
|---|
| 44 | rm -f *.o |
|---|
| 45 | rm -fr SunWS_cache |
|---|
| 46 | $(CXX) -O2 -o rs/regress $(SOURCES) -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS) |
|---|
| 47 | |
|---|
| 48 | rms/regress : $(SOURCES) |
|---|
| 49 | rm -f *.o |
|---|
| 50 | rm -fr SunWS_cache |
|---|
| 51 | $(CXX) -O2 -mt -o rms/regress $(SOURCES) -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS) |
|---|
| 52 | |
|---|
| 53 | rw/regress : $(SOURCES) |
|---|
| 54 | rm -f *.o |
|---|
| 55 | rm -fr SunWS_cache |
|---|
| 56 | $(CXX) -O2 -DTEST_UNICODE -o rw/regress $(SOURCES) -lboost_regex$(LIBSUFFIX) $(LIBS) |
|---|
| 57 | |
|---|
| 58 | rmw/regress : $(SOURCES) |
|---|
| 59 | rm -f *.o |
|---|
| 60 | rm -fr SunWS_cache |
|---|
| 61 | $(CXX) -O2 -mt -DTEST_UNICODE -o rmw/regress $(SOURCES) -lboost_regex_mt$(LIBSUFFIX) $(LIBS) |
|---|
| 62 | |
|---|
| 63 | rsw/regress : $(SOURCES) |
|---|
| 64 | rm -f *.o |
|---|
| 65 | rm -fr SunWS_cache |
|---|
| 66 | $(CXX) -O2 -DTEST_UNICODE -o rsw/regress $(SOURCES) -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS) |
|---|
| 67 | |
|---|
| 68 | rmsw/regress : $(SOURCES) |
|---|
| 69 | rm -f *.o |
|---|
| 70 | rm -fr SunWS_cache |
|---|
| 71 | $(CXX) -O2 -mt -DTEST_UNICODE -o rmsw/regress $(SOURCES) -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS) |
|---|
| 72 | |
|---|
| 73 | r: |
|---|
| 74 | mkdir -p r |
|---|
| 75 | |
|---|
| 76 | rm: |
|---|
| 77 | mkdir -p rm |
|---|
| 78 | |
|---|
| 79 | rs: |
|---|
| 80 | mkdir -p rs |
|---|
| 81 | |
|---|
| 82 | rms: |
|---|
| 83 | mkdir -p rms |
|---|
| 84 | |
|---|
| 85 | rw: |
|---|
| 86 | mkdir -p rw |
|---|
| 87 | |
|---|
| 88 | rmw: |
|---|
| 89 | mkdir -p rmw |
|---|
| 90 | |
|---|
| 91 | rsw: |
|---|
| 92 | mkdir -p rsw |
|---|
| 93 | |
|---|
| 94 | rmsw: |
|---|
| 95 | mkdir -p rmsw |
|---|
| 96 | |
|---|
| 97 | clean: |
|---|
| 98 | rm -f *.o |
|---|
| 99 | rm -fr SunWS_cache |
|---|
| 100 | rm -fr r rm rs rms rw rmw rsw rmsw |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | |
|---|
| 122 | |
|---|
| 123 | |
|---|
| 124 | |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | |
|---|
| 128 | |
|---|
| 129 | |
|---|
| 130 | |
|---|
| 131 | |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | |
|---|
| 141 | |
|---|
| 142 | |
|---|
| 143 | |
|---|
| 144 | |
|---|
| 145 | |
|---|