home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / srctrn.zip / SRCTRANS.MAK < prev    next >
Makefile  |  1994-01-11  |  3KB  |  108 lines

  1.  
  2. #
  3. #  Source render drag/drop sample
  4. #
  5. #  Author : Andrew Clinch
  6. #
  7. #  Disclaimer :
  8. #  In no event shall Andrew Clinch be liable for any damages whatsoever
  9. #  (including, without limitation, damaged or loss of business profits, business
  10. #  interruption, loss of business information, or other pecuniary loss) arising
  11. #  out of the use or inability to use this sample code, even if Andrew Clinch
  12. #  has been advised of the possibility of such damages.
  13. #
  14.  
  15. LFLAGS   = /NOE /NOD /ALIGN:16 /EXEPACK /M /BASE:0x10000
  16. LINK    = LINK386  $(LFLAGS)
  17. LIBS    = DDE4MBS + OS2386
  18. STLIBS  = DDE4SBS + OS2386
  19. MTLIBS  = DDE4MBS + os2386
  20. DLLLIBS = DDE4NBS + os2386
  21. VLIBS   = DDE4SBS + vdh + os2386
  22.  
  23. PRJLIBDIR=\projects\lib\#
  24.  
  25. #****************************************************************************
  26. #  Dot directive definition area (usually just suffixes)
  27. #****************************************************************************
  28.  
  29. .SUFFIXES:
  30. .SUFFIXES: .cpp .obj .dll .csc .sc .xh .xih .xph .psc .rc .res .def
  31.  
  32. #****************************************************************************
  33. #  Environment Setup for the component(s).
  34. #****************************************************************************
  35.  
  36. SOMTEMP = .\somtemp
  37. SCPATH  = e:\toolkt21\sc
  38. HPATH   = e:\toolkt21\cplus\os2h
  39. LIBPATH = e:\toolkt21\os2lib
  40.  
  41. !if [set SMINCLUDE=.;$(HPATH);$(SCPATH);] || \
  42.     [set SMTMP=$(SOMTEMP)] || \
  43.     [set SMEMIT=xih;xh;psc;sc;xc;def]
  44. !endif
  45.  
  46. !if [cd $(SOMTEMP)]
  47. !  if [md $(SOMTEMP)]
  48. !    error error creating $(SOMTEMP) directory
  49. !  endif
  50. !else
  51. !  if [cd ..]
  52. !    error - Couldn't cd .. from $(SOMTEMP) directory
  53. !  endif
  54. !endif
  55.  
  56. #
  57. # Compiler/tools Macros
  58. #
  59.  
  60. CPP     = icc /Ge-
  61. LINK    = LINK386
  62. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  63. DLLLIBS = $(DLLLIBS) som.lib dde4muii.lib dde4cci.lib dde4mbsi.lib 
  64.  
  65. GCPPFLAGS=-Fd -c -Gm+ -O+
  66.  
  67. #****************************************************************************
  68. # Set up Macros that will contain all the different dependencies for the
  69. # executables and dlls etc. that are generated.
  70. #****************************************************************************
  71.  
  72. OBJS = srctrans.obj $(PRJLIBDIR)printf.obj
  73.  
  74. #****************************************************************************
  75. #   Setup the inference rules for compiling source code to
  76. #   object code.
  77. #****************************************************************************
  78.  
  79. # Remove pound signs to have CSC recompile
  80. .csc.xih:
  81.         sc -v -r  srctrans.csc
  82.  
  83. all: srctrans.dll
  84.  
  85. #
  86. # Specific Process Tag
  87. #
  88.  
  89. srctrans.xih:   $$(@B).csc
  90.  
  91. srctrans.def:   $$(@B).csc
  92.  
  93. srctrans.cpp:   $$(@B).csc
  94.  
  95. srctrans.obj: $$(@B).cpp $$(@B).xih $$(@B).xh  $$(@B).sc 
  96.          $(CPP) -I$(HPATH) /Fosrctrans.obj -c srctrans.cpp
  97.  
  98. srctrans.dll: $$(@B).def $(OBJS) srctrans.res
  99.          $(LINK) $(LDFLAGS) $(OBJS),$@,,$(DLLLIBS),srctrans;
  100.          rc -p -x srctrans.res srctrans.dll
  101.          mapsym srctrans.map
  102.  
  103. srctrans.res: $$(@B).rc $$(@B).xih
  104.          rc -r srctrans.rc srctrans.res
  105.  
  106.  
  107.  
  108.