1# This is the developer's makefile, not the user's makefile. 2# Don't use it unless you know exactly what you do! 3 4SHELL = /bin/sh 5MAKE = make 6AUTOCONF = autoconf-2.60 7AUTOHEADER = autoheader-2.60 8ACLOCAL = aclocal-1.9 9CP = cp 10RM = rm -f 11 12all : configures config.h_vms config.h.msvc include/libcharset.h.msvc-shared include/localcharset.h.build.in include/localcharset.h.msvc-shared 13 14autoconf/aclocal.m4 : $(wildcard m4/*.m4) 15 $(ACLOCAL) -I m4 --output=$@ 16 17configures : configure config.h.in 18 19configure : configure.ac autoconf/aclocal.m4 20 $(AUTOCONF) --include autoconf 21 22config.h.in : configure.ac autoconf/aclocal.m4 23 $(AUTOHEADER) --include autoconf 24 touch config.h.in 25 26config.h_vms : config.h.in 27 sed -e 's/#undef HAVE_DLFCN_H$$/#define HAVE_DLFCN_H 1/' \ 28 -e 's/#undef HAVE_INTTYPES_H$$/#define HAVE_INTTYPES_H 1/' \ 29 -e 's/#undef HAVE_LANGINFO_CODESET$$/#define HAVE_LANGINFO_CODESET 1/' \ 30 -e 's/#undef HAVE_MEMORY_H$$/#define HAVE_MEMORY_H 1/' \ 31 -e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \ 32 -e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \ 33 -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \ 34 -e 's/#undef HAVE_STRINGS_H$$/#define HAVE_STRINGS_H 1/' \ 35 -e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \ 36 -e 's/#undef HAVE_SYS_STAT_H$$/#define HAVE_SYS_STAT_H 1/' \ 37 -e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \ 38 -e 's/#undef HAVE_UNISTD_H$$/#define HAVE_UNISTD_H 1/' \ 39 -e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \ 40 -e '/#undef INSTALLPREFIX$$/d' \ 41 < $< > $@ 42 43config.h.msvc : config.h.in 44 sed -e 's/#undef HAVE_SETLOCALE$$/#define HAVE_SETLOCALE 1/' \ 45 -e 's/#undef HAVE_STDDEF_H$$/#define HAVE_STDDEF_H 1/' \ 46 -e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \ 47 -e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \ 48 -e '/#undef INSTALLPREFIX$$/d' \ 49 < $< > $@ 50 51include/libcharset.h.msvc-shared : include/libcharset.h.in windows/dllexport.h 52 sed -e 's/extern \([^"]\)/extern LIBCHARSET_DLL_EXPORTED \1/' \ 53 -e '/#define _LIBCHARSET_H/r windows/dllexport.h' \ 54 < $< > $@ 55 56include/localcharset.h.build.in : include/localcharset.h.in include/export.h 57 sed -e 's/extern \([^"]\)/extern LIBCHARSET_DLL_EXPORTED \1/' \ 58 -e '/#define _LOCALCHARSET_H/r include/export.h' \ 59 < $< > $@ 60 61include/localcharset.h.msvc-shared : include/localcharset.h.in windows/dllexport.h 62 sed -e 's/extern \([^"]\)/extern LIBCHARSET_DLL_EXPORTED \1/' \ 63 -e '/#define _LOCALCHARSET_H/r windows/dllexport.h' \ 64 < $< > $@ 65 66force : 67