home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv8.zip / VACPP / IBMCPP / samples / TOOLKIT / OS2 / SORT / SORT.MAK < prev    next >
Makefile  |  1994-11-17  |  3KB  |  71 lines

  1. #===================================================================
  2. #
  3. #   SORT.MAK - Sort Application Make file
  4. #
  5. #  Copyright (C) 1992, 1994 IBM Corporation
  6. #
  7. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  8. #      sample code created by IBM Corporation. This sample code is not
  9. #      part of any standard or IBM product and is provided to you solely
  10. #      for  the purpose of assisting you in the development of your
  11. #      applications.  The code is provided "AS IS", without
  12. #      warranty of any kind.  IBM shall not be liable for any damages
  13. #      arising out of your use of the sample code, even if they have been
  14. #      advised of the possibility of such damages.
  15. #
  16. #===================================================================
  17.  
  18. #-------------------------------------------------------------------
  19. #   IBMSAMP.INC - sets up for IBM Compiler
  20. #-------------------------------------------------------------------
  21. include ..\..\ibmsamp.inc
  22.  
  23. HEADERS = sort.h
  24.  
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30. ALL_OBJS = sort.obj
  31. ALL_IPF = sort.ipf
  32.  
  33. #-------------------------------------------------------------------
  34. #   This section lists all files to be built by the make.  The
  35. #   makefile builds the executible as well as its associated help
  36. #   file.
  37. #-------------------------------------------------------------------
  38. all: sort.exe sort.hlp
  39.  
  40. #-------------------------------------------------------------------
  41. #   This section creates the command file used by the linker.  This
  42. #   command file is recreated automatically every time you change
  43. #   the object file list, linker flags, or library list.
  44. #-------------------------------------------------------------------
  45. sort.lnk: sort.mak
  46.     echo $(ALL_OBJS)              > sort.lnk
  47.     echo sort.exe                >> sort.lnk
  48.     echo sort.map                >> sort.lnk
  49.     echo $(MTLIBS)               >> sort.lnk
  50.     echo sort.def                >> sort.lnk
  51.  
  52. #-------------------------------------------------------------------
  53. #   Dependencies
  54. #     This section lists all object files needed to be built for the
  55. #     application, along with the files it is dependent upon (e.g.
  56. #     its source and any header files).
  57. #-------------------------------------------------------------------
  58. sort.res: sort.rc $(HEADERS) sort.ico sort.dlg
  59.          copy ..\..\prodinfo.bmp
  60.          rc -r sort.rc
  61.          del prodinfo.bmp
  62.  
  63. sort.hlp: $(ALL_IPF)
  64.  
  65. sort.obj: sort.c $(HEADERS)
  66.  
  67. sort.exe: $(ALL_OBJS) sort.res sort.def sort.lnk
  68.     $(LINK) @sort.lnk
  69.     rc -p -x sort.res sort.exe
  70.  
  71.