1 # $Id: Makefile.am,v 1.70 2000/02/19 18:53:13 assar Exp $
3 include $(top_srcdir)/Makefile.am.common
5 CLEANFILES = roken.h make-roken.c print_version.h
7 lib_LTLIBRARIES = libroken.la
8 libroken_la_LDFLAGS = -version-info 7:1:2
10 noinst_PROGRAMS = make-roken make-print-version
12 check_PROGRAMS = parse_bytes-test strpftime-test getaddrinfo-test
13 TESTS = $(check_PROGRAMS)
15 getaddrinfo_test_LDADD = libroken.la
16 parse_bytes_test_LDADD = libroken.la
17 strpftime_test_SOURCES = strpftime-test.c strftime.c strptime.c snprintf.c
21 ## need to link with des here; otherwise, if krb4 is shared the link
22 ## will fail with unresolved references
23 make_print_version_LDADD += $(LIB_krb4) -ldes
27 libroken_la_SOURCES = \
35 getaddrinfo_hostspec.c \
36 get_default_username.c \
39 getnameinfo_verified.c \
62 EXTRA_libroken_la_SOURCES = \
133 EXTRA_DIST = resource.h roken.awk roken.def roken.dsp roken.h.in \
138 libroken_la_LIBADD = @LTLIBOBJS@
140 $(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h
142 include_HEADERS = $(err_h) base64.h getarg.h \
143 parse_bytes.h parse_time.h parse_units.h \
144 resolve.h roken.h roken-common.h
146 build_HEADERZ = $(err_h) $(fnmatch_h) $(glob_h) xdbm.h
157 fnmatch_h = fnmatch.h
166 roken.h: make-roken$(EXEEXT)
167 @./make-roken$(EXEEXT) > tmp.h ;\
168 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
169 else rm -f roken.h; mv tmp.h roken.h; fi
171 make-roken.c: roken.h.in roken.awk
172 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c
174 print_version.lo: print_version.h
176 print_version.h: make-print-version$(EXEEXT)
177 ./make-print-version$(EXEEXT) print_version.h
179 make-print-version.o: $(top_builddir)/include/version.h