1 # $Id: Makefile.am,v 1.122.6.3 2003/10/14 16:13:15 joda Exp $
3 include $(top_srcdir)/Makefile.am.common
5 ACLOCAL_AMFLAGS = -I ../../cf
7 CLEANFILES = roken.h make-roken.c $(XHEADERS)
9 lib_LTLIBRARIES = libroken.la
10 libroken_la_LDFLAGS = -version-info 16:3:0
12 noinst_PROGRAMS = make-roken snprintf-test
14 nodist_make_roken_SOURCES = make-roken.c
24 TESTS = $(check_PROGRAMS)
26 LDADD = libroken.la $(LIB_crypt)
29 noinst_LTLIBRARIES = libtest.la
30 libtest_la_SOURCES = strftime.c strptime.c snprintf.c
31 libtest_la_CFLAGS = -DTEST_SNPRINTF
33 parse_reply_test_SOURCES = parse_reply-test.c resolve.c
34 parse_reply_test_CFLAGS = -DTEST_RESOLVE
36 strpftime_test_SOURCES = strpftime-test.c
37 strpftime_test_LDADD = libtest.la $(LDADD)
38 snprintf_test_SOURCES = snprintf-test.c
39 snprintf_test_LDADD = libtest.la $(LDADD)
40 snprintf_test_CFLAGS = -DTEST_SNPRINTF
42 libroken_la_SOURCES = \
50 getaddrinfo_hostspec.c \
51 get_default_username.c \
54 getnameinfo_verified.c \
87 EXTRA_libroken_la_SOURCES = \
93 EXTRA_DIST = roken.awk roken.h.in
95 libroken_la_LIBADD = @LTLIBOBJS@ $(DBLIB)
97 $(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h $(XHEADERS)
99 BUILT_SOURCES = make-roken.c roken.h
110 fnmatch_h = fnmatch.h
122 ifaddrs_h = ifaddrs.h
131 ## these are controlled by configure
132 XHEADERS = $(err_h) $(fnmatch_h) $(glob_h) $(ifaddrs_h) $(vis_h)
146 nodist_include_HEADERS = roken.h
154 roken.h: make-roken$(EXEEXT)
155 @./make-roken$(EXEEXT) > tmp.h ;\
156 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
157 else rm -f roken.h; mv tmp.h roken.h; fi
159 make-roken.c: roken.h.in roken.awk
160 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c