Makefile.am revision 57416
1# $Id: Makefile.am,v 1.67 2000/02/07 03:32:15 assar Exp $ 2 3include $(top_srcdir)/Makefile.am.common 4 5CLEANFILES = roken.h make-roken.c print_version.h 6 7lib_LTLIBRARIES = libroken.la 8libroken_la_LDFLAGS = -version-info 6:0:1 9 10noinst_PROGRAMS = make-roken make-print-version 11 12check_PROGRAMS = parse_bytes-test strpftime-test getaddrinfo-test 13TESTS = $(check_PROGRAMS) 14 15getaddrinfo_test_LDADD = libroken.la 16parse_bytes_test_LDADD = libroken.la 17strpftime_test_SOURCES = strpftime-test.c strftime.c strptime.c snprintf.c 18 19if KRB4 20if KRB5 21## need to link with des here; otherwise, if krb4 is shared the link 22## will fail with unresolved references 23make_print_version_LDADD += $(LIB_krb4) -ldes 24endif 25endif 26 27libroken_la_SOURCES = \ 28 base64.c \ 29 concat.c \ 30 emalloc.c \ 31 eread.c \ 32 erealloc.c \ 33 estrdup.c \ 34 ewrite.c \ 35 get_default_username.c \ 36 get_window_size.c \ 37 getarg.c \ 38 getnameinfo_verified.c \ 39 issuid.c \ 40 k_getpwnam.c \ 41 k_getpwuid.c \ 42 mini_inetd.c \ 43 net_read.c \ 44 net_write.c \ 45 parse_bytes.c \ 46 parse_time.c \ 47 parse_units.c \ 48 print_version.c \ 49 resolve.c \ 50 roken_gethostby.c \ 51 signal.c \ 52 simple_exec.c \ 53 snprintf.c \ 54 socket.c \ 55 strcollect.c \ 56 tm2time.c \ 57 verify.c \ 58 warnerr.c \ 59 xdbm.h 60 61EXTRA_libroken_la_SOURCES = \ 62 chown.c \ 63 copyhostent.c \ 64 daemon.c \ 65 err.c \ 66 err.h \ 67 errx.c \ 68 fchown.c \ 69 flock.c \ 70 fnmatch.c \ 71 fnmatch.h \ 72 freeaddrinfo.c \ 73 freehostent.c \ 74 gai_strerror.c \ 75 getaddrinfo.c \ 76 getdtablesize.c \ 77 getegid.c \ 78 geteuid.c \ 79 getgid.c \ 80 gethostname.c \ 81 getipnodebyaddr.c \ 82 getipnodebyname.c \ 83 getnameinfo.c \ 84 getopt.c \ 85 gettimeofday.c \ 86 getuid.c \ 87 getusershell.c \ 88 glob.h \ 89 hstrerror.c \ 90 inet_aton.c \ 91 inet_ntop.c \ 92 inet_pton.c \ 93 initgroups.c \ 94 innetgr.c \ 95 iruserok.c \ 96 lstat.c \ 97 memmove.c \ 98 mkstemp.c \ 99 putenv.c \ 100 rcmd.c \ 101 readv.c \ 102 recvmsg.c \ 103 sendmsg.c \ 104 setegid.c \ 105 setenv.c \ 106 seteuid.c \ 107 strcasecmp.c \ 108 strdup.c \ 109 strerror.c \ 110 strftime.c \ 111 strlcat.c \ 112 strlcpy.c \ 113 strlwr.c \ 114 strncasecmp.c \ 115 strndup.c \ 116 strnlen.c \ 117 strptime.c \ 118 strsep.c \ 119 strtok_r.c \ 120 strupr.c \ 121 swab.c \ 122 unsetenv.c \ 123 verr.c \ 124 verrx.c \ 125 vsyslog.c \ 126 vwarn.c \ 127 vwarnx.c \ 128 warn.c \ 129 warnx.c \ 130 writev.c 131 132EXTRA_DIST = resource.h roken.awk roken.def roken.dsp roken.h.in \ 133 roken.mak roken.rc 134 135 136 137libroken_la_LIBADD = @LTLIBOBJS@ 138 139$(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h 140 141include_HEADERS = $(err_h) base64.h getarg.h \ 142 parse_bytes.h parse_time.h parse_units.h \ 143 resolve.h roken.h roken-common.h 144 145build_HEADERZ = $(err_h) $(fnmatch_h) $(glob_h) xdbm.h 146 147if have_err_h 148err_h = 149else 150err_h = err.h 151endif 152 153if have_fnmatch_h 154fnmatch_h = 155else 156fnmatch_h = fnmatch.h 157endif 158 159if have_glob_h 160glob_h = 161else 162glob_h = glob.h 163endif 164 165roken.h: make-roken$(EXEEXT) 166 @./make-roken$(EXEEXT) > tmp.h ;\ 167 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ 168 else rm -f roken.h; mv tmp.h roken.h; fi 169 170make-roken.c: roken.h.in roken.awk 171 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c 172 173print_version.lo: print_version.h 174 175print_version.h: make-print-version$(EXEEXT) 176 ./make-print-version$(EXEEXT) print_version.h 177 178make-print-version.o: $(top_builddir)/include/version.h 179