transmision: upgrade 2.22 -> 2.31
[tomato.git] / release / src / router / gettext / gettext-tools / libgrep / Makefile.msvc
blob2398ef9d405ee193886b3920ad7244d53f3fd044
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
13 !if !defined(DLL)
14 DLL=0
15 !endif
16 !if !defined(DEBUG)
17 DEBUG=0
18 !endif
19 !if !defined(MFLAGS)
20 !if !$(DLL)
21 MFLAGS=
22 !else
23 MFLAGS=-MD
24 !endif
25 !endif
27 # Programs used by "make":
29 CC = cl
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.
33 WARN_CFLAGS = -W1
35 !if !$(DLL)
36 PICFLAGS =
37 !else
38 # "-GD" (msvc5) optimizes for DLL.
39 # mscv4 doesn't know about this flag and ignores it.
40 PICFLAGS = -GD
41 !endif
43 !if $(DEBUG)
44 OPTIMFLAGS = -Od -Z7
45 !else
46 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
47 OPTIMFLAGS = -D_NDEBUG -O1
48 !endif
50 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H
52 INCLUDES = -I. -I.. -I..\lib -I..\intl -I..\windows
54 AR = lib
55 AR_FLAGS = /out:
57 LN = copy
58 RM = -del
60 #### End of system configuration section. ####
62 SHELL = /bin/sh
64 OBJECTS = \
65   kwset.obj \
66   dfa.obj \
67   m-common.obj \
68   m-fgrep.obj \
69   m-regex.obj \
70   hard-locale.obj \
71   regex.obj
73 all : grep.lib
75 kwset.obj : kwset.c
76         $(CC) $(INCLUDES) $(CFLAGS) -c kwset.c
78 dfa.obj : dfa.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
93 regex.obj : regex.c
94         $(CC) $(INCLUDES) $(CFLAGS) -c regex.c
96 grep.lib : $(OBJECTS)
97         -$(RM) grep.lib
98         $(AR) $(AR_FLAGS)grep.lib $(OBJECTS)
100 install : all
102 installdirs :
104 uninstall :
106 check :
108 mostlyclean : clean
110 clean : force
111         $(RM) *.obj
112         $(RM) *.lib
113         $(RM) core
115 distclean : clean
117 maintainer-clean : distclean
119 force :