1 # -*- Makefile -*- for gettext-tools/libgrep
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
27 # Programs used by "make":
31 # Set to -W3 if you want to see maximum amount of warnings, including stupid
32 # ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
38 # "-GD" (msvc5) optimizes for DLL.
39 # mscv4 doesn't know about this flag and ignores it.
46 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
47 OPTIMFLAGS = -D_NDEBUG -O1
50 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H
52 INCLUDES = -I. -I.. -I..\lib -I..\intl -I..\windows
60 #### End of system configuration section. ####
76 $(CC) $(INCLUDES) $(CFLAGS) -c kwset.c
79 $(CC) $(INCLUDES) $(CFLAGS) -c dfa.c
81 m-common.obj : m-common.c
82 $(CC) $(INCLUDES) $(CFLAGS) -c m-common.c
84 m-fgrep.obj : m-fgrep.c
85 $(CC) $(INCLUDES) $(CFLAGS) -c m-fgrep.c
87 m-regex.obj : m-regex.c
88 $(CC) $(INCLUDES) $(CFLAGS) -c m-regex.c
90 hard-locale.obj : hard-locale.c
91 $(CC) $(INCLUDES) $(CFLAGS) -c hard-locale.c
94 $(CC) $(INCLUDES) $(CFLAGS) -c regex.c
98 $(AR) $(AR_FLAGS)grep.lib $(OBJECTS)
117 maintainer-clean : distclean