diff options
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/Makefile.am | 287 | ||||
-rw-r--r-- | src/examples/ecore/Makefile.examples | 60 | ||||
-rw-r--r-- | src/examples/edje/Makefile.examples | 82 | ||||
-rw-r--r-- | src/examples/eet/Makefile.examples | 20 | ||||
-rw-r--r-- | src/examples/eina/Makefile.examples | 52 | ||||
-rw-r--r-- | src/examples/eio/Makefile.examples | 15 | ||||
-rw-r--r-- | src/examples/eldbus/Makefile.examples | 22 | ||||
-rw-r--r-- | src/examples/elocation/Makefile.examples | 14 | ||||
-rw-r--r-- | src/examples/emile/Makefile.examples | 14 | ||||
-rw-r--r-- | src/examples/emotion/Makefile.examples | 18 | ||||
-rw-r--r-- | src/examples/eolian_cxx/Makefile.examples | 47 | ||||
-rw-r--r-- | src/examples/ethumb_client/Makefile.examples | 14 | ||||
-rw-r--r-- | src/examples/evas/Makefile.examples | 43 |
13 files changed, 688 insertions, 0 deletions
diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am new file mode 100644 index 0000000000..e987a44e59 --- /dev/null +++ b/src/examples/Makefile.am @@ -0,0 +1,287 @@ +AUTOMAKE_OPTIONS= -Wno-portability +CLEANFILES = +DISTCLEANFILES = +MAINTAINERCLEANFILES = Makefile.in +EXTRA_PROGRAMS = +DATA_FILES = +EXTRA_DIST = +EDCS = +PHONIES = +EOLIAN_FLAGS := \ + -I$(srcdir) \ + -I$(top_srcdir)/src/lib/eo \ + -I$(top_srcdir)/src/lib/evas/canvas \ + -I$(top_srcdir)/src/lib/evas/gesture \ + -I$(top_srcdir)/src/lib/edje \ + -I$(top_srcdir)/src/lib/efl \ + -I$(top_srcdir)/src/lib/ecore \ + -I$(top_srcdir)/src/lib/ecore_audio \ + -I$(top_srcdir)/src/lib/elementary + +#defined in Makefile_Edje_Helper.am +#EDJE_CC_FLAGS = + +CLEAN_EXAMPLES = +INSTALL_EXAMPLES = +UNINSTALL_EXAMPLES = + +include ../Makefile_Edje_Helper.am +include $(top_srcdir)/src/Makefile_Eolian_Helper.am +if HAVE_CXX +include $(top_srcdir)/src/Makefile_Eolian_Cxx_Helper.am +if ! HAVE_EOLIAN_CXX +_EOLIAN_CXX_DEP = ../bin/eolian_cxx/eolian_cxx$(EXEEXT) +bin/eolian_cxx/eolian_cxx$(EXEEXT): + false +endif +endif +# Eolian_Files_Helper +# Thus we need to override it here in order to make its pattern +# rules work properly. +if ! HAVE_EOLIAN_GEN +_EOLIAN_GEN_DEP = ../bin/eolian/eolian_gen$(EXEEXT) +endif + +if HAVE_CSHARP +include $(top_srcdir)/src/Makefile_Efl_Mono_MSBuild_Gen_Helper.am +endif + +AM_CPPFLAGS = \ +-I. \ +-I$(top_builddir)/src/bindings \ +-I$(top_srcdir)/src/bindings \ +-I$(top_builddir)/src/lib/efl/interfaces \ +-I$(top_builddir)/src/lib/evas/canvas \ +-I$(top_builddir)/src/lib/evas/gesture \ +-I$(top_srcdir)/src/bindings/cxx/eina_cxx \ +-I$(top_builddir)/src/bindings/cxx/eina_cxx \ +-I$(top_srcdir)/src/bindings/cxx/eo_cxx \ +-I$(top_builddir)/src/bindings/cxx/eo_cxx \ +-I$(top_srcdir)/src/bindings/cxx/eldbus_cxx \ +-I$(top_builddir)/src/bindings/cxx/eldbus_cxx \ +-I$(top_srcdir)/src/bindings/cxx/ecore_cxx \ +-I$(top_builddir)/src/bindings/cxx/ecore_cxx \ +-I$(top_builddir)/src/lib/ecore \ +-I$(top_srcdir)/src/lib/ecore \ +-I$(top_builddir)/src/lib/ecore_audio \ +-I$(top_srcdir)/src/lib/ecore_audio \ +-I$(top_builddir)/src/lib/ecore_avahi \ +-I$(top_srcdir)/src/lib/ecore_avahi \ +-I$(top_builddir)/src/lib/ecore_buffer \ +-I$(top_srcdir)/src/lib/ecore_buffer \ +-I$(top_builddir)/src/lib/ecore_cocoa \ +-I$(top_srcdir)/src/lib/ecore_cocoa \ +-I$(top_builddir)/src/lib/ecore_con \ +-I$(top_srcdir)/src/lib/ecore_con \ +-I$(top_builddir)/src/lib/ecore_drm \ +-I$(top_srcdir)/src/lib/ecore_drm \ +-I$(top_builddir)/src/lib/ecore_drm2 \ +-I$(top_srcdir)/src/lib/ecore_drm2 \ +-I$(top_builddir)/src/lib/ecore_evas \ +-I$(top_srcdir)/src/lib/ecore_evas \ +-I$(top_builddir)/src/lib/ecore_fb \ +-I$(top_srcdir)/src/lib/ecore_fb \ +-I$(top_builddir)/src/lib/ecore_file \ +-I$(top_srcdir)/src/lib/ecore_file \ +-I$(top_builddir)/src/lib/ecore_imf \ +-I$(top_srcdir)/src/lib/ecore_imf \ +-I$(top_builddir)/src/lib/ecore_imf_evas \ +-I$(top_srcdir)/src/lib/ecore_imf_evas \ +-I$(top_builddir)/src/lib/ecore_input \ +-I$(top_srcdir)/src/lib/ecore_input \ +-I$(top_builddir)/src/lib/ecore_input_evas \ +-I$(top_srcdir)/src/lib/ecore_input_evas \ +-I$(top_builddir)/src/lib/ecore_ipc \ +-I$(top_srcdir)/src/lib/ecore_ipc \ +-I$(top_builddir)/src/lib/ecore_sdl \ +-I$(top_srcdir)/src/lib/ecore_sdl \ +-I$(top_builddir)/src/lib/ecore_wayland \ +-I$(top_srcdir)/src/lib/ecore_wayland \ +-I$(top_builddir)/src/lib/ecore_win32 \ +-I$(top_srcdir)/src/lib/ecore_win32 \ +-I$(top_builddir)/src/lib/ecore_wl2 \ +-I$(top_srcdir)/src/lib/ecore_wl2 \ +-I$(top_builddir)/src/lib/ecore_x \ +-I$(top_srcdir)/src/lib/ecore_x \ +-I$(top_builddir)/src/lib/ector \ +-I$(top_srcdir)/src/lib/ector \ +-I$(top_builddir)/src/lib/edje \ +-I$(top_srcdir)/src/lib/edje \ +-I$(top_builddir)/src/lib/eet \ +-I$(top_srcdir)/src/lib/eet \ +-I$(top_builddir)/src/lib/eeze \ +-I$(top_srcdir)/src/lib/eeze \ +-I$(top_builddir)/src/lib/efl \ +-I$(top_srcdir)/src/lib/efl \ +-I$(top_builddir)/src/lib/efl_mono \ +-I$(top_srcdir)/src/lib/efl_mono \ +-I$(top_builddir)/src/lib/efl_wl \ +-I$(top_srcdir)/src/lib/efl_wl \ +-I$(top_builddir)/src/lib/efreet \ +-I$(top_srcdir)/src/lib/efreet \ +-I$(top_builddir)/src/lib/eina \ +-I$(top_srcdir)/src/lib/eina \ +-I$(top_builddir)/src/lib/eio \ +-I$(top_srcdir)/src/lib/eio \ +-I$(top_builddir)/src/lib/eldbus \ +-I$(top_srcdir)/src/lib/eldbus \ +-I$(top_builddir)/src/lib/elementary \ +-I$(top_srcdir)/src/lib/elementary \ +-I$(top_builddir)/src/lib/elocation \ +-I$(top_srcdir)/src/lib/elocation \ +-I$(top_builddir)/src/lib/elput \ +-I$(top_srcdir)/src/lib/elput \ +-I$(top_builddir)/src/lib/elua \ +-I$(top_srcdir)/src/lib/elua \ +-I$(top_builddir)/src/lib/embryo \ +-I$(top_srcdir)/src/lib/embryo \ +-I$(top_builddir)/src/lib/emile \ +-I$(top_srcdir)/src/lib/emile \ +-I$(top_builddir)/src/lib/emotion \ +-I$(top_srcdir)/src/lib/emotion \ +-I$(top_builddir)/src/lib/eo \ +-I$(top_srcdir)/src/lib/eo \ +-I$(top_builddir)/src/lib/eolian \ +-I$(top_srcdir)/src/lib/eolian \ +-I$(top_builddir)/src/lib/eolian_cxx \ +-I$(top_srcdir)/src/lib/eolian_cxx \ +-I$(top_builddir)/src/lib/ephysics \ +-I$(top_srcdir)/src/lib/ephysics \ +-I$(top_builddir)/src/lib/escape \ +-I$(top_srcdir)/src/lib/escape \ +-I$(top_builddir)/src/lib/ethumb \ +-I$(top_srcdir)/src/lib/ethumb \ +-I$(top_builddir)/src/lib/ethumb_client \ +-I$(top_srcdir)/src/lib/ethumb_client \ +-I$(top_builddir)/src/lib/evas \ +-I$(top_srcdir)/src/lib/evas \ +-DPACKAGE_BIN_DIR=\"$(bindir)\" \ +-DPACKAGE_LIB_DIR=\"$(libdir)\" \ +@ELEMENTARY_CFLAGS@ + +if HAVE_WINDOWS +AM_CPPFLAGS += \ +-I$(top_srcdir)/src/lib/evil \ +-I$(top_builddir)/src/lib/evil \ +@EFL_WINDOWS_VERSION_CFLAGS@ +endif + +AM_CXXFLAGS = \ +$(AM_CPPFLAGS) \ +@ELEMENTARY_CXX_CFLAGS@ + +LDADD = \ +-lm \ +@EFL_PTHREAD_LIBS@ \ +$(top_builddir)/src/lib/ecore_avahi/libecore_avahi.la \ +$(top_builddir)/src/lib/ecore_con/libecore_con.la \ +$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \ +$(top_builddir)/src/lib/ecore_file/libecore_file.la \ +$(top_builddir)/src/lib/ecore_imf_evas/libecore_imf_evas.la \ +$(top_builddir)/src/lib/ecore_imf/libecore_imf.la \ +$(top_builddir)/src/lib/ecore_input_evas/libecore_input_evas.la \ +$(top_builddir)/src/lib/ecore_input/libecore_input.la \ +$(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \ +$(top_builddir)/src/lib/ecore/libecore.la \ +$(top_builddir)/src/lib/ector/libector.la \ +$(top_builddir)/src/lib/edje/libedje.la \ +$(top_builddir)/src/lib/eet/libeet.la \ +$(top_builddir)/src/lib/efl/libefl.la \ +$(top_builddir)/src/lib/efreet/libefreet.la \ +$(top_builddir)/src/lib/efreet/libefreet_mime.la \ +$(top_builddir)/src/lib/efreet/libefreet_trash.la \ +$(top_builddir)/src/lib/eina/libeina.la \ +$(top_builddir)/src/lib/eio/libeio.la \ +$(top_builddir)/src/lib/eldbus/libeldbus.la \ +$(top_builddir)/src/lib/elementary/libelementary.la \ +$(top_builddir)/src/lib/elocation/libelocation.la \ +$(top_builddir)/src/lib/embryo/libembryo.la \ +$(top_builddir)/src/lib/emile/libemile.la \ +$(top_builddir)/src/lib/emotion/libemotion.la \ +$(top_builddir)/src/lib/eolian/libeolian.la \ +$(top_builddir)/src/lib/eo/libeo.la \ +$(top_builddir)/src/lib/ethumb_client/libethumb_client.la \ +$(top_builddir)/src/lib/ethumb/libethumb.la \ +$(top_builddir)/src/lib/evas/libevas.la + + +AM_LDFLAGS = @ELEMENTARY_LDFLAGS@ + +if HAVE_ECORE_AUDIO +LDADD += $(top_builddir)/src/lib/ecore_audio/libecore_audio.la +endif + +if HAVE_EPHYSICS +LDADD += $(top_builddir)/src/lib/ephysics/libephysics.la +endif + +if HAVE_ECORE_WL2 +LDADD += \ +$(top_builddir)/src/lib/ecore_wl2/libecore_wl2.la \ +$(top_builddir)/src/lib/efl_wl/libefl_wl.la +endif + +if HAVE_EEZE +LDADD += $(top_builddir)/src/lib/eeze/libeeze.la +endif + +if HAVE_ELPUT +LDADD += $(top_builddir)/src/lib/elput/libelput.la +endif + +if HAVE_ELUA +LDADD += $(top_builddir)/src/lib/elua/libelua.la +endif + +if HAVE_ECORE_X +LDADD += $(top_builddir)/src/lib/ecore_x/libecore_x.la +endif + +include ecore_avahi.mk +include ecore.mk +include edje.mk +include eet.mk +include efl_mono.mk +include eina_cxx.mk +include eina.mk +include eio.mk +include eldbus.mk +include elementary.mk +include elocation.mk +include emile.mk +include emotion.mk +include eolian_cxx.mk +include ephysics.mk +include ethumb_client.mk +include evas.mk + +$(top_builddir)/src/bin/edje_cc$(EXEEXT): + @test -f $(top_builddir)/src/bin/edje_cc$(EXEEXT) || $(MAKE) $(AM_MAKEFLAGS) -C ../ bin/edje_cc$(EXEEXT) + +# this is a bit hacky +# currently all options from all directories are passed to all edje_cc cmds +# so if there are any files with the same name in different dirs it will fail +.edc.edj: $(top_builddir)/src/bin/edje_cc$(EXEEXT) + $(AM_V_EDJ)$(EDJE_CC) $(EDJE_CC_FLAGS) $< $(builddir)/$@ + +EXTRA_DIST += $(EDCS) $(DATA_FILES) +EDJS = $(EDCS:%.edc=%.edj) + +examples: $(EXTRA_PROGRAMS) $(EDJS) + +clean-local: $(CLEAN_EXAMPLES) + rm -f $(EXTRA_PROGRAMS) $(EDJS) + +install-examples: $(INSTALL_EXAMPLES) +uninstall-local: $(UNINSTALL_EXAMPLES) +.PHONY: $(PHONIES) + +EXTRA_DIST += $(EDCS) $(DATA_FILES) + +if ALWAYS_BUILD_EXAMPLES +noinst_PROGRAMS = $(EXTRA_PROGRAMS) +nodist_pkgdata_DATA = $(EDJS) +else +endif + +check: ; diff --git a/src/examples/ecore/Makefile.examples b/src/examples/ecore/Makefile.examples new file mode 100644 index 0000000000..63e5f6b796 --- /dev/null +++ b/src/examples/ecore/Makefile.examples @@ -0,0 +1,60 @@ +CC=gcc + +if HAVE_GSTREAMER_1 + GSTREAMER_DEP="gstreamer-1.0" +else + GSTREAMER_DEP="gstreamer-0.10" +endif + +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,ecore-audio,ecore-con,ecore-file, \ + eo,evas-software-buffer,gnutls,ecore-imf,ecore-imf-evas,$(GSTREAMER_DEP)` -lm + +EXAMPLES= ecore_animator_example \ + ecore_audio_custom \ + ecore_audio_playback \ + ecore_audio_to_ogg \ + ecore_client_bench \ + ecore_con_client_example \ + ecore_con_client_simple_example \ + ecore_con_lookup_example \ + ecore_con_server_example \ + ecore_con_server_http_example \ + ecore_con_server_simple_example \ + ecore_con_url_cookies_example \ + ecore_con_url_download_example \ + ecore_con_url_headers_example \ + ecore_evas_basics_example \ + ecore_evas_buffer_example_01 \ + ecore_evas_buffer_example_02 \ + ecore_evas_callbacks \ + ecore_evas_ews_example \ + ecore_evas_object_example \ + ecore_evas_window_sizes_example \ + ecore_event_example_01 \ + ecore_event_example_02 \ + ecore_exe_example \ + ecore_exe_example_child \ + ecore_fd_handler_example \ + ecore_fd_handler_gnutls_example \ + ecore_file_download_example \ + ecore_idler_example \ + ecore_imf_example \ + ecore_job_example \ + ecore_pipe_gstreamer_example \ + ecore_pipe_simple_example \ + ecore_poller_example \ + ecore_server_bench \ + ecore_thread_example \ + ecore_time_functions_example \ + ecore_timer_example \ + ecore_getopt_example + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/edje/Makefile.examples b/src/examples/edje/Makefile.examples new file mode 100644 index 0000000000..8d7349499e --- /dev/null +++ b/src/examples/edje/Makefile.examples @@ -0,0 +1,82 @@ +CC=gcc +EDJE_CC=edje_cc +EDJE_CODEGEN=edje_codegen +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,edje` + +EDJE_OBJS= animations.edj \ + animations2.edj \ + basic.edj \ + basic2.edj \ + box.edj \ + codegen.edj \ + color-class.edj \ + drag.edj \ + edje_example.edj \ + edje-nested.edj \ + embryo_custom_state.edj \ + embryo_pong.edj \ + embryo_run_program.edj \ + embryo_set_state.edj \ + embryo_set_text.edj \ + embryo_timer.edj \ + external_elm_anchorblock.edj \ + external_elm_button.edj \ + external_elm_check.edj \ + external_elm_panes.edj \ + external_emotion_elm.edj \ + lua_script.edj \ + messages_echo.edj \ + multisense.edj \ + perspective.edj \ + physics_3d.edj \ + physics_actions.edj \ + physics_backcull.edj \ + physics_basic.edj \ + physics_complex.edj \ + physics_soft_bodies.edj \ + signalsBubble.edj \ + signals-messages.edj \ + sigtest.edj \ + swallow.edj \ + table.edj \ + text.edj \ + toggle_using_filter.edj + +EXAMPLES= animations2 \ + edje-animations \ + edje-basic \ + edje-basic2 \ + edje-box \ + edje-box2 \ + edje-color-class \ + edje-drag \ + edje_example \ + edje-multisense \ + edje-perspective \ + edje-signals-messages \ + edje-swallow \ + edje-swallow2 \ + edje-table \ + edje-text \ + signals2 \ + sigtest + +all: edje examples edje-codegen-example +edje: $(EDJE_OBJS) +examples: $(EXAMPLES) + +%.edj: %.edc + $(EDJE_CC) $< + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +codegen: + $(EDJE_CODEGEN) --prefix=codegen_example codegen.edj example_group codegen_example_generated.c codegen_example_generated.h + +edje-codegen-example: codegen + $(CC) -o edje-codegen-example codegen_example_generated.c edje-codegen-example.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) *.edj edje-codegen-example diff --git a/src/examples/eet/Makefile.examples b/src/examples/eet/Makefile.examples new file mode 100644 index 0000000000..6b419cb7ba --- /dev/null +++ b/src/examples/eet/Makefile.examples @@ -0,0 +1,20 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,eet` + +EXAMPLES= eet-basic \ + eet-data-cipher_decipher \ + eet-data-file_descriptor_01 \ + eet-data-file_descriptor_02 \ + eet-data-nested \ + eet-data-simple \ + eet-file + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/eina/Makefile.examples b/src/examples/eina/Makefile.examples new file mode 100644 index 0000000000..e6614de053 --- /dev/null +++ b/src/examples/eina/Makefile.examples @@ -0,0 +1,52 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas` + +EXAMPLES= eina_accessor_01 \ + eina_array_01 \ + eina_array_02 \ + eina_error_01 \ + eina_file_01 \ + eina_file_02 \ + eina_hash_01 \ + eina_hash_02 \ + eina_hash_03 \ + eina_hash_04 \ + eina_hash_05 \ + eina_hash_06 \ + eina_hash_07 \ + eina_hash_08 \ + eina_inarray_01 \ + eina_inarray_02 \ + eina_inarray_03 \ + eina_inlist_01 \ + eina_inlist_02 \ + eina_inlist_03 \ + eina_iterator_01 \ + eina_list_01 \ + eina_list_02 \ + eina_list_03 \ + eina_list_04 \ + eina_log_01 \ + eina_log_02 \ + eina_log_03 \ + eina_magic_01 \ + eina_simple_xml_parser_01 \ + eina_str_01 \ + eina_strbuf_01 \ + eina_stringshare_01 \ + eina_tiler_01 \ + eina_value_01 \ + eina_value_02 \ + eina_value_03 \ + eina_xattr_01 \ + eina_xattr_02 + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/eio/Makefile.examples b/src/examples/eio/Makefile.examples new file mode 100644 index 0000000000..58070a92bd --- /dev/null +++ b/src/examples/eio/Makefile.examples @@ -0,0 +1,15 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags ecore,eio` + +EXAMPLES= eio_file_copy \ + eio_file_ls + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/eldbus/Makefile.examples b/src/examples/eldbus/Makefile.examples new file mode 100644 index 0000000000..c6d2406288 --- /dev/null +++ b/src/examples/eldbus/Makefile.examples @@ -0,0 +1,22 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,eldbus` + +EXAMPLES= banshee client \ + complex-types \ + complex-types-client-eina-value \ + complex-types-server \ + connman-list-services \ + ofono-dial \ + server \ + simple-signal-emit \ + connect-address + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/elocation/Makefile.examples b/src/examples/elocation/Makefile.examples new file mode 100644 index 0000000000..20ab2b2628 --- /dev/null +++ b/src/examples/elocation/Makefile.examples @@ -0,0 +1,14 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,eldbus,elocation` + +EXAMPLES= elocation + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/emile/Makefile.examples b/src/examples/emile/Makefile.examples new file mode 100644 index 0000000000..3634a2d2a2 --- /dev/null +++ b/src/examples/emile/Makefile.examples @@ -0,0 +1,14 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina, emile` + +EXAMPLES= emile_base64 + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/emotion/Makefile.examples b/src/examples/emotion/Makefile.examples new file mode 100644 index 0000000000..e97882d850 --- /dev/null +++ b/src/examples/emotion/Makefile.examples @@ -0,0 +1,18 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,emotion` + +EXAMPLES= emotion_basic_example \ + emotion_border_example \ + emotion_generic_example \ + emotion_generic_subtitle_example \ + emotion_signals_example + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/eolian_cxx/Makefile.examples b/src/examples/eolian_cxx/Makefile.examples new file mode 100644 index 0000000000..4ddd64d7e7 --- /dev/null +++ b/src/examples/eolian_cxx/Makefile.examples @@ -0,0 +1,47 @@ + +CXX=g++ +CC=gcc +EOLIAN_GEN=eolian_gen +EOLIAN_CXX=eolian_cxx +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,emotion,eolian,eolian-cxx,eo-cxx,eina-cxx` -DEFL_BETA_API_SUPPORT +EOLIAN_FLAGS=`pkg-config --variable=eolian_flags eo` -I. + +EOS = colourable.eo colourablesquare.eo + +IMPL = colourable.c colourablesquare.c + +GENERATED = \ + colourable.eo.c \ + colourable.eo.h \ + colourable.eo.hh \ + colourablesquare.eo.c \ + colourablesquare.eo.h \ + colourablesquare.eo.hh + +EXAMPLES= eolian_cxx_inherit_01 \ + eolian_cxx_simple_01 + +OBJS = colourable.o colourablesquare.o + +all: $(OBJS) examples + +codegen: + $(EOLIAN_CXX) $(EOLIAN_FLAGS) -I./colourable.eo -o colourable.eo.hh + $(EOLIAN_CXX) $(EOLIAN_FLAGS) -I./colourablesquare.eo -o colourablesquare.eo.hh + $(EOLIAN_GEN) $(EOLIAN_FLAGS) -gc -o c:colourable.eo.c colourable.eo + $(EOLIAN_GEN) $(EOLIAN_FLAGS) -gc -o c:colourablesquare.eo.c colourablesquare.eo + $(EOLIAN_GEN) $(EOLIAN_FLAGS) -gh -o h:colourable.eo.h colourable.eo + $(EOLIAN_GEN) $(EOLIAN_FLAGS) -gh -o h:colourablesquare.eo.h colourablesquare.eo + +$(OBJS): codegen + $(CC) -c colourable.c $(COMMON_FLAGS) + $(CC) -c colourablesquare.c $(COMMON_FLAGS) + +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CXX) -o $@ $@.cc $(OBJS) $(COMMON_FLAGS) -std=c++11 + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/ethumb_client/Makefile.examples b/src/examples/ethumb_client/Makefile.examples new file mode 100644 index 0000000000..5d8d7ceb1b --- /dev/null +++ b/src/examples/ethumb_client/Makefile.examples @@ -0,0 +1,14 @@ +CC=gcc +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,ethumb,ethumb_client` + +EXAMPLES= ethumb_dbus + +all: examples +examples: $(EXAMPLES) + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) diff --git a/src/examples/evas/Makefile.examples b/src/examples/evas/Makefile.examples new file mode 100644 index 0000000000..7e3f7c2dd3 --- /dev/null +++ b/src/examples/evas/Makefile.examples @@ -0,0 +1,43 @@ +CC=gcc +EDJE_CC=edje_cc +EDJE_CODEGEN=edje_codegen +COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,edje,eo` + +EDJE_OBJS= aspect.edj + +EXAMPLES= evas-aspect-hints \ + evas-box \ + evas-buffer-simple \ + evas-events \ + evas-3d-fog \ + evas-hints \ + evas-images \ + evas-images2 \ + evas-images3 \ + evas-images4 \ + evas-images5 \ + evas-images6 \ + evas-init-shutdown \ + evas-map-utils \ + evas-object-manipulation \ + evas-object-manipulation-eo \ + evas-smart-interface \ + evas-smart-object \ + evas-stacking \ + evas-table \ + evas-text \ + evas-textblock-obstacles + +all: edje examples +edje: $(EDJE_OBJS) +examples: $(EXAMPLES) + +%.edj: %.edc + $(EDJE_CC) $< + +$(EXAMPLES): + $(CC) -o $@ $@.c $(COMMON_FLAGS) + +clean: + @echo "Cleaning up built objects..." + @rm -Rf $(EXAMPLES) *.edj |