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