home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / dts / dsomreg.mak < prev    next >
Encoding:
Makefile  |  1996-02-21  |  1.6 KB  |  65 lines

  1. --------------------------------------------------------------------------------
  2. --
  3. -- COPYRIGHT:
  4. --   IBM WorkFrame - Project Smarts
  5. --   (C) Copyright International Business Machines Corporation 1996
  6. --   Licensed Material - Program-Property of IBM - All Rights Reserved.
  7. --   US Government Users Restricted Rights - Use, duplication, or disclosure
  8. --   restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. --------------------------------------------------------------------------------
  11.  
  12. .SUFFIXES: .hh .idl
  13.  
  14. all: $SOM_IR_FILE$ somdimpl.dat
  15.  
  16. #
  17. # $SOM_IR_FILE$ - local Interface Repository.
  18. #
  19. SOMIR=$(SOMIR);$SOM_IR_FILE$
  20.  
  21. #
  22. # Generate IDL interfaces for each DTS C++ class.
  23. #
  24. .hh.idl:
  25.         icc /c $*.hh
  26.  
  27. <repeat HEADER_NAME>
  28. $HEADER_NAME$.idl: $HEADER_NAME$.hh
  29. </repeat>
  30.  
  31.  
  32. #
  33. # Register the IDL class interface into the Interface Repository for
  34. # every class that is to be accessed by a remote process.
  35. #
  36. $SOM_IR_FILE$: \
  37. <repeat HEADER_NAME separate  \>
  38.     $HEADER_NAME$.idl
  39. </repeat>
  40. <repeat HEADER_NAME>
  41.         sc -sir -u $HEADER_NAME$.idl
  42. </repeat>
  43.  
  44. #
  45. # Register a new server's implementation and it's associated classes
  46. # with the Implementation Repository.
  47. #
  48. somdimpl.dat:
  49.         regimpl -A -i $SOM_SERVER$ -h $(HOSTNAME)
  50. <repeat SOM_CLASS_NAME>
  51.         regimpl -a -i $SOM_SERVER$ -c $SOM_CLASS_NAME$
  52. </repeat>
  53.  
  54.  
  55. #
  56. # De-register all class implementations and delete $SOM_SERVER$.
  57. #
  58. clean:
  59. <repeat SOM_CLASS_NAME>
  60.         regimpl -d -c $SOM_CLASS_NAME$ -i $SOM_SERVER$
  61. </repeat>
  62.         regimpl -D -i $SOM_SERVER$
  63.  
  64.  
  65.