Line | |
---|
1 | |
---|
2 | # very basic makefile for regression tests |
---|
3 | # tests every library combination, static/dynamic/multimthread/singlethread/narrow/wide |
---|
4 | # |
---|
5 | # Sun Workshop 6 and greater: |
---|
6 | # |
---|
7 | CXX= CC $(INCLUDES) -I../../../../ -I./ $(CXXFLAGS) -L../../../../stage/lib -L../../build/sunpro $(LDFLAGS) |
---|
8 | # |
---|
9 | # sources to compile for each test: |
---|
10 | # |
---|
11 | SOURCES=*.cpp |
---|
12 | |
---|
13 | 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 |
---|
14 | echo testsing narrow character versions: |
---|
15 | ./r/regress tests.txt |
---|
16 | ./rm/regress tests.txt |
---|
17 | ./rs/regress tests.txt |
---|
18 | ./rms/regress tests.txt |
---|
19 | echo testsing wide character versions; |
---|
20 | ./rw/regress tests.txt |
---|
21 | ./rmw/regress tests.txt |
---|
22 | ./rsw/regress tests.txt |
---|
23 | ./rmsw/regress tests.txt |
---|
24 | |
---|
25 | # |
---|
26 | # delete the cache before each build. |
---|
27 | # NB this precludes multithread builds: |
---|
28 | # |
---|
29 | r/regress : $(SOURCES) |
---|
30 | rm -f *.o |
---|
31 | rm -fr SunWS_cache |
---|
32 | $(CXX) -O2 -o r/regress $(SOURCES) -lboost_regex$(LIBSUFFIX) $(LIBS) |
---|
33 | |
---|
34 | rm/regress : $(SOURCES) |
---|
35 | rm -f *.o |
---|
36 | rm -fr SunWS_cache |
---|
37 | $(CXX) -O2 -mt -o rm/regress $(SOURCES) -lboost_regex_mt$(LIBSUFFIX) $(LIBS) |
---|
38 | |
---|
39 | rs/regress : $(SOURCES) |
---|
40 | rm -f *.o |
---|
41 | rm -fr SunWS_cache |
---|
42 | $(CXX) -O2 -o rs/regress $(SOURCES) -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS) |
---|
43 | |
---|
44 | rms/regress : $(SOURCES) |
---|
45 | rm -f *.o |
---|
46 | rm -fr SunWS_cache |
---|
47 | $(CXX) -O2 -mt -o rms/regress $(SOURCES) -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS) |
---|
48 | |
---|
49 | rw/regress : $(SOURCES) |
---|
50 | rm -f *.o |
---|
51 | rm -fr SunWS_cache |
---|
52 | $(CXX) -O2 -DTEST_UNICODE -o rw/regress $(SOURCES) -lboost_regex$(LIBSUFFIX) $(LIBS) |
---|
53 | |
---|
54 | rmw/regress : $(SOURCES) |
---|
55 | rm -f *.o |
---|
56 | rm -fr SunWS_cache |
---|
57 | $(CXX) -O2 -mt -DTEST_UNICODE -o rmw/regress $(SOURCES) -lboost_regex_mt$(LIBSUFFIX) $(LIBS) |
---|
58 | |
---|
59 | rsw/regress : $(SOURCES) |
---|
60 | rm -f *.o |
---|
61 | rm -fr SunWS_cache |
---|
62 | $(CXX) -O2 -DTEST_UNICODE -o rsw/regress $(SOURCES) -Bstatic -lboost_regex$(LIBSUFFIX) -Bdynamic $(LIBS) |
---|
63 | |
---|
64 | rmsw/regress : $(SOURCES) |
---|
65 | rm -f *.o |
---|
66 | rm -fr SunWS_cache |
---|
67 | $(CXX) -O2 -mt -DTEST_UNICODE -o rmsw/regress $(SOURCES) -Bstatic -lboost_regex_mt$(LIBSUFFIX) -Bdynamic $(LIBS) |
---|
68 | |
---|
69 | r: |
---|
70 | mkdir -p r |
---|
71 | |
---|
72 | rm: |
---|
73 | mkdir -p rm |
---|
74 | |
---|
75 | rs: |
---|
76 | mkdir -p rs |
---|
77 | |
---|
78 | rms: |
---|
79 | mkdir -p rms |
---|
80 | |
---|
81 | rw: |
---|
82 | mkdir -p rw |
---|
83 | |
---|
84 | rmw: |
---|
85 | mkdir -p rmw |
---|
86 | |
---|
87 | rsw: |
---|
88 | mkdir -p rsw |
---|
89 | |
---|
90 | rmsw: |
---|
91 | mkdir -p rmsw |
---|
92 | |
---|
93 | clean: |
---|
94 | rm -f *.o |
---|
95 | rm -fr SunWS_cache |
---|
96 | rm -fr r rm rs rms rw rmw rsw rmsw |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.