1 # Makefile for libcharset/lib
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 # Note that nmake command line flags are automatically passed to subdirectory
14 # Makefiles. Therefore we don't need to pass them explicitly to subdirectory
15 # Makefiles, but the subdirectory Makefiles need to have the same defaults.
30 # Directories used by "make":
33 # Directories used by "make install":
35 local_prefix = /usr/local
36 exec_prefix = $(prefix)
37 libdir = $(exec_prefix)/lib
39 # Programs used by "make":
43 # Set to -W3 if you want to see maximum amount of warnings, including stupid
44 # ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
50 # "-GD" (msvc5) optimizes for DLL.
51 # mscv4 doesn't know about this flag and ignores it.
58 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
59 OPTIMFLAGS = -D_NDEBUG -O1
62 # -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_DLL_EXPORTED macro.
63 CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(PICFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DBUILDING_LIBCHARSET
65 INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/..
73 # Programs used by "make install":
75 INSTALL_PROGRAM = @INSTALL_PROGRAM@
76 INSTALL_DATA = @INSTALL_DATA@
78 #### End of system configuration section. ####
82 SOURCES = $(srcdir)/localcharset.c
84 OBJECTS = localcharset.obj
86 # Set to charset.res in order to include the resources information.
88 # RESOURCES = charset.res
92 localcharset.obj : $(srcdir)/localcharset.c
93 $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/localcharset.c
97 charset.lib : $(OBJECTS)
99 $(AR) $(AR_FLAGS)charset.lib $(OBJECTS)
103 # charset.dll and iconv.lib are created together.
104 charset.lib : $(OBJECTS) $(RESOURCES)
105 $(CC) $(MFLAGS) -LD $(OBJECTS) $(RESOURCES)
107 #charset.res : $(srcdir)/../windows/charset.rc
108 # rc -Fo charset.res $(srcdir)/../windows/charset.rc
127 maintainer-clean : distclean