aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/eo/Makefile.am
blob: ede96e0e7b1049cdb09ecf5890aa9f54ac35ae08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I. \
-I$(top_srcdir)/src/lib/eina \
-I$(top_srcdir)/src/lib/eo \
-I$(top_builddir)/src/lib/eina \
-I$(top_builddir)/src/lib/eo \
@EO_CFLAGS@

EXTRA_PROGRAMS = eo_isa eo_simple

if EO_BUILD_EXAMPLE_EVAS

EXTRA_PROGRAMS += eo_evas

endif

eo_isa_SOURCES = \
isa/eo_isa_complex.c \
isa/eo_isa_complex.h \
isa/eo_isa_interface.c \
isa/eo_isa_interface.h \
isa/eo_isa_main.c \
isa/eo_isa_mixin.c \
isa/eo_isa_mixin.h \
isa/eo_isa_simple.c \
isa/eo_isa_simple.h

eo_isa_LDADD = $(top_builddir)/src/lib/eo/libeo.la @EO_LIBS@

if EO_BUILD_EXAMPLE_EVAS

AM_CPPFLAGS += @ELM_CFLAGS@

eo_evas_SOURCES = \
evas/evas_elw_box.c \
evas/evas_elw_box.h \
evas/evas_elw_boxedbutton.c \
evas/evas_elw_boxedbutton.h  \
evas/evas_elw_button.c \
evas/evas_elw_button.h \
evas/evas_elw_win.h \
evas/evas_elw_win.c \
evas/evas_evas_obj.c \
evas/evas_evas_obj.h \
evas/evas_test.c

eo_evas_LDADD = $(top_builddir)/src/lib/eo/libeo.la @ELM_LIBS@ @EO_LIBS@

endif

eo_simple_SOURCES = \
simple/simple_interface.c \
simple/simple_interface.h \
simple/simple_main.c \
simple/simple_mixin.c \
simple/simple_mixin.h \
simple/simple_simple.c \
simple/simple_simple.h

eo_simple_LDADD = $(top_builddir)/src/lib/eo/libeo.la @EO_LIBS@

examples: $(EXTRA_PROGRAMS)

clean-local:
	rm -f $(EXTRA_PROGRAMS)

install-examples:
	mkdir -p $(datadir)/eo/examples/isa
	$(install_sh_DATA) -c $(eo_isa_SOURCES) $(datadir)/eo/examples/isa
	mkdir -p $(datadir)/eo/examples/evas
	$(install_sh_DATA) -c $(evas_SOURCES) $(datadir)/eo/examples/evas
	mkdir -p $(datadir)/eo/examples/simple
	$(install_sh_DATA) -c $(simple_SOURCES) $(datadir)/eo/examples/simple

uninstall-local:
	for f in $(eo_isa_SOURCES) ; do \
	  rm -f $(datadir)/eo/examples/isa/$$f ; \
	done
	for f in $(evas_SOURCES) ; do \
	  rm -f $(datadir)/eo/examples/evas/$$f ; \
	done
	for f in $(simple_SOURCES) ; do \
	  rm -f $(datadir)/eo/examples/simple/$$f ; \
	done