Merge branch 'master' of /home/tmbinc/enigma2-git
[enigma2.git] / main / Makefile.am
1 INCLUDES = \
2         -I$(top_srcdir)/include
3
4 bin_PROGRAMS = enigma2
5
6 enigma2_SOURCES = \
7         enigma.cpp bsod.cpp
8
9 CLEANFILES = version.h
10
11 bsod.o: version.h
12
13 enigma.o: version.h
14
15 # when there is no ../CVS/Entries, don't worry.
16 ../CVS/Entries:
17
18 ../CVS/Root:
19
20 # this depends on Entries and not on Tag because Tag isn't always there.
21 # Entries, however, will change then Tag is changed, so everything is fine.
22 version.h: # ../CVS/Entries ../CVS/Root
23         > version.h
24         if [ -f ../CVS/Tag ]; then echo "#define ENIGMA2_CHECKOUT_TAG \"`cat ../CVS/Tag`\"" >> version.h; fi
25         if [ -f ../CVS/Root ]; then echo "#define ENIGMA2_CHECKOUT_ROOT \"`cat ../CVS/Root`\"" >> version.h; fi
26
27 enigma2_LDADD_WHOLE = \
28         $(top_builddir)/lib/actions/libenigma_actions.a \
29         $(top_builddir)/lib/base/libenigma_base.a \
30         $(top_builddir)/lib/components/libenigma_components.a \
31         $(top_builddir)/lib/driver/libenigma_driver.a \
32         $(top_builddir)/lib/mmi/libenigma_mmi.a \
33         $(top_builddir)/lib/dvb/libenigma_dvb.a \
34         $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.a \
35         $(top_builddir)/lib/gdi/libenigma_gdi.a \
36         $(top_builddir)/lib/gui/libenigma_gui.a \
37         $(top_builddir)/lib/python/libenigma_python.a \
38         $(top_builddir)/lib/nav/libenigma_nav.a \
39         $(top_builddir)/lib/service/libenigma_service.a
40
41 enigma2_LDADD = \
42         @FREETYPE_LIBS@ \
43         @ID3TAG_LIBS@ \
44         @MAD_LIBS@ \
45         @PNG_LIBS@ \
46         @SDL_LIBS@ \
47         @SIGC_LIBS@ \
48         @DVBSI_LIBS@ \
49         @FRIBIDI_LIBS@ \
50         @GSTREAMER_LIBS@ \
51         @GSTREAMERPBUTILS_LIBS@ \
52         @JPEG_LIBS@ \
53         @LIBUNGIF_LIBS@ \
54         @XML2_LIBS@ \
55         @XMLCCWRAP_LIBS@ \
56         -ldl -lpthread -lcrypt -lresolv -lrt
57
58 enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE)
59 #       @rm -f enigma2$(EXEEXT)
60         $(CXXLINK) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS)
61 #       g++ -o enigma2$(EXEEXT) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS)