home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Examples / StdLib / makefile < prev    next >
Encoding:
Makefile  |  2000-01-31  |  6.7 KB  |  227 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.         alg7.exe      \
  63.         auto_ptr.exe  \
  64.         b_search.exe  \
  65.         binders.exe   \
  66.         bitset.exe    \
  67.         calc.exe      \
  68.         codecvt.exe   \
  69.         collate.exe   \
  70.         complex.exe   \
  71.         complx.exe    \
  72.         concord.exe   \
  73.         copyex.exe    \
  74.         count.exe     \
  75.         ctype.exe     \
  76.         deque.exe     \
  77.         distance.exe  \
  78.         eqlrange.exe  \
  79.         equal.exe     \
  80.         except.exe    \
  81.         exceptn.exe   \
  82.         filebuf.exe   \
  83.         fill.exe      \
  84.         find.exe      \
  85.         find_end.exe  \
  86.         find_f_o.exe  \
  87.         for_each.exe  \
  88.         fstream.exe   \
  89.         funct_ob.exe  \
  90.         generate.exe  \
  91.         graph.exe     \
  92.         gslc_ary.exe  \
  93.         gslice.exe    \
  94.         hasfacet.exe  \
  95.         heap_ops.exe  \
  96.         icecream.exe  \
  97.         ifstream.exe  \
  98.         includes.exe  \
  99.         indr_ary.exe  \
  100.         inr_prod.exe  \
  101.         ins_itr.exe   \
  102.         io_iter.exe   \
  103.         isalnum.exe   \
  104.         istbufit.exe  \
  105.         istngstr.exe  \
  106.         istream1.exe  \
  107.         istrstre.exe  \
  108.         lex_comp.exe  \
  109.         limits.exe    \
  110.         list.exe      \
  111.         locale.exe    \
  112.         map.exe       \
  113.         mask_ary.exe  \
  114.         max.exe       \
  115.         max_elem.exe  \
  116.         memfunc.exe   \
  117.         memfunrf.exe  \
  118.         merge.exe     \
  119.         mismatch.exe  \
  120.         moneyget.exe  \
  121.         moneyput.exe  \
  122.         monpunct.exe  \
  123.         multimap.exe  \
  124.         multiset.exe  \
  125.         mutex.exe     \
  126.         negator.exe   \
  127.         nthelem.exe   \
  128.         numget.exe    \
  129.         numpunct.exe  \
  130.         numput.exe    \
  131.         ostbufit.exe  \
  132.         ostream1.exe  \
  133.         ostream2.exe  \
  134.         p_queue.exe   \
  135.         partsort.exe  \
  136.         partsum.exe   \
  137.         permute.exe   \
  138.         pnt2fnct.exe  \
  139.         prtition.exe  \
  140.         queue.exe     \
  141.         radix.exe     \
  142.         remove.exe    \
  143.         replace.exe   \
  144.         rev_itr.exe   \
  145.         reverse.exe   \
  146.         rndshufl.exe  \
  147.         rotate.exe    \
  148.         search.exe    \
  149.         set_diff.exe  \
  150.         set_intr.exe  \
  151.         set_s_di.exe  \
  152.         set_unin.exe  \
  153.         setex.exe     \
  154.         sieve.exe     \
  155.         slc_ary.exe   \
  156.         slice.exe     \
  157.         sort.exe      \
  158.         spell.exe     \
  159.         stack.exe     \
  160.         stngstre.exe  \
  161.         stocks.exe    \
  162.         string.exe    \
  163.         strngbuf.exe  \
  164.         strstrbf.exe  \
  165.         strstrea.exe  \
  166.         swap.exe      \
  167.         tele.exe      \
  168.         timeget.exe   \
  169.         timeput.exe   \
  170.         toupper.exe   \
  171.         trnsform.exe  \
  172.         ul_bound.exe  \
  173.         unique.exe    \
  174.         usefacet.exe  \
  175.         valarray.exe  \
  176.         vector.exe    \
  177.         widwork.exe   \
  178.  
  179.  
  180.  
  181.  
  182. all : rwstdmsg.dll messages.exe allobjs $(ALLEXES)
  183. all : allobjs $(ALLEXES)
  184.  
  185. allobjs: $(ALLEXES:.exe=.obj)
  186.  
  187. clean:
  188.    -@if exist *.obj del *.obj                 >nul
  189.    -@if exist *.lib del *.lib                 >nul
  190.    -@if exist rwstdmsg.res del rwstdmsg.res   >nul
  191.    -@if exist *.exe del *.exe                 >nul
  192.    -@if exist *.dll del *.dll                 >nul
  193.    -@if exist *.tds del *.tds                 >nul
  194.    -@if exist $(PCHROOT).* del $(PCHROOT).*   >nul
  195.  
  196. runall: all $(ALLEXES)
  197. #
  198. # Warning: there are quite a few exe's here that will run.  Also, several
  199. #          of the examples require input from stdin.
  200. #
  201.     & $?
  202.  
  203. ###########################  Explicit Rules #######################
  204. rwstdmsg.obj: rwstdmsg.cpp
  205.     $(CPP) $(CPPFLAGS) -tWD$(TARGSUF) -c {$? }
  206.  
  207. rwstdmsg.res: rwstdmsg.rc
  208.     $(RC) $(RCFLAGS) $?
  209.  
  210. rwstdmsg.dll: rwstdmsg.obj rwstdmsg.res
  211.     start $(LINKER) $(LINKFLAGS) $(LINKSTARTUP) rwstdmsg.obj ,$*,,$(LINKLIBS),,rwstdmsg.res
  212.  
  213. messages.exe: messages.obj rwstdmsg.dll
  214.     $(CPP) $(CPPFLAGS) messages.obj rwstdmsg.lib
  215.  
  216.  
  217. ###########################  Implicit Rules #######################
  218. .cpp.obj:
  219.     $(CPP) $(CPPFLAGS) -c {$? }
  220.  
  221. .cpp.i:
  222.     $(CPP32) $(CPPFLAGS) -c -Sr -Sd {$? }
  223.  
  224. .obj.exe:
  225.     $(CPP) $(CPPFLAGS) $<
  226.  
  227.