home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somd / cpp / event / vac.mak < prev   
Encoding:
Makefile  |  1996-02-16  |  3.5 KB  |  108 lines

  1. #
  2. #   COMPONENT_NAME: somx
  3. #
  4. #   ORIGINS: 27
  5. #
  6. #
  7. #   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. #   All Rights Reserved
  9. #   Licensed Materials - Property of IBM
  10. #   US Government Users Restricted Rights - Use, duplication or
  11. #   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. #
  13.  
  14. # DISCLAIMER OF WARRANTIES.
  15. # The following [enclosed] code is sample code created by IBM
  16. # Corporation. This sample code is not part of any standard or IBM
  17. # product and is provided to you solely for the purpose of assisting
  18. # you in the development of your applications.  The code is provided
  19. # "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
  20. # NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  21. # FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
  22. # THIS CODE.  IBM shall not be liable for any damages arising out of
  23. # your use of the sample code, even if they have been advised of the
  24. # possibility of such damages.
  25. #
  26. # DISTRIBUTION.
  27. # This sample code can be freely distributed, copied, altered, and
  28. # incorporated into other software, provided that it bears the above
  29. # Copyright notice and DISCLAIMER intact.
  30.  
  31. #  Makefile for DSOM C++ "event" sample
  32.  
  33. !include ..\..\..\vacmake.hd
  34.  
  35. #SCINCFLAGS = -I$(SOMBASE)\include
  36. IDLS = eventcom.idl eventch.idl cell.idl
  37. INCLS    = eventcom.xh eventch.xh cell.xh
  38.  
  39. PRIVCPPFLAGSDLL    = /Ms
  40.  
  41. PRIVCPPFLAGS=/Ms
  42.  
  43. #PRIVLDFLAGS=/SUBSYSTEM:WINDOWS
  44.  
  45. DLLOBJS = eventcom.od eventch.od cell.od eventint.od nlsutild.od
  46.  
  47. # this will actually use eventv.def at present
  48. DEFSPEC=/DEF:$(*:.def=)v.def
  49.  
  50.  
  51. all: $(SOMXH_DEPEND) event.lib event.dll eventsvr.exe eventcli.exe consumer.exe som.ir somdimpl
  52.  
  53. # dll objects
  54. cell.od:  cell.cpp cell.xh cell.xih
  55. cell.xih:  cell.idl
  56. eventcom.od: eventcom.cpp eventcom.xh eventcom.xih
  57. eventcom.xih: eventcom.idl
  58. eventch.od: eventch.cpp eventch.xh eventch.xih eventcom.xih
  59. eventch.xih: eventch.idl
  60. eventint.od: eventint.cpp
  61.  
  62. event.lib: eventv.def $(DLLOBJS)
  63.     ilib  /out:event /geni $(DLLOBJS:.od=.obj)
  64.  
  65. event.dll: eventv.def $(DLLOBJS)
  66.     ilink /DLL /DE /NOE /MAP /NOLog /OUT:event.dll $(DLLOBJS:.od=.obj) event.exp somtk.lib user32.lib kernel32.lib
  67.  
  68. ##Build the executables
  69. eventcli.obj: eventcli.cpp cell.xh
  70. eventcli.exe: eventcli.obj event.lib nlsutil.obj eventcli.res
  71. eventcli.res: eventcli.h eventcli.rc
  72. consumer.obj: consumer.cpp eventcom.xh eventch.xh
  73. consumer.exe: consumer.obj event.lib nlsutil.obj consumer.res 
  74. #consumer.exe: consumer.obj event.lib consumer.def nlsutil.obj consumer.res 
  75. consumer.res: consumer.h consumer.rc
  76. eventsvr.obj: eventsvr.cpp cell.xh eventcom.xh eventch.xh
  77. eventsvr.res: eventsvr.rc som.ico
  78. eventsvr.exe: eventsvr.obj event.lib nlsutil.obj eventsvr.res
  79.  
  80. ## Add IDL descriptions into interface repository
  81. som.ir : som_ir
  82.  
  83. som_ir: *.idl
  84.     -$(SC) -I. -sir -u -mnolock $(SCINCFLAGS) *.idl
  85.     -@echo x > som_ir
  86.     
  87. ##Build DSOM inplementation repository
  88. somdimpl:
  89.     regimpl -A -i cellServer2 -p eventsvr.exe
  90.     regimpl -a -i cellServer2 -c Cell -c EventChannelAdmin::ConsumerAdmin
  91.     regimpl -a -i cellServer2 -c EventChannelAdmin::EventChannel -c EventChannelAdmin::SupplierAdmin
  92.     regimpl -a -i cellServer2 -c EventComm::Consumer -c EventComm::Supplier -c EventComm::EventConnection
  93.     echo x >somdimpl
  94.  
  95. clnimpl:
  96.     -regimpl -D -i cellServer2
  97.     -del somdimpl
  98.  
  99. clean: clnimpl
  100.     del som.ir
  101.     del som_ir
  102.     del eventcom.xh 
  103.     del eventch.xh 
  104.     del cell.xh
  105.     del msg.log
  106.  
  107. !include ..\..\..\vacmake.tl
  108.