diff options
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r-- | examples/Makefile.am | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index 9655021..ea10f77 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,16 +1,29 @@ -noinst_PROGRAMS = amqp_sendstring amqp_exchange_declare amqp_listen amqp_producer amqp_consumer \ - amqp_unbind amqp_bind amqp_listenq +noinst_PROGRAMS = amqp_sendstring amqp_exchange_declare amqp_listen amqp_producer amqp_consumer amqp_unbind amqp_bind amqp_listenq AM_CFLAGS = -I$(top_srcdir)/librabbitmq + +if GCC +# Because we want to build under Microsoft's C compiler (for which +# there is apparently no demand for C99 support), it's a good idea +# to have gcc tell us when we stray from the old standard. +AM_CFLAGS += -ansi -pedantic +endif + +if USE_MSINTTYPES +AM_CFLAGS += -I$(top_srcdir)/msinttypes +endif + AM_LDFLAGS = $(top_builddir)/librabbitmq/librabbitmq.la -noinst_HEADERS = example_utils.h +noinst_HEADERS = utils.h + +COMMON_SOURCES = utils.c $(PLATFORM_DIR)/platform_utils.c -amqp_sendstring_SOURCES = amqp_sendstring.c example_utils.c -amqp_exchange_declare_SOURCES = amqp_exchange_declare.c example_utils.c -amqp_listen_SOURCES = amqp_listen.c example_utils.c -amqp_producer_SOURCES = amqp_producer.c example_utils.c -amqp_consumer_SOURCES = amqp_consumer.c example_utils.c -amqp_unbind_SOURCES = amqp_unbind.c example_utils.c -amqp_bind_SOURCES = amqp_bind.c example_utils.c -amqp_listenq_SOURCES = amqp_listenq.c example_utils.c +amqp_sendstring_SOURCES = amqp_sendstring.c $(COMMON_SOURCES) +amqp_exchange_declare_SOURCES = amqp_exchange_declare.c $(COMMON_SOURCES) +amqp_listen_SOURCES = amqp_listen.c $(COMMON_SOURCES) +amqp_producer_SOURCES = amqp_producer.c $(COMMON_SOURCES) +amqp_consumer_SOURCES = amqp_consumer.c $(COMMON_SOURCES) +amqp_unbind_SOURCES = amqp_unbind.c $(COMMON_SOURCES) +amqp_bind_SOURCES = amqp_bind.c $(COMMON_SOURCES) +amqp_listenq_SOURCES = amqp_listenq.c $(COMMON_SOURCES) |