home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / startapp.zip / STARTAPP.MAK < prev    next >
Text File  |  1998-09-10  |  4KB  |  109 lines

  1. #===================================================================
  2. #
  3. #   StartApp Make file
  4. #
  5. #   (c) Copyright IBM Corp. 1991, 1998  All rights reserved.
  6. #
  7. #   These sample programs are owned by International Business Machines
  8. #   Corporation or one of its subsidiaries ("IBM") and are copyrighted and
  9. #   licensed, not sold.
  10. #
  11. #   You may copy, modify, and distribute these sample programs in any
  12. #   form without payment to IBM, for any purpose including developing,
  13. #   using, marketing or distributing programs that include or are
  14. #   derivative works of the sample programs.
  15. #
  16. #   The sample programs are provided to you on an "AS IS" basis, without
  17. #   warranty of any kind.  IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES,
  18. #   EITHER EXPRESS OR IMPLIED, INCLUDING , BUT NOT LIMITED TO, THE IMPLIED
  19. #   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  20. #   Some jurisdictions do not allow for the exclusion or limitation of
  21. #   implied warranties, so the above limitations or exclusions may not
  22. #   apply to you.  IBM shall not be liable for any damages you suffer
  23. #   as a result of using, modifying or distributing the sample programs
  24. #   or their derivatives.
  25. #
  26. #
  27. #===================================================================
  28.  
  29. include startapp.inc
  30.  
  31. HEADERS = main.h xtrn.h
  32.  
  33. LIBS    = CPPON30 + os2386
  34. #-------------------------------------------------------------------
  35. #   A list of all of the object files
  36. #-------------------------------------------------------------------
  37. ALL_OBJ1 = main.obj user.obj init.obj pnt.obj dlg.obj help.obj
  38. ALL_OBJ2 = sapp.obj
  39.  
  40. #-------------------------------------------------------------------
  41. #   A list of all of the Help text files
  42. #-------------------------------------------------------------------
  43. ALL_IPF = startapp.ipf help.ipf
  44. #-------------------------------------------------------------------
  45. #   This section lists all files to be built by the make.  The
  46. #   makefile builds the executible as well as its associated help
  47. #   file.
  48. #-------------------------------------------------------------------
  49. all: startapp.exe startapp.hlp
  50.  
  51.  
  52. #-------------------------------------------------------------------
  53. #   This section creates the command file used by the linker.  This
  54. #   command file is recreated automatically every time you change
  55. #   the object file list, linker flags, or library list.
  56. #-------------------------------------------------------------------
  57. startapp.lnk: startapp.mak
  58.     echo $(ALL_OBJ1) +           > startapp.lnk
  59.     echo $(ALL_OBJ2)            >> startapp.lnk
  60.     echo startapp.exe           >> startapp.lnk
  61.     echo startapp.map           >> startapp.lnk
  62.     echo $(LIBS)                >> startapp.lnk
  63.     echo startapp.def           >> startapp.lnk
  64.  
  65.  
  66.  
  67. #===================================================================
  68. #
  69. # Dependencies
  70. #
  71. #   This section lists all object files needed to be built for the
  72. #   application, along with the files it is dependent upon (e.g. its
  73. #   source and any header files).
  74. #
  75. #===================================================================
  76. main.res: main.rc main.ico main.h dlg.h startapp.dlg help.rc help.h
  77.     $(RC) -r main.rc main.res
  78.  
  79. main.obj: main.c $(HEADERS)
  80.  
  81. user.obj: user.c $(HEADERS)
  82.  
  83. init.obj: init.c $(HEADERS)
  84.  
  85. pnt.obj: pnt.c $(HEADERS)
  86.  
  87. dlg.obj: dlg.c $(HEADERS)
  88.  
  89. help.obj: help.c $(HEADERS) help.h
  90.  
  91. #- thrd.obj: thrd.c $(HEADERS)
  92.  
  93. sapp.obj: sapp.c $(HEADERS)
  94.  
  95. #-------------------------------------------------------------------
  96. #   This section creates the help manager file.  The IPF compiler
  97. #   creates a file called main.hlp which is renamed to startapp.hlp.
  98. #-------------------------------------------------------------------
  99. startapp.hlp: $(ALL_IPF)
  100.  
  101. #-------------------------------------------------------------------
  102. #   This section links the object modules into the finished program
  103. #   using the linker command file created earlier.  At the end, the
  104. #   resource file is bound to the application.
  105. #-------------------------------------------------------------------
  106. startapp.exe: $(ALL_OBJ1) $(ALL_OBJ2) startapp.def startapp.lnk main.res
  107.     $(LINK) @startapp.lnk
  108.     rc -p -x main.res startapp.exe
  109.