home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / caseconv / caseconv.mak next >
Makefile  |  1999-05-11  |  3KB  |  83 lines

  1. #===================================================================
  2. #
  3. #   CASECONV.MAK - Make file for Case Conversion IOProc sample
  4. #   Copyright  IBM Corporation 1992
  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. #       MMLIBS   - Multimedia libraries
  21. #===================================================================
  22.  
  23. !include ..\..\ibmsamp.inc
  24.  
  25.  
  26.  
  27. HEADERS = convproc.h hhpheap.h
  28. #-------------------------------------------------------------------
  29. #
  30. #  Component specific requirements for compile flags
  31. #
  32. #-------------------------------------------------------------------
  33.  
  34. CC = $(CC) -Sm -DINCL_32 -I.
  35.  
  36. #-------------------------------------------------------------------
  37. #
  38. #   A list of all of the object files
  39. #
  40. #-------------------------------------------------------------------
  41.  
  42. OBJS = $(OBJDIR)\convproc.obj $(OBJDIR)\convcvsr.obj \
  43.        $(OBJDIR)\convconv.obj $(OBJDIR)\hhpheap.obj
  44.  
  45. ALL_IPF =
  46.  
  47. #-------------------------------------------------------------------
  48. #   This section lists all files to be built by the make.  The
  49. #   makefile builds the executible as well as its associated help
  50. #   file.
  51. #-------------------------------------------------------------------
  52. all: $(EXEDIR)\convproc.lib $(EXEDIR)\convproc.dll
  53.  
  54. #-------------------------------------------------------------------
  55. #   This section creates the command file used by the linker.  This
  56. #   command file is recreated automatically every time you change
  57. #   the object file list, linker flags, or library list.
  58. #-------------------------------------------------------------------
  59. #-------------------------------------------------------------------
  60. #   Dependencies
  61. #     This section lists all object files needed to be built for the
  62. #     application, along with the files it is dependent upon (e.g.
  63. #     its source and any header files).
  64. #-------------------------------------------------------------------
  65.  
  66. prodinfo.bmp :
  67.            copy ..\..\prodinfo.bmp $@
  68.  
  69. $(EXEDIR)\convproc.lib: $(EXEDIR)\convproc.dll convproc.def caseconv.mak
  70.     -$(CREATE_PATH)
  71.     implib convproc.lib convproc.def
  72.  
  73. $(EXEDIR)\convproc.dll: $(OBJS) convproc.def
  74.    -$(CREATE_PATH)
  75.    $(LINK) $@ convproc.def $(DLLLIBS) $(MMLIBS) @<<$(OBJDIR)\convproc.lnk
  76. $(OBJS)
  77. <<
  78.  
  79. clean :
  80.         @if exist *.obj del *.obj
  81.         @if exist *.dll del *.dll
  82.         @if exist *.exe del *.exe
  83.