Merging serial model from branch; converting to the hideous indentation style of...
[lwes-journaller.git] / src / Makefile.am
blob6a2690e10641a7fa9d4eac6af30a6f7f28352d40
1 # BEGIN: Variables to change.
3 # any additional includes to add to the compile lines
5 myincludes = $(LWES_CFLAGS) $(MONDEMAND_CFLAGS)
7 # any additional files to add to the distribution
9 myextradist =
11 # any additional files to clean up with 'make clean'
13 mycleanfiles =
15 # any additional files to clean up with 'make maintainer-clean'
17 mymaintainercleanfiles = config.h.in
19 # list of source files comprising program
21 commonsource = \
22                                                                 opt.c \
23                                                                 log.c \
24                                                                 lwes_mondemand.c \
25                                                                 header.c \
26                                                                 journal_factory.c \
27                                                                 journal_file.c \
28                                                                 journal_gz.c \
29                                                                 queue_factory.c \
30                                                                 queue_mqueue.c \
31                                                                 queue_msg.c \
32                                                                 queue_to_journal.c \
33                                                                 sig.c \
34                                                                 xport.c \
35                                                                 xport_to_queue.c \
36                                                                 xport_udp.c \
37                                                                 serial_model.c \
38                                                                 stats.c \
39                                                                 rename_journal.c
41 journallersource = \
42                                                                 lwes-journaller.c
44 rotatesourcefiles = \
45                                                                 journaller_rotate_logs.c
47 queuejournalsources = \
48                                                                 queue_to_journal_main.c
50 xportsources = \
51                                                                 xport_to_queue_main.c
53 mysourcefiles =
55 bin_PROGRAMS = \
56   lwes-journaller \
57         lwes-journaller-rotate \
58         queue_to_journal \
59         xport_to_queue
61 lwes_journaller_SOURCES = ${commonsource} ${journallersource}
62 lwes_journaller_rotate_SOURCES = ${commonsource} ${rotatesourcefiles}
63 queue_to_journal_SOURCES = ${commonsource} ${queuejournalsources}
64 xport_to_queue_SOURCES = ${commonsource} ${xportsources}
66 LDADD = $(LWES_LIBS) $(MONDEMAND_LIBS) $(Z_LIBS) $(THREAD_LIBS) -lpopt -lltdl
68 lwes_journaller_LDFLAGS=-rdynamic
69 lwes_journaller_rotate_LDFLAGS=
70 queue_to_journal_LDFLAGS=
71 xport_to_queue_LDFLAGS=
73 # END: Variables to change
74 # past here, hopefully, there is no need to edit anything
76 INCLUDES = ${myincludes}
78 EXTRA_DIST =                            \
79   ${myextradist}
81 CLEANFILES =                            \
82   *.bb                                  \
83   *.bbg                                 \
84   *.da                                  \
85   *.gcno                                \
86   *.gcda                                \
87   ${mycleanfiles}
89 MAINTAINERCLEANFILES =                  \
90   Makefile.in                           \
91   ${mymaintainercleanfiles}
93 # .BEGIN is ignored by GNU make so we can use it as a guard
94 .BEGIN:
95         @echo "error: GNU Make is required, try aliasing gmake to make"
96         @exit 1