home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap18 / cosmo1.0 / makefile < prev    next >
Makefile  |  1997-12-22  |  2KB  |  84 lines

  1. #
  2. # MAKEFILE
  3. # Cosmo 1.0 (OLE 1.0) Chapter 18
  4. #
  5. # Copyright (c)1992-1995 Microsoft Corporation, All Rights Reserved
  6. #
  7. # Kraig Brockschmidt, Microsoft
  8. # Internet  :  kraigb@microsoft.com
  9. # Compuserve:  >INTERNET:kraigb@microsoft.com
  10. #
  11.  
  12. #Add '#' to the next line for 'noisy' operation
  13. !CMDSWITCHES +s
  14.  
  15. TARGET  = cosmo0
  16. OUTFILE = cosmo0.exe
  17.  
  18. NODOC     = 1
  19. NOPRECOMP = 1
  20. NOUILIB   = 1
  21. NOOCLIB   = 1
  22. NOBOOKLIB = 1
  23.  
  24. INCLS   = cosmo.h oleinst.h oleglobl.h polyline.h
  25.  
  26. OBJS1   = cosmo.obj init.obj polyline.obj misc.obj commdlg.obj file.obj
  27. OBJS2   = fileio.obj clip.obj exit.obj oleobj.obj oleclip.obj
  28. OBJS3   = olemisc.obj olefile.obj oleglobl.obj oleinst.obj oleinit.obj
  29. OBJS4    = oleexit.obj olevtbl.obj olesvr.obj oledoc.obj
  30. OBJS5   = ""
  31. OBJS6   = ""
  32. OBJS    = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
  33.  
  34. RCFILES = cosmo.dlg cosmo.ico
  35.  
  36. !include "..\\..\\inole-a.mak"
  37.  
  38. #
  39. # Since this is an OLE 1.0 app, we need to change some of the
  40. # compiler and linker options.
  41. #
  42.  
  43. !ifndef WIN16
  44. DEFS32  = -DWIN32 -D_X86_=1 -DINC_OLE1 -DMAKEOLESERVER -DSERVERONLY -DMSC
  45. LIBS32A = msvcrt.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib
  46. LIBS32B = ..\..\lib\olesvr32.lib advapi32.lib
  47. LIBS32  = $(LIBS32A) $(LIBS32B)
  48. !else
  49. CL32    = -G2sw -f -AS
  50. DEFS32  = -DWIN16 -DMAKEOLESERVER -DSERVERONLY -DMSC
  51. LIBS32A = libw slibcew commdlg shell
  52. LIBS32B = olesvr
  53. LIBS32  = $(LIBS32A) $(LIBS32B)
  54. !endif
  55.  
  56.  
  57. !include "..\\..\\inole-b.mak"
  58.  
  59.  
  60. ##### Dependencies #####
  61.  
  62. cosmo1.res   : cosmo1.rc  $(INCLS) $(RCFILES)
  63.  
  64. cosmo.obj    : cosmo.c    $(INCLS)
  65. init.obj     : init.c     $(INCLS)
  66. polyline.obj : polyline.c $(INCLS)
  67. misc.obj     : misc.c     $(INCLS)
  68. commdlg.obj  : commdlg.c  $(INCLS)
  69. file.obj     : file.c     $(INCLS)
  70. fileio.obj   : fileio.c   $(INCLS)
  71. clip.obj     : clip.c     $(INCLS)
  72. exit.obj     : exit.c     $(INCLS)
  73. oleobj.obj   : oleobj.c   $(INCLS)
  74. oleclip.obj  : oleclip.c  $(INCLS)
  75. olemisc.obj  : olemisc.c  $(INCLS)
  76. olefile.obj  : olefile.c  $(INCLS)
  77. oleglobl.obj : oleglobl.c $(INCLS)
  78. oleinst.obj  : oleinst.c  $(INCLS)
  79. oleinit.obj  : oleinit.c  $(INCLS)
  80. oleexit.obj  : oleexit.c  $(INCLS)
  81. olevtbl.obj  : olevtbl.c  $(INCLS)
  82. olesvr.obj   : olesvr.c   $(INCLS)
  83. oledoc.obj   : oledoc.c   $(INCLS)
  84.