1 # $Id: Makefile.am,v 1.54 1999/12/03 04:04: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 3:2:0
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_LDADD = strftime.o strptime.o
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 get_default_username.c \
60 EXTRA_libroken_la_SOURCES = \
131 EXTRA_DIST = resource.h roken.awk roken.def roken.dsp roken.h.in \
136 libroken_la_LIBADD = @LTLIBOBJS@
138 $(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h
140 include_HEADERS = $(err_h) base64.h getarg.h \
141 parse_bytes.h parse_time.h parse_units.h \
142 resolve.h roken.h roken-common.h
144 build_HEADERZ = $(err_h) $(fnmatch_h) $(glob_h) xdbm.h
155 fnmatch_h = fnmatch.h
165 @./make-roken > tmp.h ;\
166 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
167 else rm -f roken.h; mv tmp.h roken.h; fi
169 make-roken.c: roken.h.in roken.awk
170 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c
172 print_version.lo: print_version.h
174 print_version.h: make-print-version
175 ./make-print-version print_version.h
177 make-print-version.o: $(top_builddir)/include/version.h