1 # Makefile for libiconv/src
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
30 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
31 OPTIMFLAGS = -D_NDEBUG -O1
34 # Set to -W3 if you want to see maximum amount of warnings, including stupid
35 # ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
38 # Directories used by "make":
41 # Programs used by "make":
43 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
44 INCLUDES = -I. -I$(srcdir) -I..\include -I$(srcdir)\..\include
47 #### End of system configuration section. ####
53 iconv.exe : $(srcdir)/iconv.c ../lib/iconv.lib
54 $(CC) $(CFLAGS) $(INCLUDES) -I..\lib $(srcdir)/iconv.c ../lib/iconv.lib -Feiconv.exe
57 copy ..\lib\iconv.dll iconv.dll
73 maintainer-clean : distclean