home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Examples / StdLib / MAKEFILE < prev    next >
Encoding:
Text File  |  1999-01-26  |  6.8 KB  |  232 lines

  1. #==========================================================================
  2. #
  3. #  makefile - makefile for examples
  4. #
  5. #==========================================================================
  6. #
  7. #  (c) Copyright 1994, 1995 Rogue Wave Software, Inc.
  8. #  ALL RIGHTS RESERVED
  9. #
  10. #  The software and information contained herein are proprietary to, and
  11. #  comprise valuable trade secrets of, Rogue Wave Software, Inc., which
  12. #  intends to preserve as trade secrets such software and information.
  13. #  This software is furnished pursuant to a written license agreement and
  14. #  may be used, copied, transmitted, and stored only in accordance with
  15. #  the terms of such license and with the inclusion of the above copyright
  16. #  notice.  This software and information or any other copies thereof may
  17. #  not be provided or otherwise made available to any other person.
  18. #
  19. #  Notwithstanding any other lease or license that may pertain to, or
  20. #  accompany the delivery of, this computer software and information, the
  21. #  rights of the Government regarding its use, reproduction and disclosure
  22. #  are as set forth in Section 52.227-19 of the FARS Computer
  23. #  Software-Restricted Rights clause.
  24. #
  25. #  Use, duplication, or disclosure by the Government is subject to
  26. #  restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
  27. #  Technical Data and Computer Software clause at DFARS 252.227-7013.
  28. #  Contractor/Manufacturer is Rogue Wave Software, Inc.,
  29. #  P.O. Box 2328, Corvallis, Oregon 97339.
  30. #
  31. #  This computer software and information is distributed with "restricted
  32. #  rights."  Use, duplication or disclosure is subject to restrictions as
  33. #  set forth in NASA FAR SUP 18-52.227-79 (April 1985) "Commercial
  34. #  Computer Software-Restricted Rights (April 1985)."  If the Clause at
  35. #  18-52.227-74 "Rights in Data General" is specified in the contract,
  36. #  then the "Alternate III" clause applies.
  37. #
  38. #==========================================================================
  39. #
  40. #  Makefile for the Rogue Wave Standard Library package, using
  41. #  Borland C++ with a Win32 target.
  42. #
  43. #  Note ONLY the Borland-supplied "make" command
  44. #  should be used.
  45. #
  46. #==========================================================================
  47.  
  48. !include makeincl.inc
  49.  
  50. ########################   Targets    #################################
  51.  
  52. ALLEXES =                                                                     \
  53.         accum.exe     \
  54.         adj_diff.exe  \
  55.         advance.exe   \
  56.         alg1.exe      \
  57.         alg2.exe      \
  58.         alg3.exe      \
  59.         alg4.exe      \
  60.         alg5.exe      \
  61.         alg6.exe      \
  62.         auto_ptr.exe  \
  63.         b_search.exe  \
  64.         binders.exe   \
  65.         bitset.exe    \
  66.         calc.exe      \
  67.         codecvt.exe   \
  68.         collate.exe   \
  69.         complex.exe   \
  70.         complx.exe    \
  71.         concord.exe   \
  72.         copyex.exe    \
  73.         count.exe     \
  74.         ctype.exe     \
  75.         deque.exe     \
  76.         distance.exe  \
  77.         eqlrange.exe  \
  78.         equal.exe     \
  79.         except.exe    \
  80.         exceptn.exe   \
  81.         filebuf.exe   \
  82.         fill.exe      \
  83.         find.exe      \
  84.         find_end.exe  \
  85.         find_f_o.exe  \
  86.         for_each.exe  \
  87.         fstream.exe   \
  88.         funct_ob.exe  \
  89.         generate.exe  \
  90.         graph.exe     \
  91.         gslc_ary.exe  \
  92.         gslice.exe    \
  93.         hasfacet.exe  \
  94.         heap_ops.exe  \
  95.         icecream.exe  \
  96.         ifstream.exe  \
  97.         includes.exe  \
  98.         indr_ary.exe  \
  99.         inr_prod.exe  \
  100.         ins_itr.exe   \
  101.         io_iter.exe   \
  102.         isalnum.exe   \
  103.         istbufit.exe  \
  104.         istngstr.exe  \
  105.         istream1.exe  \
  106.         istrstre.exe  \
  107.         lex_comp.exe  \
  108.         limits.exe    \
  109.         list.exe      \
  110.         locale.exe    \
  111.         map.exe       \
  112.         mask_ary.exe  \
  113.         max.exe       \
  114.         max_elem.exe  \
  115.         memfunc.exe   \
  116.         memfunrf.exe  \
  117.         merge.exe     \
  118.         mismatch.exe  \
  119.         moneyget.exe  \
  120.         moneyput.exe  \
  121.         monpunct.exe  \
  122.         multimap.exe  \
  123.         multiset.exe  \
  124.         mutex.exe     \
  125.         negator.exe   \
  126.         nthelem.exe   \
  127.         numget.exe    \
  128.         numpunct.exe  \
  129.         numput.exe    \
  130.         ostbufit.exe  \
  131.         ostream1.exe  \
  132.         ostream2.exe  \
  133.         p_queue.exe   \
  134.         partsort.exe  \
  135.         partsum.exe   \
  136.         permute.exe   \
  137.         pnt2fnct.exe  \
  138.         prtition.exe  \
  139.         queue.exe     \
  140.         radix.exe     \
  141.         remove.exe    \
  142.         replace.exe   \
  143.         rev_itr.exe   \
  144.         reverse.exe   \
  145.         rndshufl.exe  \
  146.         rotate.exe    \
  147.         search.exe    \
  148.         set_diff.exe  \
  149.         set_intr.exe  \
  150.         set_s_di.exe  \
  151.         set_unin.exe  \
  152.         setex.exe     \
  153.         sieve.exe     \
  154.         slc_ary.exe   \
  155.         slice.exe     \
  156.         sort.exe      \
  157.         spell.exe     \
  158.         stack.exe     \
  159.         stngstre.exe  \
  160.         stocks.exe    \
  161.         string.exe    \
  162.         strngbuf.exe  \
  163.         strstrbf.exe  \
  164.         strstrea.exe  \
  165.         swap.exe      \
  166.         tele.exe      \
  167.         timeget.exe   \
  168.         timeput.exe   \
  169.         toupper.exe   \
  170.         trnsform.exe  \
  171.         ul_bound.exe  \
  172.         unique.exe    \
  173.         usefacet.exe  \
  174.         valarray.exe  \
  175.         vector.exe    \
  176.         widwork.exe   \
  177.  
  178.  
  179. !if $d(RW_BUGS_FIXED) || $d(RW_BUGS_FIXED_42717) # AMBIUGITY Error
  180. ALLEXES = $(ALLEXES)  \
  181.         alg7.exe      \
  182.  
  183. !endif
  184.  
  185.  
  186.  
  187. all : rwstdmsg.dll messages.exe allobjs $(ALLEXES)
  188. all : allobjs $(ALLEXES)
  189.  
  190. allobjs: $(ALLEXES:.exe=.obj)
  191.  
  192. clean:
  193.    -@if exist *.obj del *.obj                 >nul
  194.    -@if exist *.lib del *.lib                 >nul
  195.    -@if exist rwstdmsg.res del rwstdmsg.res   >nul
  196.    -@if exist *.exe del *.exe                 >nul
  197.    -@if exist *.dll del *.dll                 >nul
  198.    -@if exist *.tds del *.tds                 >nul
  199.    -@if exist $(PCHROOT).* del $(PCHROOT).*   >nul
  200.  
  201. runall: all $(ALLEXES)
  202. #
  203. # Warning: there are quite a few exe's here that will run.  Also, several
  204. #          of the examples require input from stdin.
  205. #
  206.     & $?
  207.  
  208. ###########################  Explicit Rules #######################
  209. rwstdmsg.obj: rwstdmsg.cpp
  210.     $(CPP) $(CPPFLAGS) -tWD$(TARGSUF) -c {$? }
  211.  
  212. rwstdmsg.res: rwstdmsg.rc
  213.     $(RC) $(RCFLAGS) $?
  214.  
  215. rwstdmsg.dll: rwstdmsg.obj rwstdmsg.res
  216.     start $(LINKER) $(LINKFLAGS) $(LINKSTARTUP) rwstdmsg.obj ,$*,,$(LINKLIBS),,rwstdmsg.res
  217.  
  218. messages.exe: messages.obj rwstdmsg.dll
  219.     $(CPP) $(CPPFLAGS) messages.obj rwstdmsg.lib
  220.  
  221.  
  222. ###########################  Implicit Rules #######################
  223. .cpp.obj:
  224.     $(CPP) $(CPPFLAGS) -c {$? }
  225.  
  226. .cpp.i:
  227.     $(CPP32) $(CPPFLAGS) -c -Sr -Sd {$? }
  228.  
  229. .obj.exe:
  230.     $(CPP) $(CPPFLAGS) $<
  231.  
  232.