1 # Makefile for libcharset
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 install":
32 local_prefix = /usr/local
33 exec_prefix = $(prefix)
34 libdir = $(exec_prefix)/lib
35 includedir = $(prefix)/include
36 mandir = $(prefix)/man
38 # Programs used by "make":
42 #### End of system configuration section. ####
48 $(LN) include\libcharset.h.in include\libcharset.h
50 $(LN) include\libcharset.h.msvc-shared include\libcharset.h
53 $(MAKE) -f Makefile.msvc all
56 config.h : config.h.msvc
58 $(LN) config.h.msvc config.h
61 cd lib; $(MAKE) -r install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
62 $(MKINSTALLDIRS) $(includedir)
63 $(INSTALL_DATA) include/libcharset.h $(includedir)/libcharset.h
66 cd lib; $(MAKE) -r installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
67 $(MKINSTALLDIRS) $(includedir)
70 cd lib; $(MAKE) -r uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
71 $(RM) $(includedir)/libcharset.h
75 $(MAKE) -f Makefile.msvc check
80 $(MAKE) -f Makefile.msvc mostlyclean
85 $(MAKE) -f Makefile.msvc clean
90 $(MAKE) -f Makefile.msvc distclean
92 $(RM) include\libcharset.h
93 $(RM) config.status config.log config.cache Makefile config.h
95 maintainer-clean : force
97 $(MAKE) -f Makefile.msvc maintainer-clean
99 $(RM) include\libcharset.h
100 $(RM) config.status config.log config.cache Makefile config.h