1 # -*- Makefile -*- for gettext-runtime/lib
3 #### Start of system configuration section. ####
5 # Flags that can be set on the nmake command line:
6 # MFLAGS={-ML|-MT|-MD} for defining the compilation model
7 # MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
8 # MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
9 # MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
10 # DEBUG=1 for compiling with debugging information
11 # PREFIX=Some\Directory Base directory for installation
22 # Directories used by "make install":
24 includedir = $(prefix)\include
26 # Programs used by "make":
30 # Set to -W3 if you want to see maximum amount of warnings, including stupid
31 # ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
37 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
38 OPTIMFLAGS = -D_NDEBUG -O1
41 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DDEPENDS_ON_LIBINTL=1
43 INCLUDES = -I. -I.. -I..\intl -I..\..\gettext-tools\lib -I..\..\gettext-tools\windows -I$(includedir)
51 #### End of system configuration section. ####
55 OBJECTS = basename.obj closeout.obj error.obj fwriteerror.obj getopt.obj getopt1.obj progname.obj progreloc.obj relocatable.obj xmalloc.obj xstrdup.obj
59 basename.obj : ..\..\gettext-tools\lib\basename.c
60 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\basename.c
62 closeout.obj : ..\..\gettext-tools\lib\closeout.c
63 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\closeout.c
65 error.obj : ..\..\gettext-tools\lib\error.c
66 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\error.c
68 fwriteerror.obj : ..\..\gettext-tools\lib\fwriteerror.c
69 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\fwriteerror.c
71 getopt.obj : ..\..\gettext-tools\lib\getopt.c
72 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\getopt.c
74 getopt1.obj : ..\..\gettext-tools\lib\getopt1.c
75 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\getopt1.c
77 progname.obj : ..\..\gettext-tools\lib\progname.c
78 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\progname.c
80 progreloc.obj : ..\..\gettext-tools\lib\progreloc.c
81 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\progreloc.c
83 relocatable.obj : ..\..\gettext-tools\lib\relocatable.c
84 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\relocatable.c
86 xmalloc.obj : ..\..\gettext-tools\lib\xmalloc.c
87 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\xmalloc.c
89 xstrdup.obj : ..\..\gettext-tools\lib\xstrdup.c
90 $(CC) $(INCLUDES) $(CFLAGS) -c ..\..\gettext-tools\lib\xstrdup.c
94 $(AR) $(AR_FLAGS)grt.lib $(OBJECTS)
113 maintainer-clean : distclean