Makefile.am revision 72445
1# $Id: Makefile.am,v 1.94 2001/01/30 01:53:30 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 11:1:2 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 concat.c \ 38 emalloc.c \ 39 environment.c \ 40 eread.c \ 41 erealloc.c \ 42 esetenv.c \ 43 estrdup.c \ 44 ewrite.c \ 45 getaddrinfo_hostspec.c \ 46 get_default_username.c \ 47 get_window_size.c \ 48 getarg.c \ 49 getnameinfo_verified.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 signal.c \ 64 simple_exec.c \ 65 snprintf.c \ 66 socket.c \ 67 strcollect.c \ 68 timeval.c \ 69 tm2time.c \ 70 unvis.c \ 71 verify.c \ 72 vis.c \ 73 vis.h \ 74 warnerr.c \ 75 write_pid.c \ 76 xdbm.h 77 78EXTRA_libroken_la_SOURCES = \ 79 chown.c \ 80 copyhostent.c \ 81 daemon.c \ 82 err.c \ 83 err.hin \ 84 errx.c \ 85 fchown.c \ 86 flock.c \ 87 fnmatch.c \ 88 fnmatch.hin \ 89 freeaddrinfo.c \ 90 freehostent.c \ 91 gai_strerror.c \ 92 getaddrinfo.c \ 93 getdtablesize.c \ 94 getegid.c \ 95 geteuid.c \ 96 getgid.c \ 97 gethostname.c \ 98 getifaddrs.c \ 99 getipnodebyaddr.c \ 100 getipnodebyname.c \ 101 getopt.c \ 102 gettimeofday.c \ 103 getuid.c \ 104 getusershell.c \ 105 glob.hin \ 106 hstrerror.c \ 107 ifaddrs.hin \ 108 inet_aton.c \ 109 inet_ntop.c \ 110 inet_pton.c \ 111 initgroups.c \ 112 innetgr.c \ 113 iruserok.c \ 114 lstat.c \ 115 memmove.c \ 116 mkstemp.c \ 117 putenv.c \ 118 rcmd.c \ 119 readv.c \ 120 recvmsg.c \ 121 sendmsg.c \ 122 setegid.c \ 123 setenv.c \ 124 seteuid.c \ 125 strcasecmp.c \ 126 strdup.c \ 127 strerror.c \ 128 strftime.c \ 129 strlcat.c \ 130 strlcpy.c \ 131 strlwr.c \ 132 strncasecmp.c \ 133 strndup.c \ 134 strnlen.c \ 135 strptime.c \ 136 strsep.c \ 137 strsep_copy.c \ 138 strtok_r.c \ 139 strupr.c \ 140 swab.c \ 141 unsetenv.c \ 142 verr.c \ 143 verrx.c \ 144 vsyslog.c \ 145 vwarn.c \ 146 vwarnx.c \ 147 warn.c \ 148 warnx.c \ 149 writev.c 150 151EXTRA_DIST = roken.awk roken.h.in 152 153libroken_la_LIBADD = @LTLIBOBJS@ 154 155$(LTLIBOBJS) $(libroken_la_OBJECTS): $(include_HEADERS) roken.h 156 157BUILT_SOURCES = make-roken.c roken.h 158 159if have_err_h 160err_h = 161else 162err_h = err.h 163endif 164 165if have_fnmatch_h 166fnmatch_h = 167else 168fnmatch_h = fnmatch.h 169endif 170 171if have_glob_h 172glob_h = 173else 174glob_h = glob.h 175endif 176 177if have_ifaddrs_h 178ifaddrs_h = 179else 180ifaddrs_h = ifaddrs.h 181endif 182 183if have_vis_h 184vis_h = 185else 186vis_h = vis.h 187endif 188 189## these are controlled by configure 190XHEADERS = $(err_h) $(fnmatch_h) $(glob_h) $(ifaddrs_h) $(vis_h) 191 192include_HEADERS = \ 193 base64.h \ 194 getarg.h \ 195 parse_bytes.h \ 196 parse_time.h \ 197 parse_units.h \ 198 resolve.h \ 199 roken-common.h \ 200 rtbl.h \ 201 xdbm.h \ 202 $(XHEADERS) 203 204nodist_include_HEADERS = roken.h 205 206 207SUFFIXES += .hin 208.hin.h: 209 cp $< $@ 210 211roken.h: make-roken$(EXEEXT) 212 @./make-roken$(EXEEXT) > tmp.h ;\ 213 if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ 214 else rm -f roken.h; mv tmp.h roken.h; fi 215 216make-roken.c: roken.h.in roken.awk 217 $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c 218