convert About screen to source/renderer system. Change names a bit, add enigma versio...
[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 bsod.o: version.h
10
11 # when there is no ../CVS/Entries, don't worry.
12 ../CVS/Entries:
13
14 ../CVS/Root:
15
16 # this depends on Entries and not on Tag because Tag isn't always there.
17 # Entries, however, will change then Tag is changed, so everything is fine.
18 version.h: ../CVS/Entries ../CVS/Root
19         > version.h
20         if [ -f ../CVS/Tag ]; then echo "#define ENIGMA2_CHECKOUT_TAG \"`cat ../CVS/Tag`\"" >> version.h; fi
21         if [ -f ../CVS/Root ]; then echo "#define ENIGMA2_CHECKOUT_ROOT \"`cat ../CVS/Root`\"" >> version.h; fi
22
23 enigma2_LDADD_WHOLE = \
24         $(top_builddir)/lib/actions/libenigma_actions.a \
25         $(top_builddir)/lib/base/libenigma_base.a \
26         $(top_builddir)/lib/components/libenigma_components.a \
27         $(top_builddir)/lib/driver/libenigma_driver.a \
28         $(top_builddir)/lib/dvb/libenigma_dvb.a \
29         $(top_builddir)/lib/dvb_ci/libenigma_dvb_ci.a \
30         $(top_builddir)/lib/gdi/libenigma_gdi.a \
31         $(top_builddir)/lib/gui/libenigma_gui.a \
32         $(top_builddir)/lib/python/libenigma_python.a \
33         $(top_builddir)/lib/nav/libenigma_nav.a \
34         $(top_builddir)/lib/service/libenigma_service.a \
35         $(top_builddir)/lib/xml/libenigma_xml.a
36
37 enigma2_LDADD = \
38         @FREETYPE_LIBS@ \
39         @ID3TAG_LIBS@ \
40         @MAD_LIBS@ \
41         @PNG_LIBS@ \
42         @SIGC_LIBS@ \
43         @DVBSI_LIBS@ \
44         @FRIBIDI_LIBS@ \
45         @GSTREAMER_LIBS@ \
46         @JPEG_LIBS@ \
47         @LIBUNGIF_LIBS@ \
48         -ldl -lpthread -lcrypt -lresolv -lxml2
49
50 enigma2$(EXEEXT): $(enigma2_OBJECTS) $(enigma2_DEPENDENCIES) $(enigma2_LDADD_WHOLE)
51 #       @rm -f enigma2$(EXEEXT)
52         $(CXXLINK) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS)
53 #       g++ -o enigma2$(EXEEXT) $(enigma2_LDFLAGS) $(enigma2_OBJECTS) -Wl,--export-dynamic -Wl,--whole-archive $(enigma2_LDADD_WHOLE) -Wl,--no-whole-archive $(enigma2_LDADD) $(LIBS)