home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / MM / SHRCFILE / SHRC.MAK < prev    next >
Makefile  |  1995-08-24  |  2KB  |  91 lines

  1. # SCCSID = @(#)makefile 13.6 92/04/23
  2. #################################################################################
  3. #
  4. # Makefile for Toolkit Resource file
  5. #
  6. #   Generates one dll:
  7. #         shrc.dll          - Sample Stream Handlers Resource Dll
  8. #
  9. #
  10. # Copyright (c) IBM Corporation  1992, 1993
  11. # All Rights Reserved
  12. #
  13. #################################################################################
  14.  
  15. .SUFFIXES: .com .sys .exe .obj .mbj .asm .inc .def .lrf .crf .ref \
  16.            .lst .sym .map .c .h .lib .msg .pro .txt
  17.  
  18. RCDLL=SHRC
  19. RCRES=SSMRES
  20.  
  21. #################################
  22. # Definitions for C Compiler
  23. #################################
  24.  
  25. CC=icc
  26.  
  27. CFLAGS=  /C+ /Gd- /Ge- /Gm+ /Gs- /Re /J- /Kb- /Ki- /Ms /Sm /Sn /Ss+ /DINCL_32
  28.  
  29. #################################
  30. # Definitions for linker
  31. #################################
  32. LINK=link386
  33. MAP = mapsym $(RCDLL)
  34. LFLAGS= /batch /map /nod /noe /noi /packcode /packdata /exepack /align:16
  35. LIBS= DDE4MBS.LIB os2386.lib MMPM2.LIB
  36.  
  37. #########################################
  38. # Definitions for RESOURCE compiler
  39. #########################################
  40. RC  = rc
  41.  
  42. #################################
  43. # Inference Rules
  44. #################################
  45. .c.obj:
  46.         $(CC) $(CFLAGS) /Fo$(<R).obj $(C_LST) $(<R).c
  47.  
  48. #################################
  49. # Object file lists
  50. #################################
  51.  
  52. RCOBJS = rcstub.obj
  53.  
  54. #################################
  55. # Target Descriptions
  56. #################################
  57. all: rc
  58.  
  59. ##################################
  60. # audiores.dll Target Descriptions
  61. ##################################
  62.  
  63. rc: $(RCDLL).dll
  64.  
  65. $(RCDLL).dll:   $(RCOBJS) $(RCRES).rc shrc.mak $(RCDLL).lrf $(RCDLL).def
  66.         $(LINK)  @$(RCDLL).lrf
  67.         $(RC) $(RCRES).rc $(RCDLL).dll
  68.         $(MAP)
  69.  
  70. $(RCDLL).def: shrc.mak
  71.         @echo Creating file <<$(@B).def
  72. LIBRARY $(RCDLL)
  73. DESCRIPTION 'DLL file containing resources'
  74. STUB 'OS2STUB.EXE'
  75. DATA NONE
  76. <<keep
  77.  
  78. $(RCDLL).lrf: shrc.mak
  79.         @echo Creating file <<$(@B).lrf
  80. $(RCOBJS)
  81. $(RCDLL).dll
  82. $(RCDLL).map $(LFLAGS)
  83. $(LIBS)
  84. $(RCDLL).def;
  85. <<keep
  86.  
  87.  
  88.  
  89.  
  90.  
  91.