Makefile.am revision 90926
1# $Id: Makefile.am,v 1.117 2001/10/27 17:47:53 assar Exp $ 2 3include $(top_srcdir)/Makefile.am.common 4 5ACLOCAL_AMFLAGS = -I ../../cf 6 7CLEANFILES = roken.h make-roken.c $(XHEADERS) 8 9lib_LTLIBRARIES = libroken.la 10libroken_la_LDFLAGS = -version-info 15:0:6 11 12noinst_PROGRAMS = make-roken snprintf-test 13 14nodist_make_roken_SOURCES = make-roken.c 15 16check_PROGRAMS = \ 17 base64-test \ 18 getaddrinfo-test \ 19 parse_bytes-test \ 20 snprintf-test \ 21 strpftime-test 22 23TESTS = $(check_PROGRAMS) 24 25LIB_crypt = @LIB_crypt@ 26 27LDADD = libroken.la $(LIB_crypt) 28make_roken_LDADD = 29 30strpftime_test_SOURCES = strpftime-test.c strftime.c strptime.c snprintf.c 31snprintf_test_SOURCES = snprintf-test.c snprintf.c 32snprintf_test_CFLAGS = -DTEST_SNPRINTF 33 34libroken_la_SOURCES = \ 35 base64.c \ 36 bswap.c \ 37 concat.c \ 38 environment.c \ 39 eread.c \ 40 esetenv.c \ 41 ewrite.c \ 42 getaddrinfo_hostspec.c \ 43 get_default_username.c \ 44 get_window_size.c \ 45 getarg.c \ 46 getnameinfo_verified.c \ 47 getprogname.c \ 48 h_errno.c \ 49 hostent_find_fqdn.c \ 50 issuid.c \ 51 k_getpwnam.c \ 52 k_getpwuid.c \ 53 mini_inetd.c \ 54 net_read.c \ 55 net_write.c \ 56 parse_bytes.c \ 57 parse_time.c \ 58 parse_units.c \ 59 resolve.c \ 60 roken_gethostby.c \ 61 rtbl.c \ 62 rtbl.h \ 63 setprogname.c \ 64 signal.c \ 65 simple_exec.c \ 66 snprintf.c \ 67 socket.c \ 68 strcollect.c \ 69 timeval.c \ 70 tm2time.c \ 71 unvis.c \ 72 verify.c \ 73 vis.c \ 74 vis.h \ 75 warnerr.c \ 76 write_pid.c \ 77 xdbm.h 78 79EXTRA_libroken_la_SOURCES = \ 80 chown.c \ 81 copyhostent.c \ 82 daemon.c \ 83 ecalloc.c \ 84 emalloc.c \ 85 erealloc.c \ 86 estrdup.c \ 87 err.c \ 88 err.hin \ 89 errx.c \ 90 fchown.c \ 91 flock.c \ 92 fnmatch.c \ 93 fnmatch.hin \ 94 freeaddrinfo.c \ 95 freehostent.c \ 96 gai_strerror.c \ 97 getdtablesize.c \ 98 getegid.c \ 99 geteuid.c \ 100 getgid.c \ 101 gethostname.c \ 102 getifaddrs.c \ 103 getipnodebyaddr.c \ 104 getipnodebyname.c \ 105 getopt.c \ 106 gettimeofday.c \ 107 getuid.c \ 108 getusershell.c \ 109 glob.hin \ 110 hstrerror.c \ 111 ifaddrs.hin \ 112 inet_aton.c \ 113 inet_ntop.c \ 114 inet_pton.c \ 115 initgroups.c \ 116 innetgr.c \ 117 iruserok.c \ 118 lstat.c \ 119 memmove.c \ 120 mkstemp.c \ 121 putenv.c \ 122 rcmd.c \ 123 readv.c \ 124 recvmsg.c \ 125 sendmsg.c \ 126 setegid.c \ 127 setenv.c \ 128 seteuid.c \ 129 strcasecmp.c \ 130 strdup.c \ 131 strerror.c \ 132 strftime.c \ 133 strlcat.c \ 134 strlcpy.c \ 135 strlwr.c \ 136 strncasecmp.c \ 137 strndup.c \ 138 strnlen.c \ 139 strptime.c \ 140 strsep.c \ 141 strsep_copy.c \ 142 strtok_r.c \ 143 strupr.c \ 144 swab.c \ 145 unsetenv.c \ 146 verr.c \ 147 verrx.c \ 148 vis.hin \ 149 vsyslog.c \ 150 vwarn.c \ 151 vwarnx.c \ 152 warn.c \ 153 warnx.c \ 154 writev.c 155 156EXTRA_DIST = roken.awk roken.h.in 157 158libroken_la_LIBADD = @LTLIBOBJS@ $(DBLIB) 159 160$(LTLIBOBJS) $(libroken_la_OBJECTS): $(include_HEADERS) roken.h $(XHEADERS) 161 162BUILT_SOURCES = make-roken.c roken.h 163 164if have_err_h 165err_h = 166else 167err_h = err.h 168endif 169 170if have_fnmatch_h 171fnmatch_h = 172else 173fnmatch_h = fnmatch.h 174endif 175 176if have_glob_h 177glob_h = 178else 179glob_h = glob.h 180endif 181 182if have_ifaddrs_h 183ifaddrs_h = 184else 185ifaddrs_h = ifaddrs.h 186endif 187 188if have_vis_h 189vis_h = 190else 191vis_h = vis.h 192endif 193 194## these are controlled by configure 195XHEADERS = $(err_h) $(fnmatch_h) $(glob_h) $(ifaddrs_h) $(vis_h) 196 197include_HEADERS = \ 198 base64.h \ 199 getarg.h \ 200 parse_bytes.h \ 201 parse_time.h \ 202 parse_units.h \ 203 resolve.h \ 204 roken-common.h \ 205 rtbl.h \ 206 xdbm.h \ 207 $(XHEADERS) 208 209nodist_include_HEADERS = roken.h 210 211man_MANS = getarg.3 212 213SUFFIXES = .hin 214.hin.h: 215 cp $< $@ 216 217roken.h: make-roken$(EXEEXT) 218 @./make-roken$(EXEEXT) > tmp.h ;\ 219 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ 220 else rm -f roken.h; mv tmp.h roken.h; fi 221 222make-roken.c: roken.h.in roken.awk 223 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c 224