home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vbdatabs / msvc40.mak < prev    next >
Encoding:
Makefile  |  1999-03-31  |  4.2 KB  |  136 lines

  1. #######################
  2. #### Start of File ####
  3. #######################
  4. # --------------------------------------------------------------- 
  5. # Makefile Contents: Make file for the ASCII to PostScript converter program.
  6. # C/C++ Compiler Used: Microsoft Visual C/C++ 4.2 
  7. # Produced By: Doug Gaer
  8. # File Creation Date: 12/17/1997  
  9. # Date Last Modified: 03/31/1999
  10. # --------------------------------------------------------------- 
  11. # --------------- Makefile Description and Details -------------- 
  12. # --------------------------------------------------------------- 
  13. # Complier Flags 
  14. #    Zi -- Enable debugging
  15. #       W3 -- Turn on warnings 
  16. #       GX -- Enable C++ exception handling
  17. #       GR -- Enable C++ Run-Time Type Information
  18. #     Zp -- Byte align structures (leave no gaps between members)
  19. #
  20. # NOTE: None of the MSVC compilers will expand wildcard characters
  21. # used in command-line arguments unless linked with the setargv.obj
  22. # library. All the UNIX compliers will expand wildcard characters
  23. # by default.
  24. # --------------------------------------------------------------- 
  25. # Define a name for the executable
  26. PROJECT = as2ps
  27.  
  28. # Installation directory for the application and config files
  29. INSTALL_DIR = ..\..\bin
  30.  
  31. # Macro for path separator
  32. PATHSEP=/
  33.  
  34. # Setup additional paths for includes and source code
  35. AS2PS_PATH = .
  36. PSCRIPT_PATH = ../../src
  37.  
  38. ADD_INC_PATHS = -I../../include
  39.  
  40. # Setup define macros
  41. DEFMACS = 
  42.  
  43. # Define macros for compiler and linker
  44. CC = cl
  45. CPP = cl
  46. LINKER = link
  47.  
  48. # Define compiler and linker flags macros
  49. CFLAGS= /Zi /W3 /GX $(ADD_INC_PATHS) $(DEFMACS)
  50. COMPILE_ONLY = /c
  51. LFLAGS =  
  52.  
  53. # Additional libraries
  54. LIBRARIES = setargv.obj # Expands wildcard characters
  55.  
  56. # Build dependency rules
  57. # ===============================================================
  58. PSCRIPT_DEP = ../../include/pscript.h 
  59.  
  60. AS2PS_DEP = ../../include/pscript.h \
  61.     $(AS2PS_PATH)$(PATHSEP)as2ps.h 
  62. # ===============================================================
  63.  
  64. # Compile the files and build the executable
  65. # ===============================================================
  66. all:    $(PROJECT).exe
  67.  
  68. pscript.obj:    $(PSCRIPT_PATH)$(PATHSEP)pscript.cpp $(PSCRIPT_DEP)
  69.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  70.     $(PSCRIPT_PATH)$(PATHSEP)pscript.cpp
  71.  
  72. as2ps.obj:    $(AS2PS_PATH)$(PATHSEP)as2ps.cpp $(AS2PS_DEP)
  73.     $(CPP) $(COMPILE_ONLY) $(CFLAGS) \
  74.     $(AS2PS_PATH)$(PATHSEP)as2ps.cpp
  75.  
  76. # Make the executable
  77. OBJS = pscript.obj as2ps.obj 
  78.  
  79. $(PROJECT).exe:    $(OBJS)
  80.     $(LINKER) $(LFLAGS) $(OBJS) $(LIBRARIES) /OUT:$@ 
  81. # ===============================================================
  82.  
  83. # ===============================================================
  84. install:
  85.     @echo Installing $(PROJECT) binaries to the bin directory...
  86.     @if exist $(PROJECT).exe copy $(PROJECT).exe $(INSTALL_DIR)
  87. # ===============================================================
  88.  
  89. # Remove OBJS, debug files, and executable after running nmake 
  90. # ===============================================================
  91. clean:
  92.     @echo Removing all .SBR files from working directory...
  93.     if exist *.sbr del *.sbr  
  94.  
  95.     @echo Removing all .VCW files from working directory...
  96.     if exist *.vcw del *.vcw 
  97.  
  98.     @echo Removing all .PDB files from working directory...
  99.     if exist *.pdb del *.pdb 
  100.  
  101.     @echo Removing all .WSP files from working directory...
  102.     if exist *.wsp del *.wsp 
  103.  
  104.     @echo Removing all .BSC files from working directory...
  105.     if exist *.bsc del *.bsc 
  106.  
  107.     @echo Removing all .SBT files from working directory...
  108.     if exist *.sbt del *.sbt 
  109.  
  110.     @echo Removing all .ILK files from working directory...
  111.     if exist *.ilk del *.ilk 
  112.  
  113.     @echo Removing all .IDB files from working directory...
  114.     if exist *.idb del *.idb 
  115.  
  116.     @echo Removing all .MDP files from working directory...
  117.     if exist *.mdp del *.mdp 
  118.  
  119.     @echo Removing all .PCH files from working directory...
  120.     if exist *.pch del *.pch 
  121.  
  122.     @echo Removing all .NCB files from working directory...
  123.     if exist *.ncb del *.ncb 
  124.  
  125.     @echo Removing all .OBJ files from working directory...
  126.     if exist *.obj del *.obj 
  127.  
  128.     @echo Removing the EXECUTABLE file from working directory
  129.     if exist $(PROJECT).exe del $(PROJECT).exe 
  130. # --------------------------------------------------------------- 
  131. #####################
  132. #### End of File ####
  133. #####################
  134.  
  135.  
  136.