# GNUmakefile to build a test executable. # Should work on DEC/OSF1, SUN, HP, IBM/AIX # # on AIX: you may get warning messages about multiply-defined symbols. # This is OK, they are only warnings. You can avoid them by # using the aix.mak as the GNUmakefile instead; that file # builds a library archive before linking the executable; # that requires another ~22 megabytes disk space. # # on HP-UX10: You will get many warnings about implicit conversion # of string literal to char (or vice versa). This is normal. # # You may need to fix the path for the following include # (may need to addpkg SoftRelTools) include SoftRelTools/arch_spec_STL.mk override CPPFLAGS += -I../.. ifneq (,$(findstring STLPORT,$(USE_ALT_STL))) override CPPFLAGS += -Dtimes=multiplies endif VPATH = source ifneq (,$(findstring SunOS,$(BFARCH))) CXX = CC else ifneq (,$(findstring AIX,$(BFARCH))) CXX = xlC else ifneq (,$(findstring HP-UX,$(BFARCH))) CXX = aCC else ifneq (,$(findstring OSF,$(BFARCH))) CXX = cxx endif endif endif endif CXXFILES = STL_accum1.cpp STL_accum2.cpp \ STL_adjdiff0.cpp STL_adjdiff1.cpp STL_adjdiff2.cpp \ STL_adjfind0.cpp STL_adjfind1.cpp STL_adjfind2.cpp \ STL_advance.cpp \ STL_alg1.cpp STL_alg2.cpp STL_alg3.cpp STL_alg4.cpp STL_alg5.cpp \ STL_bind1st1.cpp STL_bind1st2.cpp \ STL_bind2nd1.cpp STL_bind2nd2.cpp \ STL_binsert1.cpp STL_binsert2.cpp \ STL_binsrch1.cpp STL_binsrch2.cpp \ STL_bnegate1.cpp STL_bnegate2.cpp \ STL_copy1.cpp STL_copy2.cpp STL_copy3.cpp STL_copy4.cpp \ STL_copyb.cpp STL_copyb0.cpp \ STL_count0.cpp STL_count1.cpp \ STL_countif1.cpp \ STL_deque1.cpp \ STL_divides.cpp \ STL_eqlrnge0.cpp STL_eqlrnge1.cpp STL_eqlrnge2.cpp \ STL_equal0.cpp STL_equal1.cpp STL_equal2.cpp \ STL_equalto.cpp \ STL_fill1.cpp STL_filln1.cpp \ STL_find0.cpp STL_find1.cpp \ STL_findif0.cpp STL_findif1.cpp \ STL_finsert1.cpp STL_finsert2.cpp \ STL_func1.cpp STL_func2.cpp STL_func3.cpp \ STL_gener2.cpp \ STL_genern2.cpp \ STL_greateq.cpp STL_greater.cpp \ STL_incl0.cpp STL_incl1.cpp STL_incl2.cpp \ STL_inplmrg1.cpp STL_inplmrg2.cpp \ STL_inrprod0.cpp STL_inrprod1.cpp STL_inrprod2.cpp \ STL_insert1.cpp STL_insert2.cpp \ STL_istmit1.cpp \ STL_iter1.cpp STL_iter2.cpp STL_iter3.cpp STL_iter4.cpp \ STL_iterswp0.cpp \ STL_less.cpp \ STL_lesseq.cpp \ STL_lexcmp1.cpp STL_lexcmp2.cpp \ STL_list1.cpp STL_list2.cpp STL_list3.cpp STL_list4.cpp \ STL_logicand.cpp STL_logicnot.cpp \ STL_logicor.cpp \ STL_lwrbnd1.cpp STL_lwrbnd2.cpp \ STL_map1.cpp \ STL_max1.cpp STL_max2.cpp \ STL_maxelem1.cpp STL_maxelem2.cpp \ STL_merge0.cpp STL_merge2.cpp \ STL_min1.cpp STL_min2.cpp \ STL_minelem1.cpp STL_minelem2.cpp \ STL_minus.cpp \ STL_mismtch0.cpp STL_mismtch2.cpp \ STL_mkheap0.cpp STL_mkheap1.cpp \ STL_mmap1.cpp STL_mmap2.cpp \ STL_modulus.cpp \ STL_mset1.cpp STL_mset3.cpp STL_mset4.cpp \ STL_negate.cpp STL_nequal.cpp \ STL_nextprm0.cpp \ STL_nthelem0.cpp STL_nthelem1.cpp STL_nthelem2.cpp \ STL_ostmit.cpp \ STL_pair0.cpp STL_pair1.cpp STL_pair2.cpp \ STL_parsrt0.cpp STL_parsrt1.cpp STL_parsrt2.cpp \ STL_parsrtc0.cpp STL_parsrtc1.cpp STL_parsrtc2.cpp \ STL_partsrt0.cpp \ STL_partsum0.cpp \ STL_pheap1.cpp STL_pheap2.cpp \ STL_plus.cpp \ STL_pqueue1.cpp \ STL_prevprm0.cpp \ STL_ptition0.cpp STL_ptition1.cpp \ STL_ptrbinf1.cpp STL_ptrbinf2.cpp \ STL_ptrunf1.cpp STL_ptrunf2.cpp \ STL_queue1.cpp \ STL_remcopy1.cpp \ STL_remcpif1.cpp \ STL_remif1.cpp \ STL_remove1.cpp \ STL_repcpif1.cpp \ STL_replace0.cpp STL_replace1.cpp STL_replcpy1.cpp STL_replif1.cpp \ STL_revbit1.cpp STL_revbit2.cpp \ STL_revcopy1.cpp STL_reverse1.cpp STL_reviter1.cpp STL_reviter2.cpp \ STL_rndshuf0.cpp \ STL_rotate0.cpp STL_rotcopy0.cpp \ STL_search0.cpp STL_search2.cpp \ STL_set1.cpp STL_set2.cpp \ STL_setdiff0.cpp STL_setdiff2.cpp \ STL_setintr0.cpp STL_setintr2.cpp \ STL_setsymd0.cpp STL_setsymd2.cpp \ STL_setunon0.cpp STL_setunon2.cpp \ STL_sort1.cpp STL_sort2.cpp \ STL_stack1.cpp STL_stack2.cpp \ STL_stblptn0.cpp STL_stblptn1.cpp \ STL_stblsrt1.cpp STL_stblsrt2.cpp \ STL_swap1.cpp \ STL_swprnge1.cpp \ STL_times.cpp \ STL_trnsfrm1.cpp STL_trnsfrm2.cpp \ STL_unegate1.cpp STL_unegate2.cpp \ STL_uniqcpy1.cpp STL_uniqcpy2.cpp \ STL_unique1.cpp STL_unique2.cpp \ STL_uprbnd1.cpp STL_uprbnd2.cpp \ STL_vec1.cpp STL_vec2.cpp STL_vec3.cpp STL_vec4.cpp \ STL_vec5.cpp STL_vec6.cpp STL_vec7.cpp STL_vec8.cpp \ STL_test.cpp OBJS = $(CXXFILES:%.cpp=%.o) STL_test.exe : $(OBJS) $(CXX) $(CPPFLAGS) $(OBJS) $(LDFLAGS) $(LOADLIBES) -o STL_test.exe OBJS : $(CXXFILES) .SUFFIXES : .o .cpp .cpp.o : $(CXX) $(CPPFLAGS) -c $< ############################################################ include SoftRelTools/standard.mk