Upon reviewing the elm_glview, I've realized a few issues and mistakes that i've
[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_3d.c \
39 test_actionslider.c \
40 test_anchorblock.c \
41 test_anchorview.c \
42 test_anim.c \
43 test_bg.c \
44 test_box.c \
45 test_bubble.c \
46 test_button.c \
47 test.c \
48 test_calendar.c \
49 test_check.c \
50 test_clock.c \
51 test_colorselector.c \
52 test_conform.c \
53 test_ctxpopup.c \
54 test_cursor.c \
55 test_diskselector.c \
56 test_entry.c \
57 test_fileselector_button.c \
58 test_fileselector.c \
59 test_fileselector_entry.c \
60 test_flip.c \
61 test_flip_page.c \
62 test_flipselector.c \
63 test_floating.c \
64 test_focus2.c \
65 test_focus3.c \
66 test_focus.c \
67 test_gengrid.c \
68 test_genlist.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_index.c \
77 test_inwin.c \
78 test_label.c \
79 test_launcher.c \
80 test_layout.c \
81 test_list.c \
82 test_map.c \
83 test_menu.c \
84 test_multi.c \
85 test_notify.c \
86 test_pager.c \
87 test_panel.c \
88 test_panes.c \
89 test_photo.c \
90 test_photocam.c \
91 test_progressbar.c \
92 test_radio.c \
93 test_scaling.c \
94 test_scroller.c \
95 test_segment_control.c \
96 test_separator.c \
97 test_slider.c \
98 test_slideshow.c \
99 test_spinner.c \
100 test_store.c \
101 test_table.c \
102 test_thumb.c \
103 test_toggle.c \
104 test_toolbar.c \
105 test_tooltip.c \
106 test_transit.c \
107 test_weather.c \
108 test_win_inline.c \
109 test_win_state.c
110
111 if HAVE_EIO
112 elementary_test_SOURCES += test_eio.c
113 endif
114
115 elementary_test_LDADD = $(top_builddir)/src/lib/libelementary.la \
116         @ELEMENTARY_EWEATHER_LIBS@ \
117         @ELEMENTARY_EDBUS_LIBS@ \
118         @ELEMENTARY_EFREET_LIBS@ \
119         @ELEMENTARY_LIBS@ \
120         @my_libs@
121 if HAVE_EIO
122 elementary_test_LDADD += @EIO_LIBS@
123 endif
124 elementary_test_LDFLAGS =
125
126 elementary_config_SOURCES = \
127 config.c
128
129 elementary_config_LDADD = $(top_builddir)/src/lib/libelementary.la \
130         @ELEMENTARY_EWEATHER_LIBS@ \
131         @ELEMENTARY_EDBUS_LIBS@ \
132         @ELEMENTARY_EFREET_LIBS@ \
133         @ELEMENTARY_LIBS@ \
134         @my_libs@
135 elementary_config_LDFLAGS =
136
137 if BUILD_QUICKLAUNCH
138 elementary_quicklaunch_SOURCES = quicklaunch.c
139 elementary_quicklaunch_LDADD = $(top_builddir)/src/lib/libelementary.la \
140         @ELEMENTARY_EWEATHER_LIBS@ \
141         @ELEMENTARY_EDBUS_LIBS@ \
142         @ELEMENTARY_EFREET_LIBS@ \
143         @ELEMENTARY_LIBS@ \
144         @my_libs@
145 elementary_quicklaunch_LDFLAGS =
146
147 if BUILD_RUN
148 elementary_run_SOURCES = run.c
149 elementary_run_LDADD =
150 elementary_run_LDFLAGS =
151 endif
152
153 ## This is how to build a quicklanch capable app
154 # build the shared lib version - libtool produces a .a and .la file as well
155 # as a .so - these get put in libdir ($PREFIX/lib) as elementary_testql.so
156 # etc. - this is where elementary will expect to find the .so's for
157 # quicklaunch apps.
158 elementary_testqldir = $(libdir)
159 elementary_testql_LTLIBRARIES = elementary_testql.la
160 elementary_testql_la_SOURCES = $(elementary_test_SOURCES)
161 elementary_testql_la_LIBADD = $(top_builddir)/src/lib/libelementary.la \
162         @ELEMENTARY_EWEATHER_LIBS@
163
164 if HAVE_EIO
165 elementary_testql_la_LIBADD += @EIO_LIBS@
166 endif
167
168 elementary_testql_la_CFLAGS =
169 elementary_testql_la_LDFLAGS = -module -avoid-version -no-undefined
170 elementary_testql_SOURCES = $(elementary_test_SOURCES)
171 elementary_testql_LDADD = $(top_builddir)/src/lib/libelementary.la \
172         @ELEMENTARY_EWEATHER_LIBS@ \
173         @ELEMENTARY_EDBUS_LIBS@ \
174         @ELEMENTARY_EFREET_LIBS@ \
175         @ELEMENTARY_LIBS@ \
176         @my_libs@
177
178 if HAVE_EIO
179 elementary_testql_LDADD += @EIO_LIBS@
180 endif
181
182 elementary_testql_CFLAGS = -DELM_LIB_QUICKLAUNCH=1
183 elementary_testql_LDFLAGS =
184 endif