Makefile.msvc
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:3k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. # Makefile for avcall
  2. #### Start of system configuration section. ####
  3. # Flags that can be set on the nmake command line:
  4. #   MFLAGS={-ML|-MT|-MD} for defining the compilation model
  5. #     MFLAGS=-ML (the default)  Single-threaded, statically linked - libc.lib
  6. #     MFLAGS=-MT                Multi-threaded, statically linked  - libcmt.lib
  7. #     MFLAGS=-MD                Multi-threaded, dynamically linked - msvcrt.lib
  8. #   DEBUG=1   for compiling with debugging information
  9. # Note that nmake command line flags are automatically passed to subdirectory
  10. # Makefiles. Therefore we don't need to pass them explicitly to subdirectory
  11. # Makefiles, but the subdirectory Makefiles need to have the same defaults.
  12. # Building as a DLL not supported yet.
  13. DLL=0
  14. !if !defined(DEBUG)
  15. DEBUG=0
  16. !endif
  17. !if !defined(MFLAGS)
  18. !if !$(DLL)
  19. MFLAGS=
  20. !else
  21. MFLAGS=-MD
  22. !endif
  23. !endif
  24. !if $(DEBUG)
  25. OPTIMFLAGS = -Od -Z7
  26. !else
  27. OPTIMFLAGS = -D_NDEBUG -O1
  28. !endif
  29. HOST = i386-pc-win32-msvc
  30. CPU = i386
  31. # Directories used by "make":
  32. srcdir = .
  33. # Directories used by "make install":
  34. prefix = /usr/local
  35. local_prefix = /usr/local
  36. exec_prefix = $(prefix)
  37. libdir = $(exec_prefix)/lib
  38. includedir = $(prefix)/include
  39. mandir = $(exec_prefix)/man
  40. # Programs used by "make":
  41. CC = cl
  42. CFLAGS = $(MFLAGS) $(OPTIMFLAGS)
  43. CPP = cl -E
  44. INCLUDES = -I. -I$(srcdir)
  45. AR = lib
  46. AR_FLAGS = /out:
  47. MV = ren
  48. LN = copy
  49. RM = del
  50. # Programs used by "make install":
  51. INSTALL = @INSTALL@
  52. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  53. INSTALL_DATA = @INSTALL_DATA@
  54. #### End of system configuration section. ####
  55. SHELL = /bin/sh
  56. OBJECTS = avcall.obj structcpy.obj
  57. all : $(OBJECTS) avcall.lib avcall.h $(srcdir)/avcall.3 $(srcdir)/avcall.html
  58. avcall.h : avcall.h.msvc
  59. $(RM) avcall.h
  60. $(LN) avcall.h.msvc avcall.h
  61. avcall.obj : avcall-$(CPU).obj
  62. $(RM) avcall.obj
  63. $(LN) avcall-$(CPU).obj avcall.obj
  64. avcall-i386.obj : $(srcdir)/avcall-i386-msvc.c
  65. $(RM) avcall-i386.obj
  66. $(CC) -c $(srcdir)/avcall-i386-msvc.c /Foavcall-i386.obj
  67. structcpy.obj : $(srcdir)/structcpy.c
  68. $(CC) $(CFLAGS) -c $(srcdir)/structcpy.c
  69. !if !$(DLL)
  70. avcall.lib : $(OBJECTS)
  71. $(RM) avcall.lib
  72. $(AR) $(AR_FLAGS)avcall.lib $(OBJECTS)
  73. !else
  74. # avcall.dll and avcall.lib are created together.
  75. avcall.lib : $(OBJECTS)
  76. $(CC) $(MFLAGS) -LD $(OBJECTS)
  77. !endif
  78. tests.obj : $(srcdir)/tests.c avcall.h
  79. $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c
  80. tests.s : $(srcdir)/tests.c avcall.h
  81. $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c /FAs /Fatests.s
  82. tests.exe : tests.obj avcall.lib
  83. $(CC) $(CFLAGS) tests.obj avcall.lib /Fetests.exe
  84. uniq-u.exe : $(srcdir)/uniq-u.c
  85. $(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
  86. $(RM) uniq-u.obj
  87. check : all tests.exe uniq-u.exe
  88. tests.exe > tests.out
  89. uniq-u < tests.out > tests.output.$(HOST)
  90. # You have to check by hand that tests.output.$(HOST) is empty.
  91. mostlyclean : clean
  92. clean : force
  93. $(RM) *.obj *.lib *.exp *.dll core
  94. $(RM) avcall-i386.s
  95. $(RM) tests.obj tests.s tests.exe uniq-u.exe tests.out
  96. distclean : clean
  97. $(RM) config.status config.log config.cache Makefile avcall.h tests.output.*
  98. maintainer-clean : distclean
  99. force :