Elementary: Changed build order to alphabetical order.
[framework/uifw/elementary.git] / src / bin / Makefile.am
1 AUTOMAKE_OPTIONS = 1.4 foreign
2
3 MAINTAINERCLEANFILES = Makefile.in
4
5 AM_CPPFLAGS = \
6 -I$(top_srcdir) \
7 -I$(top_srcdir)/src/lib \
8 -I$(top_builddir)/src/lib \
9 -I$(top_srcdir)/src/bin \
10 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
11 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
12 @ELEMENTARY_CFLAGS@ \
13 @ELEMENTARY_X_CFLAGS@ \
14 @ELEMENTARY_FB_CFLAGS@ \
15 @ELEMENTARY_WIN32_CFLAGS@ \
16 @ELEMENTARY_WINCE_CFLAGS@ \
17 @ELEMENTARY_EDBUS_CFLAGS@ \
18 @ELEMENTARY_EFREET_CFLAGS@ \
19 @ELEMENTARY_EWEATHER_CFLAGS@ \
20 @ELEMENTARY_ETHUMB_CFLAGS@
21
22 if HAVE_EIO
23 AM_CPPFLAGS += -DHAVE_EIO @EIO_CFLAGS@
24 endif
25
26 if ELEMENTARY_WINDOWS_BUILD
27 AM_CPPFLAGS += -DELEMENTARY_BUILD
28 endif
29
30 bin_PROGRAMS = @ELEMENTARY_TEST_PRG@ @ELEMENTARY_CONFIG_PRG@
31 if BUILD_QUICKLAUNCH
32 bin_PROGRAMS += elementary_quicklaunch elementary_run elementary_testql
33 endif
34
35 EXTRA_PROGRAMS = elementary_test elementary_config
36
37 elementary_test_SOURCES = \
38 test_actionslider.c \
39 test_anchorblock.c \
40 test_anchorview.c \
41 test_anim.c \
42 test_bg.c \
43 test_box.c \
44 test_bubble.c \
45 test_button.c \
46 test.c \
47 test_calendar.c \
48 test_check.c \
49 test_clock.c \
50 test_colorselector.c \
51 test_conform.c \
52 test_ctxpopup.c \
53 test_cursor.c \
54 test_diskselector.c \
55 test_entry.c \
56 test_fileselector_button.c \
57 test_fileselector.c \
58 test_fileselector_entry.c \
59 test_flip.c \
60 test_flip_page.c \
61 test_flipselector.c \
62 test_floating.c \
63 test_focus2.c \
64 test_focus3.c \
65 test_focus.c \
66 test_gengrid.c \
67 test_genlist.c \
68 test_glview.c \
69 test_grid.c \
70 test_hover.c \
71 test_hoversel.c \
72 test_icon.c \
73 test_icon_desktops.c \
74 test_index.c \
75 test_inwin.c \
76 test_label.c \
77 test_launcher.c \
78 test_layout.c \
79 test_list.c \
80 test_map.c \
81 test_menu.c \
82 test_multi.c \
83 test_notify.c \
84 test_pager.c \
85 test_panel.c \
86 test_panes.c \
87 test_photo.c \
88 test_photocam.c \
89 test_progressbar.c \
90 test_radio.c \
91 test_scaling.c \
92 test_scroller.c \
93 test_segment_control.c \
94 test_separator.c \
95 test_slider.c \
96 test_slideshow.c \
97 test_spinner.c \
98 test_store.c \
99 test_table.c \
100 test_thumb.c \
101 test_toggle.c \
102 test_toolbar.c \
103 test_tooltip.c \
104 test_transit.c \
105 test_weather.c \
106 test_win_inline.c \
107 test_win_state.c
108
109 if HAVE_EIO
110 elementary_test_SOURCES += test_eio.c
111 endif
112
113 elementary_test_LDADD = $(top_builddir)/src/lib/libelementary.la \
114         @ELEMENTARY_EWEATHER_LIBS@ \
115         @ELEMENTARY_EDBUS_LIBS@ \
116         @ELEMENTARY_EFREET_LIBS@ \
117         @ELEMENTARY_LIBS@ \
118         @my_libs@
119 if HAVE_EIO
120 elementary_test_LDADD += @EIO_LIBS@
121 endif
122 elementary_test_LDFLAGS =
123
124 elementary_config_SOURCES = \
125 config.c
126
127 elementary_config_LDADD = $(top_builddir)/src/lib/libelementary.la \
128         @ELEMENTARY_EWEATHER_LIBS@ \
129         @ELEMENTARY_EDBUS_LIBS@ \
130         @ELEMENTARY_EFREET_LIBS@ \
131         @ELEMENTARY_LIBS@ \
132         @my_libs@
133 elementary_config_LDFLAGS =
134
135 if BUILD_QUICKLAUNCH
136 elementary_quicklaunch_SOURCES = quicklaunch.c
137 elementary_quicklaunch_LDADD = $(top_builddir)/src/lib/libelementary.la \
138         @ELEMENTARY_EWEATHER_LIBS@ \
139         @ELEMENTARY_EDBUS_LIBS@ \
140         @ELEMENTARY_EFREET_LIBS@ \
141         @ELEMENTARY_LIBS@ \
142         @my_libs@
143 elementary_quicklaunch_LDFLAGS =
144
145 if BUILD_RUN
146 elementary_run_SOURCES = run.c
147 elementary_run_LDADD =
148 elementary_run_LDFLAGS =
149 endif
150
151 ## This is how to build a quicklanch capable app
152 # build the shared lib version - libtool produces a .a and .la file as well
153 # as a .so - these get put in libdir ($PREFIX/lib) as elementary_testql.so
154 # etc. - this is where elementary will expect to find the .so's for
155 # quicklaunch apps.
156 elementary_testqldir = $(libdir)
157 elementary_testql_LTLIBRARIES = elementary_testql.la
158 elementary_testql_la_SOURCES = $(elementary_test_SOURCES)
159 elementary_testql_la_LIBADD = $(top_builddir)/src/lib/libelementary.la \
160         @ELEMENTARY_EWEATHER_LIBS@
161
162 if HAVE_EIO
163 elementary_testql_la_LIBADD += @EIO_LIBS@
164 endif
165
166 elementary_testql_la_CFLAGS =
167 elementary_testql_la_LDFLAGS = -module -avoid-version -no-undefined
168 elementary_testql_SOURCES = $(elementary_test_SOURCES)
169 elementary_testql_LDADD = $(top_builddir)/src/lib/libelementary.la \
170         @ELEMENTARY_EWEATHER_LIBS@ \
171         @ELEMENTARY_EDBUS_LIBS@ \
172         @ELEMENTARY_EFREET_LIBS@ \
173         @ELEMENTARY_LIBS@ \
174         @my_libs@
175
176 if HAVE_EIO
177 elementary_testql_LDADD += @EIO_LIBS@
178 endif
179
180 elementary_testql_CFLAGS = -DELM_LIB_QUICKLAUNCH=1
181 elementary_testql_LDFLAGS =
182 endif