home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / profile.cli / makefile < prev    next >
Encoding:
Makefile  |  1996-03-27  |  1.7 KB  |  80 lines

  1. # Makefile to build the New Profile sample
  2.  
  3. # Key to CPU specific conditions, CPU == i386 || ALPHA || MIPS || PPC
  4. !IF "$(CPU)" == ""
  5. !IF "$(PROCESSOR_ARCHITECTURE)" == "MIPS" || "$(PROCESSOR_ARCHITECTURE)" == "ALPHA" || "$(PROCESSOR_ARCHITECTURE)" == "PPC"
  6. CPU = $(PROCESSOR_ARCHITECTURE)
  7. !ELSE
  8. CPU = i386
  9. !ENDIF
  10. !ENDIF
  11.  
  12. !include <win32.mak>
  13.  
  14. !IFNDEF NODEBUG
  15. cflags = $(cflags) -DDEBUG
  16. !ENDIF
  17.  
  18. !IFDEF MAPISAMP
  19. HOME   = $(MAPISAMP)\profile.cli^\
  20. COMMON = $(MAPISAMP)\common^\
  21. rcvars = $(rcvars) /I$(HOME)
  22. !ELSE
  23. HOME   = 
  24. COMMON = ..\common^\
  25. !ENDIF
  26.  
  27. PROJ = mkprof32
  28.  
  29. # Main target dependencies
  30.  
  31. all: $(PROJ).exe
  32.  
  33. # Extra libraries needed, not defined in win32.mak
  34.  
  35. extralibs = mapi32.lib ole32.lib uuid.lib
  36.  
  37. # Object files we need to build
  38.  
  39. OBJS = createpr.obj
  40. COMMON_OBJS = 
  41. !IFNDEF NODEBUG
  42. COMMON_OBJS = $(COMMON_OBJS) mapidbg.obj
  43. !ENDIF
  44.  
  45. # Build the object files
  46.  
  47. {$(HOME)}.c.obj:
  48.   $(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
  49.  
  50. pvalloc.obj: $(COMMON)pvalloc.c
  51.   $(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
  52.  
  53. wrap3d.obj: $(COMMON)wrap3d.c
  54.   $(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
  55.  
  56. mapidbg.obj: $(COMMON)mapidbg.c
  57.   $(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
  58.  
  59. cindex.obj: $(COMMON)cindex.c
  60.   $(cc) -I$(COMMON) $(cdebug) $(cflags) $(cvarsmt) $**
  61.  
  62.  
  63. # Link it together to make the executable image
  64.  
  65. $(PROJ).exe: $(OBJS) $(COMMON_OBJS)
  66.   $(link) $(linkdebug) $(lflags) -subsystem:console,$(APPVER) $(OBJS) \
  67.   $(COMMON_OBJS) $(guilibsmt) $(extralibs) -out:$(PROJ).exe
  68. !IFDEF MAPISAMP
  69.   -copy $@ $(MAPISAMP)\bin\$(PLATFORM)
  70. !ENDIF
  71.  
  72. # Clean up the intermediate files
  73.  
  74. clean:
  75.   -del *.obj 
  76.   -del *.res
  77.   -del *.exe
  78.   -del *.map
  79.  
  80.