home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somd / cpp / event / msc.mak < prev    next >
Encoding:
Makefile  |  1996-02-16  |  3.5 KB  |  106 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 ..\..\..\mscmake.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    = /DSOM_DONT_IMPORT_CLASS_Cell \
  40.     /DSOM_DONT_IMPORT_CLASS_EventChannelAdmin_ConsumerAdmin \
  41.     /DSOM_DONT_IMPORT_CLASS_EventChannelAdmin_SupplierAdmin \
  42.     /DSOM_DONT_IMPORT_CLASS_EventChannelAdmin_EventChannel\
  43.     /DSOM_DONT_IMPORT_CLASS_EventComm_EventConnection\
  44.     /DSOM_DONT_IMPORT_CLASS_EventComm_Consumer\
  45.     /DSOM_DONT_IMPORT_CLASS_EventComm_Supplier
  46.  
  47. PRIVLDFLAGSDLL=$(ENTRYFLAG) $(SOMINITOBJ)
  48.  
  49. DLLOBJS = eventcom.od eventch.od cell.od eventint.od nlsutil.od
  50.  
  51. # CLEANFILES = $(INCLS) msg.log som_ir som.ir
  52.  
  53. all: $(SOMXH_DEPEND) event.lib event.dll eventsvr.exe eventcli.exe consumer.exe som.ir somdimpl
  54.  
  55. # dll objects
  56. cell.od:  cell.cpp cell.xh cell.xih
  57. cell.xih:  cell.idl
  58. eventcom.od: eventcom.cpp eventcom.xh eventcom.xih
  59. eventcom.xih: eventcom.idl
  60. eventch.od: eventch.cpp eventch.xh eventch.xih eventcom.xih
  61. eventch.xih: eventch.idl
  62. eventint.od: eventint.cpp
  63.  
  64. event.lib: event.def $(DLLOBJS)
  65. event.dll: event.def $(DLLOBJS)
  66.  
  67. ##Build the executables
  68. eventcli.obj: eventcli.cpp cell.xh
  69. eventcli.exe: eventcli.obj event.lib nlsutil.obj eventcli.res
  70. eventcli.res: eventcli.h eventcli.rc
  71. consumer.obj: consumer.cpp eventcom.xh eventch.xh
  72. consumer.exe: consumer.obj event.lib nlsutil.obj consumer.res 
  73. consumer.res: consumer.h consumer.rc
  74. eventsvr.obj: eventsvr.cpp cell.xh eventcom.xh eventch.xh
  75. eventsvr.res: eventsvr.rc som.ico
  76. eventsvr.exe: eventsvr.obj event.lib nlsutil.obj eventsvr.res
  77.  
  78. ## Add IDL descriptions into interface repository
  79. som.ir : som_ir
  80.  
  81. som_ir: *.idl
  82.     -$(SC) -I. -sir -u -mnolock $(SCINCFLAGS) *.idl
  83.     -@echo x > som_ir
  84.     
  85. ##Build DSOM inplementation repository
  86. somdimpl:
  87.     regimpl -A -i cellServer2 -p eventsvr.exe
  88.     regimpl -a -i cellServer2 -c Cell -c EventChannelAdmin::ConsumerAdmin
  89.     regimpl -a -i cellServer2 -c EventChannelAdmin::EventChannel -c EventChannelAdmin::SupplierAdmin
  90.     regimpl -a -i cellServer2 -c EventComm::Consumer -c EventComm::Supplier -c EventComm::EventConnection
  91.     echo x >somdimpl
  92.  
  93. clnimpl:
  94.     -regimpl -D -i cellServer2
  95.     -del somdimpl
  96.  
  97. clean: clnimpl
  98.     del som.ir
  99.     del som_ir
  100.     del eventcom.xh 
  101.     del eventch.xh 
  102.     del cell.xh
  103.     del msg.log
  104.  
  105. !include ..\..\..\mscmake.tl
  106.