home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mmpm21tk.zip / TK / MMOTTK / MAKEFILE next >
Text File  |  1993-02-11  |  3KB  |  115 lines

  1. #################################################################################
  2. #
  3. # Makefile for Toolkit MMotion Image IOProc
  4. #
  5. #   Generates
  6. #         mmotproc.dll       - M Motion Image IOproc
  7. #
  8. #
  9. # Copyright (c) IBM Corporation  1991, 1993
  10. # All Rights Reserved
  11. #
  12. #################################################################################
  13.  
  14. .SUFFIXES: .exe .obj .asm .inc .def .lrf .lst .sym .map .c .h .lib .dlg .txt .cod  \
  15.            .res .rc .l$(LANG) .dll
  16.  
  17. NAMEDLL=MMOTTK
  18. NAMERES=MMOTPROC
  19.  
  20. #################################
  21. # Definitions for C Compiler
  22. # Compiler options (C Set/2 (Toronto))
  23. #    Ge- == Build .DLL (default is .exe)
  24. #    Gm+ == Multithreaded libraries
  25. #    Gn+ == Do not generate default libraries in object
  26. #    Q+  == Supress logo
  27. #    O+  == Optimize code (don't use with Ti)
  28. #    Kp+ == Produce messages about unused function parameters
  29. #    Sn+ == Provide DBCS support in runtime string routines
  30. #    Fl+ == Produce listing
  31. #    L+  == Produce listing (hum, why 2)
  32. #    Ls+ == Include source in listing
  33. #################################
  34. CC=icc
  35. CFLAGS=/C /Ge- /Gm+ /Gn+  /Q+ /Kp+ /Sn+ /DLINT_ARGS 
  36.  
  37. #################################
  38. # Definitions for linker
  39. # LIBRARIES:
  40. #  OS2386 == 386 Library
  41. #  DDE4MBS== DLL Library
  42. #  MMPM2  == MMPM2 Library
  43. #################################
  44. LINK386=link386
  45. MAPSYM=mapsym 
  46. LFLAGS= /batch /map /nod /noi /noe 
  47. LIBS= OS2386.LIB DDE4MBS.LIB MMPM2.LIB
  48.  
  49. #########################################
  50. # Definitions for RESOURCE compiler
  51. #########################################
  52. RC   = rc
  53.  
  54. #################################
  55. # Object file lists
  56. #################################
  57. OBJS = mmotproc.obj mmotfunc.obj 
  58.  
  59. #################################
  60. # Inference Rules
  61. #################################
  62. .c.obj:
  63.         $(CC) $(CFLAGS) /Fo$(<R).obj $(<R).c
  64.  
  65. #################################
  66. # Target Descriptions
  67. #################################
  68. all: res dll 
  69.  
  70. #################################
  71. # DLL Target Descriptions
  72. #################################
  73. dll: $(NAMEDLL).dll
  74.  
  75. $(NAMEDLL).dll: $(OBJS) makefile $(NAMEDLL).lrf $(NAMEDLL).def 
  76.         $(LINK386)  @$(NAMEDLL).lrf
  77.         $(MAPSYM) $(NAMEDLL)
  78.         $(RC) $(NAMERES).res $*.dll
  79.  
  80. ################################
  81. # Make DEF file
  82. ################################
  83. $(NAMEDLL).def: makefile
  84.         @echo Creating file <<$(@B).def
  85. LIBRARY $(NAMEDLL) INITINSTANCE TERMINSTANCE
  86. DATA MULTIPLE NONSHARED
  87. SEGMENTS
  88.    shardata CLASS 'DATA' SHARED
  89. HEAPSIZE 0
  90. BASE = 0x1B130000
  91. IMPORTS
  92. EXPORTS
  93.    IOProc_Entry    @1
  94. <<keep
  95.  
  96. ################################
  97. # Make link response file
  98. ################################
  99. $(NAMEDLL).lrf: makefile
  100.         @echo Creating file <<$(@B).lrf
  101. $(OBJS)
  102. $(NAMEDLL).dll
  103. $(NAMEDLL) $(LFLAGS)
  104. $(LIBS)
  105. $(NAMEDLL).def;
  106. <<keep
  107.  
  108. ##################################
  109. # RES Target Descriptions
  110. ##################################
  111. res: $(NAMERES).res
  112. $(NAMERES).res: $(NAMERES).rc makefile
  113.         @echo $@ > con
  114.         $(RC) -r $*.rc $@
  115.