Makefile.am 914 Bytes
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
8

9 10
include $(top_srcdir)/common.mk

11 12 13 14
AM_CFLAGS = \
	$(ERROR_CFLAGS) \
	$(GLIB_CFLAGS) \
	-I $(top_srcdir)/address
15

16
COMMON_LDADD = libudp.la $(GLIB_LIBS) $(top_builddir)/address/libaddress.la
17

18
noinst_LTLIBRARIES = libudp.la
19

Dafydd Harries's avatar
Dafydd Harries committed
20 21 22
libudp_la_SOURCES = \
	udp.h \
	udp-generic.c \
23 24
	udp-bsd.h \
	udp-bsd.c \
Dafydd Harries's avatar
Dafydd Harries committed
25 26 27
	udp-fake.h \
	udp-fake.c

28 29
noinst_PROGRAMS = udp-client udp-echo-server

30
udp_client_LDADD = $(COMMON_LDADD)
31

32
udp_echo_server_LDADD = $(COMMON_LDADD)
33

34
check_PROGRAMS = test-fake test-bsd
35
dist_check_SCRIPTS = test-echo.sh
36

37
test_fake_LDADD = $(COMMON_LDADD)
38

39 40
test_bsd_LDADD = $(COMMON_LDADD)

Dafydd Harries's avatar
Dafydd Harries committed
41
test-echo.sh::
42 43
	chmod +x $(srcdir)/$@

44
TESTS = $(dist_check_SCRIPTS) $(check_PROGRAMS)
Dafydd Harries's avatar
Dafydd Harries committed
45

46
pkginclude_HEADERS = udp.h udp-fake.h udp-bsd.h
47