home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / prtsampl.zip / PRTSAMP.MAK < prev    next >
Makefile  |  1998-04-20  |  3KB  |  100 lines

  1. #===================================================================
  2. #
  3. #   PRTSAMP.MAK - Printing Application Make file
  4. #   Copyright     IBM Corporation 1996
  5. #
  6. #===================================================================
  7. #===================================================================
  8. # Include the file ibmsamp.inc which defines the various macros
  9. # depending on the target specified.
  10. #
  11. # The following macros are defined in ibmsamp.inc:
  12. #
  13. #       OBJDIR   - Directory where object files are created
  14. #       EXEDIR   - Directory where executable files are created
  15. #       RC       - Resource compiler
  16. #       RCFLAGS  - Resource compiler flags
  17. #       LINK     - Linker
  18. #       LFLAGS   - Linker flags
  19. #       MTLIBS   - Multithreaded versions of the runtime libraries
  20. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24. HEADERS = pmassert.h prtsamp.h prtsdlg.h
  25.  
  26. ALL_IPF = prtsamp.ipf
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. OBJS = $(OBJDIR)\prtsamp.obj  $(OBJDIR)\prtcreat.obj $(OBJDIR)\prtmenu.obj \
  34.        $(OBJDIR)\prtprint.obj $(OBJDIR)\prtobj.obj   $(OBJDIR)\prtprof.obj \
  35.        $(OBJDIR)\prtpage.obj
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section lists all files to be built by  make.  The
  39. #   makefile builds the executable as well as its associated help
  40. #   file.
  41. #-------------------------------------------------------------------
  42. all: $(EXEDIR)\prtsamp.exe $(EXEDIR)\prtsamp.hlp
  43.  
  44. #-------------------------------------------------------------------
  45. #   Dependencies
  46. #     This section lists all object files needed to be built for the
  47. #     application, along with the files it is dependent upon (e.g.
  48. #     its source and any header files).
  49. #-------------------------------------------------------------------
  50.  
  51. $(OBJDIR)\prtsamp.res: $(HEADERS) prtsamp.rc prtsamp.ico prtsamp.dlg prodinfo.bmp
  52.                 $(RC) $(RCFLAGS) -D INCL_WINSTDDLGS $(@B).rc $@
  53.                 @del prodinfo.bmp
  54.  
  55. prodinfo.bmp :
  56.            copy ..\..\prodinfo.bmp $@
  57.  
  58. $(EXEDIR)\prtsamp.hlp: $(ALL_IPF)
  59.  
  60. $(OBJDIR)\prtcreat.obj: prtcreat.c  $(HEADERS)
  61.  
  62. $(OBJDIR)\prtmenu.obj:  prtmenu.c   $(HEADERS)
  63.  
  64. $(OBJDIR)\prtobj.obj:   prtobj.c    $(HEADERS)
  65.  
  66. $(OBJDIR)\prtpage.obj:  prtpage.c   $(HEADERS)
  67.  
  68. $(OBJDIR)\prtprof.obj:  prtprof.c   $(HEADERS)
  69.  
  70. $(OBJDIR)\prtprint.obj: prtprint.c  $(HEADERS)
  71.  
  72. $(OBJDIR)\prtsamp.obj: prtsamp.c    $(HEADERS)
  73.  
  74. prtsamp.def: prtsamp.mak
  75.    @echo Creating .DEF file -- <<$(@B).def
  76.  
  77. NAME PRTSAMP WINDOWAPI
  78.  
  79. DESCRIPTION 'PM Print Sample Application'
  80.  
  81. CODE MOVEABLE
  82. DATA MOVEABLE MULTIPLE
  83.  
  84. HEAPSIZE 18192
  85. STACKSIZE 20384
  86. EXPORTS
  87.    WinProc
  88.    ObjectWinProc
  89. <<keep
  90.  
  91. $(EXEDIR)\prtsamp.exe: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  92.    -$(CREATE_PATH)
  93.    $(LINK) $@ $(@B).def $(MTLIBS) $(OBJS)
  94.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  95.  
  96. clean :
  97.         @if exist *.obj del *.obj
  98.         @if exist *.dll del *.dll
  99.         @if exist *.exe del *.exe
  100.