| 1 |
CXX = icpc -i-static |
| 2 |
CXXFLAGS = -O2 -mp -prec_div -long_double |
| 3 |
|
| 4 |
DIFF = ./sdiff |
| 5 |
PRE = ./ |
| 6 |
MAJOR = 101 |
| 7 |
MINOR = 0 |
| 8 |
|
| 9 |
%.o: %.cpp |
| 10 |
$(CXX) $(CXXFLAGS) -c $*.cpp |
| 11 |
|
| 12 |
everything: tryrand tryurng geturng nr_ex test_lg |
| 13 |
|
| 14 |
newran_lobj = newran1.o newran2.o myexcept.o simpstr.o extreal.o |
| 15 |
|
| 16 |
libnewran.a: $(newran_lobj) |
| 17 |
$(AR) -cr $@ $(newran_lobj) |
| 18 |
ranlib $@ |
| 19 |
|
| 20 |
tryrand_obj = tryrand.o format.o utility.o tryrand1.o tryrand2.o tryrand3.o tryrand4.o tryrand5.o tryrand6.o str.o test_out.o |
| 21 |
|
| 22 |
tryrand: $(tryrand_obj) libnewran.a |
| 23 |
$(CXX) -o $@ $(tryrand_obj) -L. -lnewran -lm |
| 24 |
|
| 25 |
tryurng_obj = tryurng.o format.o tryurng1.o utility.o test_out.o str.o |
| 26 |
|
| 27 |
tryurng: $(tryurng_obj) libnewran.a |
| 28 |
$(CXX) -o $@ $(tryurng_obj) -L. -lnewran -lm |
| 29 |
|
| 30 |
geturng_obj = geturng.o |
| 31 |
|
| 32 |
geturng: $(geturng_obj) libnewran.a |
| 33 |
$(CXX) -o $@ $(geturng_obj) -L. -lnewran -lm |
| 34 |
|
| 35 |
nr_ex_obj = nr_ex.o |
| 36 |
|
| 37 |
nr_ex: $(nr_ex_obj) libnewran.a |
| 38 |
$(CXX) -o $@ $(nr_ex_obj) -L. -lnewran -lm |
| 39 |
|
| 40 |
test_lg_obj = test_lg.o format.o str.o |
| 41 |
|
| 42 |
test_lg: $(test_lg_obj) libnewran.a |
| 43 |
$(CXX) -o $@ $(test_lg_obj) -L. -lnewran -lm |
| 44 |
|
| 45 |
newran1.o: newran1.cpp include.h newran.h myexcept.h extreal.h simpstr.h |
| 46 |
|
| 47 |
newran2.o: newran2.cpp include.h newran.h myexcept.h extreal.h simpstr.h |
| 48 |
|
| 49 |
myexcept.o: myexcept.cpp include.h myexcept.h |
| 50 |
|
| 51 |
simpstr.o: simpstr.cpp include.h myexcept.h simpstr.h |
| 52 |
|
| 53 |
extreal.o: extreal.cpp include.h extreal.h |
| 54 |
|
| 55 |
tryrand.o: tryrand.cpp include.h newran.h format.h utility.h tryrand.h myexcept.h extreal.h simpstr.h str.h |
| 56 |
|
| 57 |
format.o: format.cpp include.h str.h format.h myexcept.h |
| 58 |
|
| 59 |
utility.o: utility.cpp include.h myexcept.h utility.h format.h str.h |
| 60 |
|
| 61 |
tryrand1.o: tryrand1.cpp include.h newran.h format.h utility.h tryrand.h myexcept.h extreal.h simpstr.h str.h |
| 62 |
|
| 63 |
tryrand2.o: tryrand2.cpp include.h newran.h format.h utility.h tryrand.h myexcept.h extreal.h simpstr.h str.h |
| 64 |
|
| 65 |
tryrand3.o: tryrand3.cpp include.h newran.h format.h tryrand.h utility.h test_out.h myexcept.h extreal.h simpstr.h str.h |
| 66 |
|
| 67 |
tryrand4.o: tryrand4.cpp include.h newran.h str.h test_out.h format.h tryrand.h utility.h array.h myexcept.h extreal.h simpstr.h |
| 68 |
|
| 69 |
tryrand5.o: tryrand5.cpp include.h newran.h format.h tryrand.h utility.h myexcept.h extreal.h simpstr.h str.h |
| 70 |
|
| 71 |
tryrand6.o: tryrand6.cpp include.h newran.h format.h tryrand.h utility.h test_out.h myexcept.h extreal.h simpstr.h str.h |
| 72 |
|
| 73 |
str.o: str.cpp include.h str.h myexcept.h |
| 74 |
|
| 75 |
test_out.o: test_out.cpp include.h str.h utility.h test_out.h format.h myexcept.h |
| 76 |
|
| 77 |
tryurng.o: tryurng.cpp include.h newran.h format.h tryurng.h utility.h test_out.h myexcept.h extreal.h simpstr.h str.h |
| 78 |
|
| 79 |
tryurng1.o: tryurng1.cpp include.h newran.h format.h tryurng.h utility.h test_out.h array.h myexcept.h extreal.h simpstr.h str.h |
| 80 |
|
| 81 |
geturng.o: geturng.cpp include.h newran.h myexcept.h extreal.h simpstr.h |
| 82 |
|
| 83 |
nr_ex.o: nr_ex.cpp newran.h include.h myexcept.h extreal.h simpstr.h |
| 84 |
|
| 85 |
test_lg.o: test_lg.cpp include.h format.h newran.h str.h myexcept.h extreal.h simpstr.h |
| 86 |
|
| 87 |
tryrand.txx: tryrand |
| 88 |
$(PRE)tryrand > tryrand.txx |
| 89 |
$(DIFF) tryrand.txt tryrand.txx |
| 90 |
|
| 91 |
tryurng.txx: tryurng |
| 92 |
$(PRE)tryurng > tryurng.txx |
| 93 |
$(DIFF) tryurng.txt tryurng.txx |
| 94 |
|
| 95 |
geturng.txx: geturng |
| 96 |
$(PRE)geturng > geturng.txx |
| 97 |
$(DIFF) geturng.txt geturng.txx |
| 98 |
|
| 99 |
nr_ex.txx: nr_ex |
| 100 |
$(PRE)nr_ex > nr_ex.txx |
| 101 |
$(DIFF) nr_ex.txt nr_ex.txx |
| 102 |
|
| 103 |
test_lg.txx: test_lg |
| 104 |
$(PRE)test_lg > test_lg.txx |
| 105 |
$(DIFF) test_lg.txt test_lg.txx |
| 106 |
|