1 # -*- Makefile -*- for gettext
3 #### Start of system configuration section. ####
5 # Flags that can be set on the nmake command line:
6 # DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
7 # Note that this works only with MFLAGS=-MD.
8 # MFLAGS={-ML|-MT|-MD} for defining the compilation model
9 # MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
10 # MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
11 # MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
12 # DEBUG=1 for compiling with debugging information
13 # PREFIX=Some\Directory Base directory for installation
14 # IIPREFIX=Some\\Directory Same thing with doubled backslashes
15 # Note that nmake command line flags are automatically passed to subdirectory
16 # Makefiles. Therefore we don't need to pass them explicitly to subdirectory
17 # Makefiles, but the subdirectory Makefiles need to have the same defaults.
34 !if !defined(IIPREFIX)
38 # Directories used by "make install":
40 exec_prefix = $(prefix)
41 bindir = $(exec_prefix)\bin
42 libdir = $(exec_prefix)\lib
43 includedir = $(prefix)\include
44 datadir = $(prefix)\share
45 localedir = $(datadir)\locale
46 pkgdatadir = $(datadir)\gettext
47 mandir = $(datadir)\man
48 docdir = $(datadir)\doc\gettext
49 emacsdir = $(datadir)\emacs
50 lispdir = $(emacsdir)\site-lisp
52 # Programs used by "make":
57 # Set to -W3 if you want to see maximum amount of warnings, including stupid
58 # ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
64 # "-GD" (msvc5) optimizes for DLL.
65 # mscv4 doesn't know about this flag and ignores it.
72 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
73 OPTIMFLAGS = -D_NDEBUG -O1
79 # Programs used by "make install":
81 INSTALL_PROGRAM = copy
84 #### End of system configuration section. ####
90 $(MAKE) -f Makefile.msvc all
93 $(MAKE) -f Makefile.msvc all
98 $(MAKE) -f Makefile.msvc install
101 $(MAKE) -f Makefile.msvc install
106 $(MAKE) -f Makefile.msvc installdirs
109 $(MAKE) -f Makefile.msvc installdirs
114 $(MAKE) -f Makefile.msvc uninstall
117 $(MAKE) -f Makefile.msvc uninstall
122 $(MAKE) -f Makefile.msvc check
125 $(MAKE) -f Makefile.msvc check
130 $(MAKE) -f Makefile.msvc mostlyclean
133 $(MAKE) -f Makefile.msvc mostlyclean
138 $(MAKE) -f Makefile.msvc clean
141 $(MAKE) -f Makefile.msvc clean
146 $(MAKE) -f Makefile.msvc distclean
149 $(MAKE) -f Makefile.msvc distclean
151 $(RM) config.status config.log config.cache Makefile
153 maintainer-clean : force
155 $(MAKE) -f Makefile.msvc maintainer-clean
158 $(MAKE) -f Makefile.msvc maintainer-clean
160 $(RM) config.status config.log config.cache Makefile