summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 6fa1e4b76e200b5fc2872d0a1ecf51130d558227 (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
SUBDIRS=doc

bin_PROGRAMS = amqp-publish amqp-get amqp-consume amqp-declare-queue amqp-delete-queue

# The -I to srcdir's librabbitmq is for the main amqp header
# files. The -I to builddir's librabbitmq is less obvious; it's for
# VPATH-based builds: the amqp_framing.h gets generated into the
# *build* directory, not the source directory.
AM_CFLAGS = -I$(top_srcdir)/librabbitmq -I$(srcdir)/$(PLATFORM_DIR) -I$(top_builddir)/librabbitmq
AM_LDFLAGS = $(top_builddir)/librabbitmq/librabbitmq.la

LDADD=$(LIBPOPT)

noinst_HEADERS = common.h $(PLATFORM_DIR)/process.h

COMMON_SOURCES = common.c

if WINDOWS
COMMON_SOURCES += windows/compat.c
endif

amqp_publish_SOURCES = publish.c $(COMMON_SOURCES)
amqp_get_SOURCES = get.c $(COMMON_SOURCES)
amqp_consume_SOURCES = consume.c $(PLATFORM_DIR)/process.c $(COMMON_SOURCES)
amqp_declare_queue_SOURCES = declare_queue.c $(COMMON_SOURCES)
amqp_delete_queue_SOURCES = delete_queue.c $(COMMON_SOURCES)

EXTRA_DIST = \
	unix/process.c unix/process.h \
	windows/process.c windows/process.h \
	windows/compat.c windows/compat.h