fixed doxygen docu
[libfirm] / Makefile.in
1 #
2 # Project:     libFIRM
3 # File name:   Makefile.in
4 # Purpose:     Top level Makefile
5 # Author:      Till Riedel
6 # Modified by:
7 # Created:
8 # CVS-ID:      $Id$
9 # Copyright:   (c) 2002-2003 Universität Karlsruhe
10 # Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
11 #
12
13
14 # top directory of the source tree
15 top_srcdir := @top_srcdir@
16 # directory with the sources for this directory
17 srcdir := @srcdir@
18 # top directory of the configured tree
19 topdir := .
20 # subdirectory under topdir
21 subdir := .
22 # do we want statistics
23 enable_statistics := @enable_statistics@
24 # do we want external description of effects
25 enable_external_effects := @enable_external_effects@
26 # do we want to use the libcore for debug and ADT support
27 enable_libcore := @enable_libcore@
28
29 # suck in values for the linking procedure:
30 LDFLAGS                 = @LDFLAGS@
31 LIBS                    = @LIBS@
32
33 # plugin subdirectories
34 plugin_subdirs := @plugin_subdirs@
35
36 build_subdirs := ir/adt ir/debug ir/tv ir/common ir/ident ir/ir \
37                 ir/opt ir/tr ir/ana ir/stat ir/ana2 ir/arch \
38                 $(plugin_subdirs)
39
40 ifeq (@enable_external_effects@,yes)
41 build_subdirs += ir/external
42 endif
43
44 subdirs := $(build_subdirs) ir/config
45
46 SOURCES := Makefile.in MakeRules.in MakeTargets\
47            aclocal.m4 config.h.in\
48            config.guess config.sub configure.in \
49            stamp-h.in install-sh README configure
50
51 SHARED_LIB = libfirm.so
52
53 INSTALL_LIBS = libfirm.a
54
55 GENFILES := stamp-h config.log config.cache
56 # config.status config.h.in $(srcdir)/stamp-h.in
57
58 include $(topdir)/MakeRules
59
60 XOFILES += $(addsuffix /subdir.o, $(build_subdirs))
61
62 include $(top_srcdir)/MakeTargets
63
64 # add target firmjni if configured with --enable-firmjni
65 all: firm
66
67 firm: libfirm.a
68
69 shared: $(SHARED_LIB)
70
71 $(OFILES): config.h Makefile
72
73 $(XOFILES): subdir_all
74
75 libfirm.a: $(XOFILES) $(OFILES)
76         $(AR) $(ARFLAGS) $@.new $(XOFILES) $(OFILES)
77         mv -f $@.new $@
78         $(RANLIB) $@
79
80 # dont know about xml here
81 libfirm.so: subdir_all $(XOFILES) $(OFILES)
82         ld -Bshareable -o ./libfirm.so $(XOFILES) -lm $(LDFLAGS) $(LIBS)
83
84 testprograms:   libfirm.a
85         $(MAKE) -C testprograms
86
87 firmjni:: libfirm.a
88         $(MAKE) -C firmjni
89
90 # gernerate program documentation
91 .PHONY: autodoc
92 autodoc: $(DOXYFILE)
93         $(DOXYGEN) $(DOXYFILE)
94
95 #${srcdir}/configure: configure.in aclocal.m4
96 $(srcdir)/configure: configure.in
97         cd $(srcdir) && autoconf
98
99 # autoheader might not change config.h.in, so touch a stamp file.
100 $(srcdir)/config.h.in: stamp-h.in
101
102 #${srcdir\1c2/stamp-h.in: configure.in aclocal.m4 acconfig.h \
103 $(srcdir)/stamp-h.in: configure.in
104         cd $(srcdir) && autoheader
105         echo timestamp > $(srcdir)/stamp-h.in
106
107 config.h: stamp-h
108 stamp-h: config.h.in config.status
109         ./config.status
110
111 config.status: configure
112         ./config.status --recheck
113
114 # add target test-firmjni if configured with --enable-firmjni
115 test::
116         $(MAKE) -C testprograms test;
117
118 test-firmjni::
119         $(MAKE) -C firmjni test;
120
121 test-reference::
122         $(MAKE) -C testprograms reference;
123
124 test-clean:
125         $(MAKE) -C testprograms realclean
126         $(MAKE) -C firmjni/testprograms clean;