2001-02-13 16:46:19 +00:00
|
|
|
# $Id: Makefile.am,v 1.94 2001/01/30 01:53:30 assar Exp $
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign no-dependencies
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
AM_CFLAGS += $(WFLAGS)
|
|
|
|
|
|
|
|
## ACLOCAL = @ACLOCAL@ -I cf
|
|
|
|
ACLOCAL_AMFLAGS = -I ../../cf
|
|
|
|
|
|
|
|
CLEANFILES = roken.h make-roken.c $(XHEADERS)
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libroken.la
|
2001-02-13 16:46:19 +00:00
|
|
|
libroken_la_LDFLAGS = -version-info 11:1:2
|
|
|
|
|
|
|
|
noinst_PROGRAMS = make-roken
|
|
|
|
|
|
|
|
nodist_make_roken_SOURCES = make-roken.c
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
check_PROGRAMS = parse_bytes-test \
|
|
|
|
strpftime-test \
|
|
|
|
getaddrinfo-test
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
TESTS = $(check_PROGRAMS)
|
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
LIB_crypt = @LIB_crypt@
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
common_LDADD = libroken.la $(LIB_crypt)
|
|
|
|
|
|
|
|
strpftime_test_SOURCES = strpftime-test.c strftime.c strptime.c snprintf.c
|
|
|
|
##snprintf_test_SOURCES = snprintf-test.c snprintf.c
|
|
|
|
##snprintf_test_LDADD = $(common_LDADD) -lm
|
|
|
|
getaddrinfo_test_LDADD = $(common_LDADD)
|
|
|
|
parse_bytes_test_LDADD = $(common_LDADD)
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
libroken_la_SOURCES = \
|
|
|
|
base64.c \
|
|
|
|
concat.c \
|
|
|
|
emalloc.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
environment.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
eread.c \
|
|
|
|
erealloc.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
esetenv.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
estrdup.c \
|
|
|
|
ewrite.c \
|
2000-02-24 11:19:29 +00:00
|
|
|
getaddrinfo_hostspec.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
get_default_username.c \
|
|
|
|
get_window_size.c \
|
|
|
|
getarg.c \
|
|
|
|
getnameinfo_verified.c \
|
|
|
|
issuid.c \
|
|
|
|
k_getpwnam.c \
|
|
|
|
k_getpwuid.c \
|
|
|
|
mini_inetd.c \
|
|
|
|
net_read.c \
|
|
|
|
net_write.c \
|
|
|
|
parse_bytes.c \
|
|
|
|
parse_time.c \
|
|
|
|
parse_units.c \
|
|
|
|
resolve.c \
|
|
|
|
roken_gethostby.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
rtbl.c \
|
|
|
|
rtbl.h \
|
2000-01-09 20:58:00 +00:00
|
|
|
signal.c \
|
|
|
|
simple_exec.c \
|
|
|
|
snprintf.c \
|
|
|
|
socket.c \
|
2000-02-24 11:07:16 +00:00
|
|
|
strcollect.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
timeval.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
tm2time.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
unvis.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
verify.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
vis.c \
|
|
|
|
vis.h \
|
2000-01-09 20:58:00 +00:00
|
|
|
warnerr.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
write_pid.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
xdbm.h
|
|
|
|
|
|
|
|
EXTRA_libroken_la_SOURCES = \
|
|
|
|
chown.c \
|
|
|
|
copyhostent.c \
|
|
|
|
daemon.c \
|
|
|
|
err.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
err.hin \
|
2000-01-09 20:58:00 +00:00
|
|
|
errx.c \
|
|
|
|
fchown.c \
|
|
|
|
flock.c \
|
|
|
|
fnmatch.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
fnmatch.hin \
|
2000-01-09 20:58:00 +00:00
|
|
|
freeaddrinfo.c \
|
|
|
|
freehostent.c \
|
|
|
|
gai_strerror.c \
|
|
|
|
getaddrinfo.c \
|
|
|
|
getdtablesize.c \
|
|
|
|
getegid.c \
|
|
|
|
geteuid.c \
|
|
|
|
getgid.c \
|
|
|
|
gethostname.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
getifaddrs.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
getipnodebyaddr.c \
|
|
|
|
getipnodebyname.c \
|
|
|
|
getopt.c \
|
|
|
|
gettimeofday.c \
|
|
|
|
getuid.c \
|
|
|
|
getusershell.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
glob.hin \
|
2000-01-09 20:58:00 +00:00
|
|
|
hstrerror.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
ifaddrs.hin \
|
2000-01-09 20:58:00 +00:00
|
|
|
inet_aton.c \
|
|
|
|
inet_ntop.c \
|
|
|
|
inet_pton.c \
|
|
|
|
initgroups.c \
|
|
|
|
innetgr.c \
|
|
|
|
iruserok.c \
|
|
|
|
lstat.c \
|
|
|
|
memmove.c \
|
|
|
|
mkstemp.c \
|
|
|
|
putenv.c \
|
|
|
|
rcmd.c \
|
|
|
|
readv.c \
|
|
|
|
recvmsg.c \
|
|
|
|
sendmsg.c \
|
|
|
|
setegid.c \
|
|
|
|
setenv.c \
|
|
|
|
seteuid.c \
|
|
|
|
strcasecmp.c \
|
|
|
|
strdup.c \
|
|
|
|
strerror.c \
|
|
|
|
strftime.c \
|
|
|
|
strlcat.c \
|
|
|
|
strlcpy.c \
|
|
|
|
strlwr.c \
|
|
|
|
strncasecmp.c \
|
|
|
|
strndup.c \
|
|
|
|
strnlen.c \
|
|
|
|
strptime.c \
|
|
|
|
strsep.c \
|
2001-02-13 16:46:19 +00:00
|
|
|
strsep_copy.c \
|
2000-01-09 20:58:00 +00:00
|
|
|
strtok_r.c \
|
|
|
|
strupr.c \
|
|
|
|
swab.c \
|
|
|
|
unsetenv.c \
|
|
|
|
verr.c \
|
|
|
|
verrx.c \
|
|
|
|
vsyslog.c \
|
|
|
|
vwarn.c \
|
|
|
|
vwarnx.c \
|
|
|
|
warn.c \
|
|
|
|
warnx.c \
|
|
|
|
writev.c
|
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
EXTRA_DIST = roken.awk roken.h.in
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
libroken_la_LIBADD = @LTLIBOBJS@
|
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
$(LTLIBOBJS) $(libroken_la_OBJECTS): $(include_HEADERS) roken.h
|
2000-01-09 20:58:00 +00:00
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
BUILT_SOURCES = make-roken.c roken.h
|
2000-01-09 20:58:00 +00:00
|
|
|
|
|
|
|
if have_err_h
|
|
|
|
err_h =
|
|
|
|
else
|
|
|
|
err_h = err.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_fnmatch_h
|
|
|
|
fnmatch_h =
|
|
|
|
else
|
|
|
|
fnmatch_h = fnmatch.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_glob_h
|
|
|
|
glob_h =
|
|
|
|
else
|
|
|
|
glob_h = glob.h
|
|
|
|
endif
|
|
|
|
|
2001-02-13 16:46:19 +00:00
|
|
|
if have_ifaddrs_h
|
|
|
|
ifaddrs_h =
|
|
|
|
else
|
|
|
|
ifaddrs_h = ifaddrs.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_vis_h
|
|
|
|
vis_h =
|
|
|
|
else
|
|
|
|
vis_h = vis.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
## these are controlled by configure
|
|
|
|
XHEADERS = $(err_h) $(fnmatch_h) $(glob_h) $(ifaddrs_h) $(vis_h)
|
|
|
|
|
|
|
|
include_HEADERS = \
|
|
|
|
base64.h \
|
|
|
|
getarg.h \
|
|
|
|
parse_bytes.h \
|
|
|
|
parse_time.h \
|
|
|
|
parse_units.h \
|
|
|
|
resolve.h \
|
|
|
|
roken-common.h \
|
|
|
|
rtbl.h \
|
|
|
|
xdbm.h \
|
|
|
|
$(XHEADERS)
|
|
|
|
|
|
|
|
nodist_include_HEADERS = roken.h
|
|
|
|
|
|
|
|
|
|
|
|
SUFFIXES += .hin
|
|
|
|
.hin.h:
|
|
|
|
cp $< $@
|
|
|
|
|
2000-01-09 20:58:00 +00:00
|
|
|
roken.h: make-roken$(EXEEXT)
|
|
|
|
@./make-roken$(EXEEXT) > tmp.h ;\
|
|
|
|
if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \
|
|
|
|
else rm -f roken.h; mv tmp.h roken.h; fi
|
|
|
|
|
|
|
|
make-roken.c: roken.h.in roken.awk
|
|
|
|
$(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c
|