home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / smh / makefile < prev    next >
Encoding:
Makefile  |  1995-07-11  |  1.1 KB  |  46 lines

  1. # Makefile to build the MAPI Sample Hook Provider
  2.  
  3. !include <win32.mak>
  4.  
  5. PROJ     = SMH32
  6. BASEFILE = ..\common\mapibase.txt
  7.  
  8. # Main target dependencies
  9.  
  10. all: $(PROJ).dll
  11.  
  12. # Extra libraries needed, not defined in win32.mak
  13.  
  14. extralibs = mapi32.lib ole32.lib ..\common\ctl3d32.lib winmm.lib uuid.lib comctl32.lib
  15.  
  16. # Object files we need to build
  17.  
  18. OBJS = smh.obj smhcfg.obj smhmdb.obj smhoof.obj smhps.obj smhwiz.obj smhguid.obj
  19.  
  20. # Bitmap files we use
  21.  
  22. BITMAPS = down.bmp downdis.bmp downinv.bmp updis.bmp upinv.bmp up.bmp
  23.  
  24. # Build the object files
  25.  
  26. .c.obj:
  27.   $(cc) /I..\common $(cdebug) $(cflags) $(cvars) $*.c
  28.  
  29. # Build the resources
  30.  
  31. $(PROJ).res: SMH.RC SMH.DLG SMH.ICO $(BITMAPS)
  32.   $(rc) /I..\common $(rcflags) $(rcvars) /fo $(PROJ).res SMH.RC
  33.  
  34. # Link it together to make the executable image
  35.  
  36. $(PROJ).dll: $(OBJS) $(PROJ).res $(COMMON_OBJS)
  37.   $(link) $(linkdebug) $(lflags) -dll -subsystem:windows,$(APPVER) $(OBJS) \
  38.   $(COMMON_OBJS) $(PROJ).res $(guilibsdll) $(extralibs) -def:smh32.def -out:$(PROJ).dll \
  39.   -base:@$(BASEFILE),$(PROJ)
  40.  
  41. # Clean up the intermediate files
  42.  
  43. clean:
  44.   del *.obj *.res
  45.  
  46.