home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / compiler / dts / makefile < prev    next >
Encoding:
Makefile  |  1996-02-20  |  1.9 KB  |  68 lines

  1. .SUFFIXES: .cpp .idl .hh .obj .xh .xih
  2.  
  3. XDIR=.\xhmain
  4. DLLDIR=.\xhmain\dtsdll
  5. INCLUDE=.\;$(DLLDIR);$(INCLUDE)
  6. LIBS=somtk.lib
  7. LINK=ilink
  8.  
  9. DEBUGFLAGS=/Ti /O- /Os-
  10. BROWSEFLAGS=/Fb
  11. PERFLAGS=/Gh 
  12. CPPFLAGS=$(DEBUGFLAGS) $(BROWSEFLAGS) $(PERFLAGS)
  13. LNKFLAGS=/PM:VIO /NOE /ST:0x360000 /DE
  14.  
  15. all: $(DLLDIR)\mycls.dll $(XDIR)\xhmain.exe hhmain.exe
  16.  
  17. $(DLLDIR)\mycls.dll: $(DLLDIR)\mycls.obj $(DLLDIR)\mycls.def {$(LIB)}cppwpa3.obj
  18.          ilib /geni:$(DLLDIR)\mycls.lib $(DLLDIR)\mycls.def 
  19.         $(LINK) /DLL $(LNKFLAGS) \
  20.             $(DLLDIR)\mycls.obj cppwpa3.obj \
  21.                 /out:$(DLLDIR)\mycls.dll \
  22.             $(LIBS) $(DLLDIR)\mycls.exp 
  23.  
  24. hhmain.exe: hhmain.obj  {$(LIB)}cppwpa3.obj $(DLLDIR)\mycls.dll
  25.     icc $(CPPFLAGS) /Fe"hhmain.exe" hhmain.obj cppwpa3.obj \
  26.             /B"$(LNKFLAGS)" $(LIBS) $(DLLDIR)\mycls.lib 
  27.  
  28. $(XDIR)\xhmain.exe: $(XDIR)\xhmain.obj  {$(LIB)}cppwpa3.obj $(DLLDIR)\mycls.dll
  29.     icc $(CPPFLAGS) /Fe"$(XDIR)\xhmain.exe" $(XDIR)\xhmain.obj \
  30.             cppwpa3.obj /B"$(LNKFLAGS)" \
  31.             $(LIBS) $(DLLDIR)\mycls.lib 
  32.  
  33.  
  34. #
  35. .cpp.obj:
  36.     icc /c+ $(CPPFLAGS) /fo$*.obj $<
  37.  
  38. .idl.xh:
  39.     sc -I $(SOMBASE)\include -sxh -mnoqualifytypes %s
  40.  
  41. $(DLLDIR)\info.idl: $(DLLDIR)\info.hh
  42.           cd $(DLLDIR)
  43.           icc /c info.hh
  44.           cd ..\..
  45.  
  46. $(DLLDIR)info.xh:  $(DLLDIR)\info.idl
  47.  
  48. $(DLLDIR)\mycls.obj: $(DLLDIR)\mycls.cpp {$(INCLUDE)}info.hh
  49.     icc /c $(DEBUGFLAGS) $(BROWSEFLAGS) $(PERFLAGS) /Ge-  \
  50.          /fo$(DLLDIR)\mycls.obj $(DLLDIR)\mycls.cpp
  51.  
  52. hhmain.obj: hhmain.cpp {$(INCLUDE)}info.hh
  53.  
  54. $(XDIR)\xhmain.obj: $(XDIR)\xhmain.cpp $(DLLDIR)\info.xh
  55.  
  56. clean:
  57.         -del $(DLLDIR)\mycls.obj
  58.         -del $(DLLDIR)\mycls.dll
  59.         -del $(DLLDIR)\mycls.lib
  60.         -del $(DLLDIR)\mycls.exp 
  61.         -del $(DLLDIR)\mycls.pdb
  62.     -del $(XDIR)\xhmain.exe 
  63.         -del $(XDIR)\xhmain.obj
  64.         -del $(XDIR)\xhmain.pdb
  65.         -del hhmain.obj
  66.         -del hhmain.exe
  67.         -del hhmain.pdb
  68.