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