1 # Makefile for libiconv
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 $(MAKE) -f Makefile.msvc all
50 $(LN) libcharset\include\libcharset.h lib\libcharset.h
52 $(LN) include\iconv.h.msvc-static include\iconv.h
54 $(LN) include\iconv.h.msvc-shared include\iconv.h
57 $(MAKE) -f Makefile.msvc all
60 $(MAKE) -f Makefile.msvc all
63 # $(MAKE) -f Makefile.msvc all
66 $(MAKE) -f Makefile.msvc all
70 cd libcharset; $(MAKE) -r install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
71 cd lib; $(MAKE) -r install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
72 cd src; $(MAKE) -r install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
73 if [ ! -d $(prefix) ] ; then mkdir $(prefix) ; fi
74 if [ ! -d $(exec_prefix) ] ; then mkdir $(exec_prefix) ; fi
75 if [ ! -d $(includedir) ] ; then mkdir $(includedir) ; fi
76 $(INSTALL_DATA) include/iconv.h $(includedir)/iconv.h
77 cd man; $(MAKE) -r install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
80 cd libcharset; $(MAKE) -r installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
81 cd lib; $(MAKE) -r installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
82 cd src; $(MAKE) -r installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
83 if [ ! -d $(prefix) ] ; then mkdir $(prefix) ; fi
84 if [ ! -d $(exec_prefix) ] ; then mkdir $(exec_prefix) ; fi
85 if [ ! -d $(includedir) ] ; then mkdir $(includedir) ; fi
86 cd man; $(MAKE) -r installdirs prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
89 cd libcharset; $(MAKE) -r uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
90 cd lib; $(MAKE) -r uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
91 cd src; $(MAKE) -r uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)'
92 $(RM) $(includedir)/iconv.h
93 cd man; $(MAKE) -r uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)'
97 $(MAKE) -f Makefile.msvc check
100 $(MAKE) -f Makefile.msvc check
103 $(MAKE) -f Makefile.msvc check
106 # $(MAKE) -f Makefile.msvc check
109 $(MAKE) -f Makefile.msvc check
114 $(MAKE) -f Makefile.msvc mostlyclean
116 $(RM) lib\libcharset.h
118 $(MAKE) -f Makefile.msvc mostlyclean
121 $(MAKE) -f Makefile.msvc mostlyclean
124 # $(MAKE) -f Makefile.msvc mostlyclean
127 $(MAKE) -f Makefile.msvc mostlyclean
132 $(MAKE) -f Makefile.msvc clean
134 $(RM) lib\libcharset.h
136 $(MAKE) -f Makefile.msvc clean
139 $(MAKE) -f Makefile.msvc clean
142 # $(MAKE) -f Makefile.msvc clean
145 $(MAKE) -f Makefile.msvc clean
150 $(MAKE) -f Makefile.msvc distclean
152 $(RM) lib\libcharset.h
154 $(MAKE) -f Makefile.msvc distclean
157 $(MAKE) -f Makefile.msvc distclean
160 # $(MAKE) -f Makefile.msvc distclean
163 $(MAKE) -f Makefile.msvc distclean
165 $(RM) config.status config.log config.cache Makefile
166 $(RM) include\iconv.h
168 maintainer-clean : force
170 $(MAKE) -f Makefile.msvc maintainer-clean
172 $(RM) lib\libcharset.h
174 $(MAKE) -f Makefile.msvc maintainer-clean
177 $(MAKE) -f Makefile.msvc maintainer-clean
180 # $(MAKE) -f Makefile.msvc maintainer-clean
183 $(MAKE) -f Makefile.msvc maintainer-clean
185 $(RM) config.status config.log config.cache Makefile
186 $(RM) include\iconv.h