2007-05-14 09:55:24 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2004-05-27 11:22:39 +00:00
|
|
|
# The auto tools MUST be run in the following order:
|
|
|
|
#
|
|
|
|
# 1. aclocal
|
|
|
|
# 2. libtoolize (if you use libtool)
|
|
|
|
# 3. autoconf
|
|
|
|
# 4. autoheader (if you use autoheader)
|
|
|
|
# 5. automake (if you use automake)
|
|
|
|
#
|
|
|
|
# The following makefile runs these in the correct order according to their
|
|
|
|
# dependancies. It also makes up for Mac OSX's fucked-upped-ness.
|
|
|
|
|
|
|
|
ACLOCAL = aclocal
|
|
|
|
|
2004-05-25 09:42:14 +00:00
|
|
|
ifneq ($(shell uname -s), Darwin)
|
|
|
|
LIBTOOLIZE = libtoolize
|
|
|
|
else
|
|
|
|
# Fuck Apple! Why the hell did they rename libtoolize????
|
|
|
|
LIBTOOLIZE = glibtoolize
|
2004-05-27 11:22:39 +00:00
|
|
|
# Fink sucks as well, but this seems necessary.
|
|
|
|
ACLOCAL_INC = -I /sw/share/aclocal
|
2004-05-25 09:42:14 +00:00
|
|
|
endif
|
|
|
|
|
2005-02-07 23:42:36 +00:00
|
|
|
genfiles : config.status
|
|
|
|
(cd src && make genfiles)
|
|
|
|
(cd tests && make genfiles)
|
|
|
|
|
2004-05-27 11:22:39 +00:00
|
|
|
config.status: configure src/config.h.in Makefile.in src/Makefile.in tests/Makefile.in
|
2004-04-25 04:52:54 +00:00
|
|
|
./configure --enable-gcc-werror
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2005-02-07 23:42:36 +00:00
|
|
|
configure: ltmain.sh
|
2004-03-28 00:42:36 +00:00
|
|
|
autoconf
|
2004-03-14 04:57:36 +00:00
|
|
|
|
2004-05-27 11:22:39 +00:00
|
|
|
Makefile.in: Makefile.am
|
|
|
|
automake --copy --add-missing
|
|
|
|
|
|
|
|
src/Makefile.in: src/Makefile.am
|
|
|
|
automake --copy --add-missing
|
|
|
|
|
|
|
|
tests/Makefile.in: tests/Makefile.am
|
|
|
|
automake --copy --add-missing
|
|
|
|
|
2005-02-07 23:42:36 +00:00
|
|
|
src/config.h.in: configure
|
2007-05-14 09:55:24 +00:00
|
|
|
autoheader
|
|
|
|
|
|
|
|
libtool ltmain.sh: aclocal.m4
|
2004-05-27 11:22:39 +00:00
|
|
|
$(LIBTOOLIZE) --copy --force
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-01-24 04:56:35 +00:00
|
|
|
# Need to re-run aclocal whenever acinclude.m4 is modified.
|
|
|
|
aclocal.m4: acinclude.m4
|
2004-05-27 11:22:39 +00:00
|
|
|
$(ACLOCAL) $(ACLOCAL_INC)
|
2004-01-21 07:50:16 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
clean:
|
2004-05-27 11:22:39 +00:00
|
|
|
rm -f libtool ltmain.sh aclocal.m4 Makefile.in src/config.h.in config.cache config.status
|
2004-01-21 07:50:16 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-01-21 07:50:16 +00:00
|
|
|
# Do not edit or modify anything in this comment block.
|
|
|
|
# The arch-tag line is a file identity tag for the GNU Arch
|
|
|
|
# revision control system.
|
|
|
|
#
|
|
|
|
# arch-tag: 2b02bfd0-d5ed-489b-a554-2bf36903cca9
|