333 lines
8.5 KiB
Makefile
333 lines
8.5 KiB
Makefile
|
!include "{stl}:src:SCpp.mak"
|
|||
|
|
|||
|
MAKEFILE = SCpp.mak
|
|||
|
|
|||
|
|
|||
|
Needed_SysLibs = <20>
|
|||
|
# "{CLibraries}IOStreams.o" <20>
|
|||
|
"{STL}:lib:STLportLib{config_}.o" <20>
|
|||
|
"{Libraries}Stubs.o" <20>
|
|||
|
"{Libraries}MathLib.o" <20>
|
|||
|
"{CLibraries}CPlusLib.o" <20>
|
|||
|
"{CLibraries}StdCLib.o" <20>
|
|||
|
"{Libraries}MacRuntime.o" <20>
|
|||
|
"{Libraries}IntEnv.o" <20>
|
|||
|
#"{Libraries}ToolLibs.o" <20>
|
|||
|
"{Libraries}Interface.o" <20>
|
|||
|
# end
|
|||
|
|
|||
|
|
|||
|
##################################################################################
|
|||
|
# test:regression: build rule
|
|||
|
##################################################################################
|
|||
|
Regression_Objects_68K = <20>
|
|||
|
"{ObjDir}accum1.cpp.o" <20>
|
|||
|
"{ObjDir}accum2.cpp.o" <20>
|
|||
|
"{ObjDir}adjdiff0.cpp.o" <20>
|
|||
|
"{ObjDir}adjdiff1.cpp.o" <20>
|
|||
|
"{ObjDir}adjdiff2.cpp.o" <20>
|
|||
|
"{ObjDir}adjfind0.cpp.o" <20>
|
|||
|
"{ObjDir}adjfind1.cpp.o" <20>
|
|||
|
"{ObjDir}adjfind2.cpp.o" <20>
|
|||
|
"{ObjDir}advance.cpp.o" <20>
|
|||
|
"{ObjDir}alg1.cpp.o" <20>
|
|||
|
"{ObjDir}alg2.cpp.o" <20>
|
|||
|
"{ObjDir}alg3.cpp.o" <20>
|
|||
|
"{ObjDir}alg4.cpp.o" <20>
|
|||
|
"{ObjDir}alg5.cpp.o" <20>
|
|||
|
"{ObjDir}bcompos1.cpp.o" <20>
|
|||
|
"{ObjDir}bcompos2.cpp.o" <20>
|
|||
|
"{ObjDir}bind1st1.cpp.o" <20>
|
|||
|
"{ObjDir}bind1st2.cpp.o" <20>
|
|||
|
"{ObjDir}bind2nd1.cpp.o" <20>
|
|||
|
"{ObjDir}bind2nd2.cpp.o" <20>
|
|||
|
"{ObjDir}binsert1.cpp.o" <20>
|
|||
|
"{ObjDir}binsert2.cpp.o" <20>
|
|||
|
"{ObjDir}binsrch1.cpp.o" <20>
|
|||
|
"{ObjDir}binsrch2.cpp.o" <20>
|
|||
|
"{ObjDir}bitset1.cpp.o" <20>
|
|||
|
"{ObjDir}bnegate1.cpp.o" <20>
|
|||
|
"{ObjDir}bnegate2.cpp.o" <20>
|
|||
|
"{ObjDir}bvec1.cpp.o" <20>
|
|||
|
"{ObjDir}copy1.cpp.o" <20>
|
|||
|
"{ObjDir}copy2.cpp.o" <20>
|
|||
|
"{ObjDir}copy3.cpp.o" <20>
|
|||
|
"{ObjDir}copy4.cpp.o" <20>
|
|||
|
"{ObjDir}copyb.cpp.o" <20>
|
|||
|
"{ObjDir}copyb0.cpp.o" <20>
|
|||
|
"{ObjDir}count0.cpp.o" <20>
|
|||
|
"{ObjDir}count1.cpp.o" <20>
|
|||
|
"{ObjDir}countif1.cpp.o" <20>
|
|||
|
"{ObjDir}deque1.cpp.o" <20>
|
|||
|
"{ObjDir}divides.cpp.o" <20>
|
|||
|
"{ObjDir}eqlrnge0.cpp.o" <20>
|
|||
|
"{ObjDir}eqlrnge1.cpp.o" <20>
|
|||
|
"{ObjDir}eqlrnge2.cpp.o" <20>
|
|||
|
"{ObjDir}equal0.cpp.o" <20>
|
|||
|
"{ObjDir}equal1.cpp.o" <20>
|
|||
|
"{ObjDir}equal2.cpp.o" <20>
|
|||
|
"{ObjDir}equalto.cpp.o" <20>
|
|||
|
"{ObjDir}fill1.cpp.o" <20>
|
|||
|
"{ObjDir}filln1.cpp.o" <20>
|
|||
|
"{ObjDir}find0.cpp.o" <20>
|
|||
|
"{ObjDir}find1.cpp.o" <20>
|
|||
|
"{ObjDir}findif0.cpp.o" <20>
|
|||
|
"{ObjDir}findif1.cpp.o" <20>
|
|||
|
"{ObjDir}finsert1.cpp.o" <20>
|
|||
|
"{ObjDir}finsert2.cpp.o" <20>
|
|||
|
"{ObjDir}foreach0.cpp.o" <20>
|
|||
|
"{ObjDir}foreach1.cpp.o" <20>
|
|||
|
"{ObjDir}func1.cpp.o" <20>
|
|||
|
"{ObjDir}func2.cpp.o" <20>
|
|||
|
"{ObjDir}func3.cpp.o" <20>
|
|||
|
"{ObjDir}gener1.cpp.o" <20>
|
|||
|
"{ObjDir}gener2.cpp.o" <20>
|
|||
|
"{ObjDir}genern1.cpp.o" <20>
|
|||
|
"{ObjDir}genern2.cpp.o" <20>
|
|||
|
"{ObjDir}greateq.cpp.o" <20>
|
|||
|
"{ObjDir}greater.cpp.o" <20>
|
|||
|
"{ObjDir}hmap1.cpp.o" <20>
|
|||
|
"{ObjDir}hmmap1.cpp.o" <20>
|
|||
|
"{ObjDir}hmset1.cpp.o" <20>
|
|||
|
"{ObjDir}hset2.cpp.o" <20>
|
|||
|
"{ObjDir}incl0.cpp.o" <20>
|
|||
|
"{ObjDir}incl1.cpp.o" <20>
|
|||
|
"{ObjDir}incl2.cpp.o" <20>
|
|||
|
"{ObjDir}inplmrg1.cpp.o" <20>
|
|||
|
"{ObjDir}inplmrg2.cpp.o" <20>
|
|||
|
"{ObjDir}inrprod0.cpp.o" <20>
|
|||
|
"{ObjDir}inrprod1.cpp.o" <20>
|
|||
|
"{ObjDir}inrprod2.cpp.o" <20>
|
|||
|
"{ObjDir}insert1.cpp.o" <20>
|
|||
|
"{ObjDir}insert2.cpp.o" <20>
|
|||
|
"{ObjDir}iota1.cpp.o" <20>
|
|||
|
"{ObjDir}istmit1.cpp.o" <20>
|
|||
|
"{ObjDir}iter1.cpp.o" <20>
|
|||
|
"{ObjDir}iter2.cpp.o" <20>
|
|||
|
"{ObjDir}iter3.cpp.o" <20>
|
|||
|
"{ObjDir}iter4.cpp.o" <20>
|
|||
|
"{ObjDir}iterswp0.cpp.o" <20>
|
|||
|
"{ObjDir}iterswp1.cpp.o" <20>
|
|||
|
"{ObjDir}less.cpp.o" <20>
|
|||
|
"{ObjDir}lesseq.cpp.o" <20>
|
|||
|
"{ObjDir}lexcmp1.cpp.o" <20>
|
|||
|
"{ObjDir}lexcmp2.cpp.o" <20>
|
|||
|
"{ObjDir}list1.cpp.o" <20>
|
|||
|
"{ObjDir}list2.cpp.o" <20>
|
|||
|
"{ObjDir}list3.cpp.o" <20>
|
|||
|
"{ObjDir}list4.cpp.o" <20>
|
|||
|
"{ObjDir}logicand.cpp.o" <20>
|
|||
|
"{ObjDir}logicnot.cpp.o" <20>
|
|||
|
"{ObjDir}logicor.cpp.o" <20>
|
|||
|
"{ObjDir}lwrbnd1.cpp.o" <20>
|
|||
|
"{ObjDir}lwrbnd2.cpp.o" <20>
|
|||
|
"{ObjDir}map1.cpp.o" <20>
|
|||
|
"{ObjDir}max1.cpp.o" <20>
|
|||
|
"{ObjDir}max2.cpp.o" <20>
|
|||
|
"{ObjDir}maxelem1.cpp.o" <20>
|
|||
|
"{ObjDir}maxelem2.cpp.o" <20>
|
|||
|
"{ObjDir}merge0.cpp.o" <20>
|
|||
|
"{ObjDir}merge1.cpp.o" <20>
|
|||
|
"{ObjDir}merge2.cpp.o" <20>
|
|||
|
"{ObjDir}min1.cpp.o" <20>
|
|||
|
"{ObjDir}min2.cpp.o" <20>
|
|||
|
"{ObjDir}minelem1.cpp.o" <20>
|
|||
|
"{ObjDir}minelem2.cpp.o" <20>
|
|||
|
"{ObjDir}minus.cpp.o" <20>
|
|||
|
"{ObjDir}mismtch0.cpp.o" <20>
|
|||
|
"{ObjDir}mismtch1.cpp.o" <20>
|
|||
|
"{ObjDir}mismtch2.cpp.o" <20>
|
|||
|
"{ObjDir}mkheap0.cpp.o" <20>
|
|||
|
"{ObjDir}mkheap1.cpp.o" <20>
|
|||
|
"{ObjDir}mmap1.cpp.o" <20>
|
|||
|
"{ObjDir}mmap2.cpp.o" <20>
|
|||
|
"{ObjDir}modulus.cpp.o" <20>
|
|||
|
"{ObjDir}mset1.cpp.o" <20>
|
|||
|
"{ObjDir}mset3.cpp.o" <20>
|
|||
|
"{ObjDir}mset4.cpp.o" <20>
|
|||
|
"{ObjDir}mset5.cpp.o" <20>
|
|||
|
"{ObjDir}negate.cpp.o" <20>
|
|||
|
"{ObjDir}nequal.cpp.o" <20>
|
|||
|
"{ObjDir}nextprm0.cpp.o" <20>
|
|||
|
"{ObjDir}nextprm1.cpp.o" <20>
|
|||
|
"{ObjDir}nextprm2.cpp.o" <20>
|
|||
|
"{ObjDir}nthelem0.cpp.o" <20>
|
|||
|
"{ObjDir}nthelem1.cpp.o" <20>
|
|||
|
"{ObjDir}nthelem2.cpp.o" <20>
|
|||
|
"{ObjDir}ostmit.cpp.o" <20>
|
|||
|
"{ObjDir}pair0.cpp.o" <20>
|
|||
|
"{ObjDir}pair1.cpp.o" <20>
|
|||
|
"{ObjDir}pair2.cpp.o" <20>
|
|||
|
"{ObjDir}parsrt0.cpp.o" <20>
|
|||
|
"{ObjDir}parsrt1.cpp.o" <20>
|
|||
|
"{ObjDir}parsrt2.cpp.o" <20>
|
|||
|
"{ObjDir}parsrtc0.cpp.o" <20>
|
|||
|
"{ObjDir}parsrtc1.cpp.o" <20>
|
|||
|
"{ObjDir}parsrtc2.cpp.o" <20>
|
|||
|
"{ObjDir}partsrt0.cpp.o" <20>
|
|||
|
"{ObjDir}partsum0.cpp.o" <20>
|
|||
|
"{ObjDir}partsum1.cpp.o" <20>
|
|||
|
"{ObjDir}partsum2.cpp.o" <20>
|
|||
|
"{ObjDir}pheap1.cpp.o" <20>
|
|||
|
"{ObjDir}pheap2.cpp.o" <20>
|
|||
|
"{ObjDir}plus.cpp.o" <20>
|
|||
|
"{ObjDir}pqueue1.cpp.o" <20>
|
|||
|
"{ObjDir}prevprm0.cpp.o" <20>
|
|||
|
"{ObjDir}prevprm1.cpp.o" <20>
|
|||
|
"{ObjDir}prevprm2.cpp.o" <20>
|
|||
|
"{ObjDir}ptition0.cpp.o" <20>
|
|||
|
"{ObjDir}ptition1.cpp.o" <20>
|
|||
|
"{ObjDir}ptrbinf1.cpp.o" <20>
|
|||
|
"{ObjDir}ptrbinf2.cpp.o" <20>
|
|||
|
"{ObjDir}ptrunf1.cpp.o" <20>
|
|||
|
"{ObjDir}ptrunf2.cpp.o" <20>
|
|||
|
"{ObjDir}queue1.cpp.o" <20>
|
|||
|
"{ObjDir}rawiter.cpp.o" <20>
|
|||
|
"{ObjDir}remcopy1.cpp.o" <20>
|
|||
|
"{ObjDir}remcpif1.cpp.o" <20>
|
|||
|
"{ObjDir}remif1.cpp.o" <20>
|
|||
|
"{ObjDir}remove1.cpp.o" <20>
|
|||
|
"{ObjDir}repcpif1.cpp.o" <20>
|
|||
|
"{ObjDir}replace0.cpp.o" <20>
|
|||
|
"{ObjDir}replace1.cpp.o" <20>
|
|||
|
"{ObjDir}replcpy1.cpp.o" <20>
|
|||
|
"{ObjDir}replif1.cpp.o" <20>
|
|||
|
"{ObjDir}revbit1.cpp.o" <20>
|
|||
|
"{ObjDir}revbit2.cpp.o" <20>
|
|||
|
"{ObjDir}revcopy1.cpp.o" <20>
|
|||
|
"{ObjDir}reverse1.cpp.o" <20>
|
|||
|
"{ObjDir}reviter1.cpp.o" <20>
|
|||
|
"{ObjDir}reviter2.cpp.o" <20>
|
|||
|
"{ObjDir}rndshuf0.cpp.o" <20>
|
|||
|
"{ObjDir}rndshuf1.cpp.o" <20>
|
|||
|
"{ObjDir}rndshuf2.cpp.o" <20>
|
|||
|
"{ObjDir}rotate0.cpp.o" <20>
|
|||
|
"{ObjDir}rotate1.cpp.o" <20>
|
|||
|
"{ObjDir}rotcopy0.cpp.o" <20>
|
|||
|
"{ObjDir}rotcopy1.cpp.o" <20>
|
|||
|
"{ObjDir}search0.cpp.o" <20>
|
|||
|
"{ObjDir}search1.cpp.o" <20>
|
|||
|
"{ObjDir}search2.cpp.o" <20>
|
|||
|
"{ObjDir}set1.cpp.o" <20>
|
|||
|
"{ObjDir}set2.cpp.o" <20>
|
|||
|
"{ObjDir}setdiff0.cpp.o" <20>
|
|||
|
"{ObjDir}setdiff1.cpp.o" <20>
|
|||
|
"{ObjDir}setdiff2.cpp.o" <20>
|
|||
|
"{ObjDir}setintr0.cpp.o" <20>
|
|||
|
"{ObjDir}setintr1.cpp.o" <20>
|
|||
|
"{ObjDir}setintr2.cpp.o" <20>
|
|||
|
"{ObjDir}setsymd0.cpp.o" <20>
|
|||
|
"{ObjDir}setsymd1.cpp.o" <20>
|
|||
|
"{ObjDir}setsymd2.cpp.o" <20>
|
|||
|
"{ObjDir}setunon0.cpp.o" <20>
|
|||
|
"{ObjDir}setunon1.cpp.o" <20>
|
|||
|
"{ObjDir}setunon2.cpp.o" <20>
|
|||
|
# "{ObjDir}single.cpp.o" <20>
|
|||
|
"{ObjDir}slist1.cpp.o" <20>
|
|||
|
"{ObjDir}sort1.cpp.o" <20>
|
|||
|
"{ObjDir}sort2.cpp.o" <20>
|
|||
|
"{ObjDir}stack1.cpp.o" <20>
|
|||
|
"{ObjDir}stack2.cpp.o" <20>
|
|||
|
# "{ObjDir}stat.cpp.o" <20>
|
|||
|
"{ObjDir}stblptn0.cpp.o" <20>
|
|||
|
"{ObjDir}stblptn1.cpp.o" <20>
|
|||
|
"{ObjDir}stblsrt1.cpp.o" <20>
|
|||
|
"{ObjDir}stblsrt2.cpp.o" <20>
|
|||
|
# "{ObjDir}stl_single.cpp.o" <20>
|
|||
|
"{ObjDir}stl_test.cpp.o" <20>
|
|||
|
"{ObjDir}string1.cpp.o" <20>
|
|||
|
"{ObjDir}swap1.cpp.o" <20>
|
|||
|
"{ObjDir}swprnge1.cpp.o" <20>
|
|||
|
"{ObjDir}times.cpp.o" <20>
|
|||
|
"{ObjDir}trnsfrm1.cpp.o" <20>
|
|||
|
"{ObjDir}trnsfrm2.cpp.o" <20>
|
|||
|
"{ObjDir}ucompos1.cpp.o" <20>
|
|||
|
"{ObjDir}ucompos2.cpp.o" <20>
|
|||
|
"{ObjDir}unegate1.cpp.o" <20>
|
|||
|
"{ObjDir}unegate2.cpp.o" <20>
|
|||
|
"{ObjDir}uniqcpy1.cpp.o" <20>
|
|||
|
"{ObjDir}uniqcpy2.cpp.o" <20>
|
|||
|
"{ObjDir}unique1.cpp.o" <20>
|
|||
|
"{ObjDir}unique2.cpp.o" <20>
|
|||
|
"{ObjDir}uprbnd1.cpp.o" <20>
|
|||
|
"{ObjDir}uprbnd2.cpp.o" <20>
|
|||
|
"{ObjDir}vec1.cpp.o" <20>
|
|||
|
"{ObjDir}vec2.cpp.o" <20>
|
|||
|
"{ObjDir}vec3.cpp.o" <20>
|
|||
|
"{ObjDir}vec4.cpp.o" <20>
|
|||
|
"{ObjDir}vec5.cpp.o" <20>
|
|||
|
"{ObjDir}vec6.cpp.o" <20>
|
|||
|
"{ObjDir}vec7.cpp.o" <20>
|
|||
|
"{ObjDir}vec8.cpp.o" <20>
|
|||
|
# end
|
|||
|
|
|||
|
|
|||
|
Regression_test <EFBFBD><EFBFBD> setup
|
|||
|
Regression_test <EFBFBD><EFBFBD> "{ObjDir}"Regression_test.68K
|
|||
|
echo "<22>n'{ObjDir}Regression_test.68K' < '{stl}:test:regression:stdin' # execute it"
|
|||
|
|
|||
|
"{ObjDir}"Regression_test.68K <EFBFBD><EFBFBD> {<EFBFBD>MondoBuild<EFBFBD>} {Regression_Objects_68K} {Needed_SysLibs}
|
|||
|
###########
|
|||
|
if "{compile_status}"
|
|||
|
echo "### LINK NOT PERFORMED DUE TO COMPILE ERROR"
|
|||
|
exit "{compile_status}"
|
|||
|
end
|
|||
|
echo <20>n<EFBFBD>nLinking: "{Targ}"
|
|||
|
ILink <20>
|
|||
|
#Link <20>
|
|||
|
-t 'MPST' <20>
|
|||
|
-o {Targ} <20>
|
|||
|
{Regression_Objects_68K} <20>
|
|||
|
{Link_options} <20>
|
|||
|
{Needed_SysLibs} <20>
|
|||
|
# end
|
|||
|
|
|||
|
|
|||
|
##################################################################################
|
|||
|
# test:eh: build rule
|
|||
|
##################################################################################
|
|||
|
eh_Objects_68K = <20>
|
|||
|
"{ObjDir}main.cpp.o" <20>
|
|||
|
"{ObjDir}nc_alloc.cpp.o" <20>
|
|||
|
"{ObjDir}random_number.cpp.o" <20>
|
|||
|
"{ObjDir}test_algo.cpp.o" <20>
|
|||
|
"{ObjDir}test_algobase.cpp.o" <20>
|
|||
|
"{ObjDir}test_bit_vector.cpp.o" <20>
|
|||
|
"{ObjDir}test_bitset.cpp.o" <20>
|
|||
|
"{ObjDir}test_deque.cpp.o" <20>
|
|||
|
"{ObjDir}test_hash_map.cpp.o" <20>
|
|||
|
"{ObjDir}test_hash_set.cpp.o" <20>
|
|||
|
"{ObjDir}test_list.cpp.o" <20>
|
|||
|
"{ObjDir}test_map.cpp.o" <20>
|
|||
|
"{ObjDir}test_rope.cpp.o" <20>
|
|||
|
"{ObjDir}test_set.cpp.o" <20>
|
|||
|
"{ObjDir}test_slist.cpp.o" <20>
|
|||
|
"{ObjDir}test_string.cpp.o" <20>
|
|||
|
"{ObjDir}test_valarray.cpp.o" <20>
|
|||
|
"{ObjDir}test_vector.cpp.o" <20>
|
|||
|
"{ObjDir}TestClass.cpp.o" <20>
|
|||
|
#end
|
|||
|
|
|||
|
EH_test <EFBFBD><EFBFBD> setup
|
|||
|
EH_test <EFBFBD><EFBFBD> "{ObjDir}"EH_test.68K
|
|||
|
echo "<22>n'{ObjDir}EH_test.68K' # execute it"
|
|||
|
|
|||
|
|
|||
|
"{ObjDir}"EH_test.68K <20><> "{stl}:test:regression:{<7B>MondoBuild<EFBFBD>}" {eh_Objects_68K} {Needed_SysLibs}
|
|||
|
###########
|
|||
|
if "{compile_status}"
|
|||
|
echo "### LINK NOT PERFORMED DUE TO COMPILE TIME ERROR"
|
|||
|
exit "{compile_status}"
|
|||
|
end
|
|||
|
echo <20>n<EFBFBD>nLinking: "{Targ}"
|
|||
|
ILink <20>
|
|||
|
#Link <20>
|
|||
|
-t 'MPST' <20>
|
|||
|
-o {Targ} <20>
|
|||
|
{eh_Objects_68K} <20>
|
|||
|
{Link_options} <20>
|
|||
|
{Needed_SysLibs} <20>
|
|||
|
# end
|
|||
|
|
|||
|
|