Fix linking complaints brought out by:
[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 @ELEMENTARY_EMAP_CFLAGS@ \
22 @EIO_CFLAGS@ \
23 @ELEMENTARY_WEB_CFLAGS@
24
25 bin_PROGRAMS = @ELEMENTARY_TEST_PRG@ @ELEMENTARY_CONFIG_PRG@
26 if BUILD_QUICKLAUNCH
27 bin_PROGRAMS += elementary_quicklaunch elementary_run elementary_testql
28 endif
29
30 EXTRA_PROGRAMS = elementary_test elementary_config
31
32 elementary_test_SOURCES = \
33 test.c \
34 test_3d.c \
35 test_actionslider.c \
36 test_anchorblock.c \
37 test_anchorview.c \
38 test_anim.c \
39 test_bg.c \
40 test_box.c \
41 test_bubble.c \
42 test_button.c \
43 test_calendar.c \
44 test_check.c \
45 test_clock.c \
46 test_cnp.c \
47 test_colorselector.c \
48 test_conform.c \
49 test_ctxpopup.c \
50 test_cursor.c \
51 test_diskselector.c \
52 test_entry.c \
53 test_factory.c \
54 test_fileselector_button.c \
55 test_fileselector.c \
56 test_fileselector_entry.c \
57 test_flip.c \
58 test_flip_page.c \
59 test_flipselector.c \
60 test_floating.c \
61 test_focus.c \
62 test_focus2.c \
63 test_focus3.c \
64 test_gengrid.c \
65 test_genlist.c \
66 test_gesture_layer.c \
67 test_gesture_layer2.c \
68 test_gesture_layer3.c \
69 test_glview_simple.c \
70 test_glview.c \
71 test_grid.c \
72 test_hover.c \
73 test_hoversel.c \
74 test_icon.c \
75 test_icon_desktops.c \
76 test_icon_animated.c \
77 test_index.c \
78 test_inwin.c \
79 test_label.c \
80 test_launcher.c \
81 test_layout.c \
82 test_list.c \
83 test_map.c \
84 test_menu.c \
85 test_multi.c \
86 test_multibuttonentry.c \
87 test_naviframe.c \
88 test_notify.c \
89 test_panel.c \
90 test_panes.c \
91 test_photo.c \
92 test_photocam.c \
93 test_progressbar.c \
94 test_radio.c \
95 test_scaling.c \
96 test_scroller.c \
97 test_segment_control.c \
98 test_separator.c \
99 test_slider.c \
100 test_slideshow.c \
101 test_spinner.c \
102 test_store.c \
103 test_table.c \
104 test_thumb.c \
105 test_toggle.c \
106 test_toolbar.c \
107 test_tooltip.c \
108 test_transit.c \
109 test_video.c \
110 test_weather.c \
111 test_web.c \
112 test_win_inline.c \
113 test_win_socket.c \
114 test_win_plug.c \
115 test_win_state.c \
116 test.h
117
118 if HAVE_EIO
119 elementary_test_SOURCES += test_eio.c
120 endif
121
122 elementary_test_LDADD = $(top_builddir)/src/lib/libelementary.la \
123         @ELEMENTARY_EWEATHER_LIBS@ \
124         @ELEMENTARY_EDBUS_LIBS@ \
125         @ELEMENTARY_EFREET_LIBS@ \
126         @ELEMENTARY_EMAP_LIBS@ \
127         @ELEMENTARY_LIBS@ \
128         @EIO_LIBS@ \
129         @ELEMENTARY_WEB_LIBS@ \
130         @my_libs@
131 elementary_test_LDFLAGS =
132
133 elementary_config_SOURCES = \
134 config.c
135
136 elementary_config_LDADD = $(top_builddir)/src/lib/libelementary.la \
137         @ELEMENTARY_EWEATHER_LIBS@ \
138         @ELEMENTARY_EDBUS_LIBS@ \
139         @ELEMENTARY_EFREET_LIBS@ \
140         @ELEMENTARY_EMAP_LIBS@ \
141         @ELEMENTARY_LIBS@ \
142         @my_libs@
143 elementary_config_LDFLAGS =
144
145 if BUILD_QUICKLAUNCH
146 elementary_quicklaunch_SOURCES = quicklaunch.c
147 elementary_quicklaunch_LDADD = $(top_builddir)/src/lib/libelementary.la \
148         @ELEMENTARY_EWEATHER_LIBS@ \
149         @ELEMENTARY_EDBUS_LIBS@ \
150         @ELEMENTARY_EFREET_LIBS@ \
151         @ELEMENTARY_EMAP_LIBS@ \
152         @ELEMENTARY_LIBS@ \
153         @my_libs@
154 elementary_quicklaunch_LDFLAGS =
155
156 if BUILD_RUN
157 elementary_run_SOURCES = run.c
158 elementary_run_LDADD =
159 elementary_run_LDFLAGS =
160 endif
161
162 ## This is how to build a quicklanch capable app
163 # build the shared lib version - libtool produces a .a and .la file as well
164 # as a .so - these get put in libdir ($PREFIX/lib) as elementary_testql.so
165 # etc. - this is where elementary will expect to find the .so's for
166 # quicklaunch apps.
167 elementary_testqldir = $(libdir)
168 elementary_testql_LTLIBRARIES = elementary_testql.la
169 elementary_testql_la_SOURCES = $(elementary_test_SOURCES)
170 elementary_testql_la_LIBADD = $(top_builddir)/src/lib/libelementary.la \
171         @ELEMENTARY_EWEATHER_LIBS@ \
172         @ELEMENTARY_EDBUS_LIBS@ \
173         @ELEMENTARY_EFREET_LIBS@ \
174         @ELEMENTARY_EMAP_LIBS@ \
175         @ELEMENTARY_LIBS@ \
176         @EIO_LIBS@ \
177         @ELEMENTARY_WEB_LIBS@ \
178         @my_libs@
179
180 elementary_testql_la_CFLAGS =
181 elementary_testql_la_LDFLAGS = -module -avoid-version -no-undefined
182 elementary_testql_SOURCES = $(elementary_test_SOURCES)
183 elementary_testql_LDADD = $(top_builddir)/src/lib/libelementary.la \
184         @ELEMENTARY_EWEATHER_LIBS@ \
185         @ELEMENTARY_EDBUS_LIBS@ \
186         @ELEMENTARY_EFREET_LIBS@ \
187         @ELEMENTARY_EMAP_LIBS@ \
188         @ELEMENTARY_LIBS@ \
189         @EIO_LIBS@ \
190         @ELEMENTARY_WEB_LIBS@ \
191         @my_libs@
192
193 elementary_testql_CFLAGS = -DELM_LIB_QUICKLAUNCH=1
194 elementary_testql_LDFLAGS =
195 endif