Makefile.am revision 57419
1284345Ssjg# $Id: Makefile.am,v 1.69 2000/02/13 20:34:03 assar Exp $ 2284345Ssjg 3284345Ssjginclude $(top_srcdir)/Makefile.am.common 4284345Ssjg 5284345SsjgCLEANFILES = roken.h make-roken.c print_version.h 6284345Ssjg 7284345Ssjglib_LTLIBRARIES = libroken.la 8284345Ssjglibroken_la_LDFLAGS = -version-info 7:0:2 9284345Ssjg 10284345Ssjgnoinst_PROGRAMS = make-roken make-print-version 11284345Ssjg 12284345Ssjgcheck_PROGRAMS = parse_bytes-test strpftime-test getaddrinfo-test 13284345SsjgTESTS = $(check_PROGRAMS) 14284345Ssjg 15284345Ssjggetaddrinfo_test_LDADD = libroken.la 16284345Ssjgparse_bytes_test_LDADD = libroken.la 17284345Ssjgstrpftime_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 getaddrinfo_hostspec.c \ 36 get_default_username.c \ 37 get_window_size.c \ 38 getarg.c \ 39 getnameinfo_verified.c \ 40 issuid.c \ 41 k_getpwnam.c \ 42 k_getpwuid.c \ 43 mini_inetd.c \ 44 net_read.c \ 45 net_write.c \ 46 parse_bytes.c \ 47 parse_time.c \ 48 parse_units.c \ 49 print_version.c \ 50 resolve.c \ 51 roken_gethostby.c \ 52 signal.c \ 53 simple_exec.c \ 54 snprintf.c \ 55 socket.c \ 56 strcollect.c \ 57 tm2time.c \ 58 verify.c \ 59 warnerr.c \ 60 xdbm.h 61 62EXTRA_libroken_la_SOURCES = \ 63 chown.c \ 64 copyhostent.c \ 65 daemon.c \ 66 err.c \ 67 err.h \ 68 errx.c \ 69 fchown.c \ 70 flock.c \ 71 fnmatch.c \ 72 fnmatch.h \ 73 freeaddrinfo.c \ 74 freehostent.c \ 75 gai_strerror.c \ 76 getaddrinfo.c \ 77 getdtablesize.c \ 78 getegid.c \ 79 geteuid.c \ 80 getgid.c \ 81 gethostname.c \ 82 getipnodebyaddr.c \ 83 getipnodebyname.c \ 84 getnameinfo.c \ 85 getopt.c \ 86 gettimeofday.c \ 87 getuid.c \ 88 getusershell.c \ 89 glob.h \ 90 hstrerror.c \ 91 inet_aton.c \ 92 inet_ntop.c \ 93 inet_pton.c \ 94 initgroups.c \ 95 innetgr.c \ 96 iruserok.c \ 97 lstat.c \ 98 memmove.c \ 99 mkstemp.c \ 100 putenv.c \ 101 rcmd.c \ 102 readv.c \ 103 recvmsg.c \ 104 sendmsg.c \ 105 setegid.c \ 106 setenv.c \ 107 seteuid.c \ 108 strcasecmp.c \ 109 strdup.c \ 110 strerror.c \ 111 strftime.c \ 112 strlcat.c \ 113 strlcpy.c \ 114 strlwr.c \ 115 strncasecmp.c \ 116 strndup.c \ 117 strnlen.c \ 118 strptime.c \ 119 strsep.c \ 120 strtok_r.c \ 121 strupr.c \ 122 swab.c \ 123 unsetenv.c \ 124 verr.c \ 125 verrx.c \ 126 vsyslog.c \ 127 vwarn.c \ 128 vwarnx.c \ 129 warn.c \ 130 warnx.c \ 131 writev.c 132 133EXTRA_DIST = resource.h roken.awk roken.def roken.dsp roken.h.in \ 134 roken.mak roken.rc 135 136 137 138libroken_la_LIBADD = @LTLIBOBJS@ 139 140$(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h 141 142include_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 145 146build_HEADERZ = $(err_h) $(fnmatch_h) $(glob_h) xdbm.h 147 148if have_err_h 149err_h = 150else 151err_h = err.h 152endif 153 154if have_fnmatch_h 155fnmatch_h = 156else 157fnmatch_h = fnmatch.h 158endif 159 160if have_glob_h 161glob_h = 162else 163glob_h = glob.h 164endif 165 166roken.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 170 171make-roken.c: roken.h.in roken.awk 172 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c 173 174print_version.lo: print_version.h 175 176print_version.h: make-print-version$(EXEEXT) 177 ./make-print-version$(EXEEXT) print_version.h 178 179make-print-version.o: $(top_builddir)/include/version.h 180