fix doxygen warning
[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/net ir/debug ir/tv ir/common ir/ident ir/ir \
37                 ir/opt ir/tr ir/ana ir/stat ir/ana2 ir/arch ir/lower \
38                 $(plugin_subdirs)
39
40 ifeq (@enable_external_effects@,yes)
41 build_subdirs += ir/external
42 endif
43
44 build_add_lib := libfirm_xmalloc.a
45
46 subdirs := $(build_subdirs) ir/config
47
48 SOURCES := Makefile.in MakeRules.in MakeTargets\
49            aclocal.m4 config.h.in\
50            config.guess config.sub configure.in \
51            stamp-h.in install-sh README configure
52
53 SHARED_LIB = libfirm.so
54
55 INSTALL_LIBS = libfirm.a $(build_add_lib)
56
57 GENFILES := stamp-h config.log config.cache
58 # config.status config.h.in $(srcdir)/stamp-h.in
59
60 include $(topdir)/MakeRules
61
62 XOFILES += $(addsuffix /subdir.o, $(build_subdirs))
63
64 include $(top_srcdir)/MakeTargets
65
66 # add target firmjni if configured with --enable-firmjni
67 all: firm
68
69 firm: libfirm.a $(build_add_lib)
70
71 shared: $(SHARED_LIB)
72
73 $(OFILES): config.h Makefile
74
75 $(XOFILES): subdir_all
76
77 libfirm.a: $(XOFILES) $(OFILES)
78         $(AR) $(ARFLAGS) $@.new $^
79         mv -f $@.new $@
80         $(RANLIB) $@
81
82 libfirm_xmalloc.a: subdir_all ir/adt/xmalloc.o
83         $(AR) $(ARFLAGS) $@.new ir/adt/xmalloc.o
84         mv -f $@.new $@
85
86 # dont know about xml here
87 libfirm.so: $(XOFILES)
88         ld -Bshareable -o ./libfirm.so $(XOFILES) -lm $(LDFLAGS) $(LIBS)
89
90 testprograms:   libfirm.a
91         $(MAKE) -C testprograms
92
93 firmjni:: libfirm.a
94         $(MAKE) -C firmjni
95
96 # gernerate program documentation
97 .PHONY: autodoc
98 autodoc: $(DOXYFILE)
99         $(DOXYGEN) $(DOXYFILE)
100
101 #${srcdir}/configure: configure.in aclocal.m4
102 $(srcdir)/configure: configure.in
103         cd $(srcdir) && autoconf
104
105 # autoheader might not change config.h.in, so touch a stamp file.
106 $(srcdir)/config.h.in: stamp-h.in
107
108 #${srcdir\1c2/stamp-h.in: configure.in aclocal.m4 acconfig.h \
109 $(srcdir)/stamp-h.in: configure.in
110         cd $(srcdir) && autoheader
111         echo timestamp > $(srcdir)/stamp-h.in
112
113 config.h: stamp-h
114 stamp-h: config.h.in config.status
115         ./config.status
116
117 config.status: configure
118         ./config.status --recheck
119
120 # add target test-firmjni if configured with --enable-firmjni
121 test::
122         $(MAKE) -C testprograms test;
123
124 test-firmjni::
125         $(MAKE) -C firmjni test;
126
127 test-reference::
128         $(MAKE) -C testprograms reference;
129
130 test-clean:
131         $(MAKE) -C testprograms realclean
132         $(MAKE) -C firmjni/testprograms clean;