aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Makefile.am
blob: 38c59638b2493e15247b3b1f04371e271038ecf7 (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
CFLAGS += -I$(top_builddir)/include -I$(top_srcdir)/src
VLDFLAGS =
VLDADD = $(top_builddir)/src/libembedlog.la

EXTRA_PROGRAMS = print_to_file \
	print_thread_safe \
	print_options \
	print_simple \
	print_memory \
	print_tty

print_to_file_SOURCES = print-to-file.c
print_thread_safe_SOURCES = print-thread-safe.c
print_options_SOURCES = print-options.c
print_simple_SOURCES = print-simple.c
print_memory_SOURCES = print-memory.c
print_tty_SOURCES = print-tty.c

print_to_file_LDFLAGS = $(VLDFLAGS)
print_thread_safe_LDFLAGS = $(VLDFLAGS)
print_options_LDFLAGS = $(VLDFLAGS)
print_simple_LDFLAGS = $(VLDFLAGS)
print_memory_LDFLAGS = $(VLDFLAGS)
print_tty_LDFLAGS = $(VLDFLAGS)

print_to_file_LDADD = $(VLDADD)
print_thread_safe_LDADD = $(VLDADD)
print_options_LDADD = $(VLDADD)
print_simple_LDADD = $(VLDADD)
print_memory_LDADD = $(VLDADD)
print_tty_LDADD = $(VLDADD)

.PHONY: examples
examples: $(EXTRA_PROGRAMS)

clean-local:
	rm -f $(EXTRA_PROGRAMS)