home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somd / cpp / animal / msc.mak < prev    next >
Encoding:
Makefile  |  1996-02-16  |  3.0 KB  |  94 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.  
  15.  
  16. # DISCLAIMER OF WARRANTIES.
  17. # The following [enclosed] code is sample code created by IBM
  18. # Corporation. This sample code is not part of any standard or IBM
  19. # product and is provided to you solely for the purpose of assisting
  20. # you in the development of your applications.  The code is provided
  21. # "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
  22. # NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  23. # FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
  24. # THIS CODE.  IBM shall not be liable for any damages arising out of
  25. # your use of the sample code, even if they have been advised of the
  26. # possibility of such damages.
  27. #
  28. # DISTRIBUTION.
  29. # This sample code can be freely distributed, copied, altered, and
  30. # incorporated into other software, provided that it bears the above
  31. # Copyright notice and DISCLAIMER intact.
  32. !include  ..\..\..\mscmake.hd
  33.  
  34. INCLS = danimal.xh ddog.xh dldog.xh dbdog.xh dloc.xh
  35. IDLFILES = danimal.idl dbdog.idl ddog.idl dldog.idl dloc.idl
  36.  
  37. PRIVCPPFLAGSDLL=/DSOM_DONT_IMPORT_CLASS_dDog \
  38.         /DSOM_DONT_IMPORT_CLASS_dLittleDog \
  39.        /DSOM_DONT_IMPORT_CLASS_dLocation \
  40.        /DSOM_DONT_IMPORT_CLASS_Animal \
  41.        /DSOM_DONT_IMPORT_CLASS_dBigDog \
  42.        /DSOM_DONT_IMPORT_CLASS_dAnimal
  43.  
  44. PRIVCPPFLAGS=
  45.  
  46. DLLOBJS = danimal.od dloc.od ddog.od dldog.od dbdog.od daniinit.od nlsutil.od
  47. PRIVLDFLAGSDLL=$(ENTRYFLAG) $(SOMINITOBJ)
  48.  
  49. CLEANFILES=som_ir som.ir
  50.  
  51. all: $(SOMXH_DEPEND) danimal.dll anitest.exe testsvr.exe som_ir somdimpl
  52.  
  53. danimal.dll: danimal.def $(DLLOBJS) danimal.lib
  54. danimal.lib: danimal.def $(DLLOBJS)
  55.  
  56. danimal.od: danimal.xih danimal.xh dloc.xh danimal.cpp
  57. ddog.od: ddog.xih ddog.xh ddog.cpp
  58. dldog.od: dldog.xih dldog.xh dldog.cpp
  59. dbdog.od: dbdog.xih dbdog.xh dbdog.cpp
  60. dloc.od: dloc.xih dloc.xh dloc.cpp
  61. daniinit.od: daniinit.cpp
  62.  
  63. testsvr.exe: testsvr.obj nlsutil.obj testsvr.res
  64. testsvr.res: testsvr.rc testsvr.h som.ico
  65. testsvr.obj: $(INCLS) testsvr.cpp
  66.  
  67. anitest.exe: anitest.obj nlsutil.obj anitest.res danimal.lib
  68.     $(LD) $(LDFLAGS) /OUT:$@ anitest.obj nlsutil.obj anitest.res danimal.lib somtk.lib user32.lib gdi32.lib
  69.  
  70. anitest.obj: $(INCLS) anitest.cpp
  71. anitest.res: anitest.rc
  72.  
  73. clnimpl:
  74.     -regimpl -D -i aniServer2
  75.     -del somdimpl
  76.  
  77. ### -- Put the IDL descriptions into the Interface Repository.
  78. som_ir: $(IDLFILES)
  79.     -$(SC) -I. -sir -u -mnolock $(INCS) *.idl
  80.     -@echo "x" > som_ir
  81.  
  82. ### -- Build the DSOM Implementation Repository.
  83. somdimpl:
  84.     -regimpl -A -i aniServer2 -p testsvr.exe
  85.     -regimpl -a -i aniServer2 -c dAnimal -c dDog -c dBigDog -c dLittleDog -c dLocation
  86.     -regimpl -L -i aniServer2
  87.     @echo x > somdimpl
  88.  
  89. clean: clnimpl
  90.     del som_ir
  91.     del som.ir
  92.  
  93. !include ..\..\..\mscmake.tl
  94.