summaryrefslogtreecommitdiff
path: root/src/examples/eio/Makefile.am
blob: 4fccc703104b991c5e758cfa6f861571dec317fa (plain)
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
87
88
89
90
91
92
93
94
95
MAINTAINERCLEANFILES = Makefile.in

AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/efl \
-I$(top_srcdir)/src/lib/eina \
-I$(top_srcdir)/src/lib/emile \
-I$(top_srcdir)/src/lib/eo \
-I$(top_srcdir)/src/lib/eet \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/eio \
-I$(top_builddir)/src/lib/eina \
-I$(top_builddir)/src/lib/emile \
-I$(top_builddir)/src/lib/eo \
-I$(top_builddir)/src/lib/efl \
-I$(top_builddir)/src/lib/eet \
-I$(top_builddir)/src/lib/ecore \
-I$(top_builddir)/src/lib/eio

if HAVE_WINDOWS
AM_CPPFLAGS += \
-I$(top_srcdir)/src/lib/evil \
-I$(top_builddir)/src/lib/evil
endif

EXTRA_PROGRAMS = \
eio_file_ls \
eio_file_copy \
eio_job_open \
eio_job_open_multi \
eio_job_ls \
eio_sentry

EIO_EXAMPLES_LDADD = \
$(top_builddir)/src/lib/eio/libeio.la \
$(top_builddir)/src/lib/eo/libeo.la \
$(top_builddir)/src/lib/ecore/libecore.la \
$(top_builddir)/src/lib/efl/libefl.la \
$(top_builddir)/src/lib/eet/libeet.la \
$(top_builddir)/src/lib/emile/libemile.la \
$(top_builddir)/src/lib/eina/libeina.la \
@EIO_LDFLAGS@

eio_file_ls_SOURCES = eio_file_ls.c
eio_file_ls_LDADD = \
$(EIO_EXAMPLES_LDADD)

eio_file_copy_SOURCES = eio_file_copy.c
eio_file_copy_LDADD = \
$(EIO_EXAMPLES_LDADD)

eio_job_open_SOURCES = eio_job_open.c
eio_job_open_LDADD = \
$(EIO_EXAMPLES_LDADD)

eio_job_open_multi_SOURCES = eio_job_open_multi.c
eio_job_open_multi_LDADD = \
$(EIO_EXAMPLES_LDADD)

eio_job_ls_SOURCES = eio_job_ls.c
eio_job_ls_LDADD = \
$(EIO_EXAMPLES_LDADD)

eio_sentry_SOURCES = eio_sentry.c
eio_sentry_LDADD = \
$(EIO_EXAMPLES_LDADD)

SRCS = \
eio_file_ls.c \
eio_file_copy.c \
eio_job_open.c \
eio_job_open_multi.c \
eio_job_ls.c \
eio_sentry.c

DATA_FILES = Makefile.examples

EXTRA_DIST = $(DATA_FILES)

examples: $(EXTRA_PROGRAMS)

clean-local:
	rm -f $(EXTRA_PROGRAMS)

install-examples:
	$(MKDIR_P) $(DESTDIR)$(datadir)/eio/examples
	cd $(srcdir) && $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(DESTDIR)$(datadir)/eio/examples

uninstall-local:
	for f in $(SRCS) $(DATA_FILES); do \
	  rm -f $(DESTDIR)$(datadir)/eio/examples/$$f ; \
	done

if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif