1 # -*- Makefile -*- for gettext-tools/libuniname
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..\lib -I..\windows
60 #### End of system configuration section. ####
68 uniname.obj : uniname.c
69 $(CC) $(INCLUDES) $(CFLAGS) -c uniname.c
71 uniname.lib : $(OBJECTS)
73 $(AR) $(AR_FLAGS)uniname.lib $(OBJECTS)
92 maintainer-clean : distclean