3
# The auto tools MUST be run in the following order:
6
# 2. libtoolize (if you use libtool)
8
# 4. autoheader (if you use autoheader)
9
# 5. automake (if you use automake)
11
# The following makefile runs these in the correct order according to their
12
# dependancies. It also makes up for Mac OSX's fucked-upped-ness.
16
ifneq ($(shell uname -s), Darwin)
17
LIBTOOLIZE = libtoolize
19
# Fuck Apple! Why the hell did they rename libtoolize????
20
LIBTOOLIZE = glibtoolize
21
# Fink sucks as well, but this seems necessary.
22
ACLOCAL_INC = -I /sw/share/aclocal
25
genfiles : config.status
26
(cd src && make genfiles)
27
(cd tests && make genfiles)
29
config.status: configure src/config.h.in Makefile.in src/Makefile.in tests/Makefile.in
30
./configure --enable-gcc-werror
35
Makefile.in: Makefile.am
36
automake --copy --add-missing
38
src/Makefile.in: src/Makefile.am
39
automake --copy --add-missing
41
tests/Makefile.in: tests/Makefile.am
42
automake --copy --add-missing
44
src/config.h.in: configure
47
libtool ltmain.sh: aclocal.m4
48
$(LIBTOOLIZE) --copy --force
50
# Need to re-run aclocal whenever acinclude.m4 is modified.
51
aclocal.m4: acinclude.m4
52
$(ACLOCAL) $(ACLOCAL_INC)
55
rm -f libtool ltmain.sh aclocal.m4 Makefile.in src/config.h.in config.cache config.status
56
find . -name .deps -type d -exec rm -rf {} \;
59
# Do not edit or modify anything in this comment block.
60
# The arch-tag line is a file identity tag for the GNU Arch
61
# revision control system.
63
# arch-tag: 2b02bfd0-d5ed-489b-a554-2bf36903cca9