NetBSD/lib/libroken/Makefile
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00

104 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2010/07/06 05:59:53 mrg Exp $
NOLINT= # defined
.include <bsd.own.mk>
DIST= ${NETBSDSRCDIR}/crypto/dist
.PATH: ${DIST}/heimdal/lib/roken ${NETBSDSRCDIR}/include/heimdal
WARNS?= 1
LIB= roken
LIBDPLIBS+= util ${.CURDIR}/../libutil \
crypt ${.CURDIR}/../libcrypt
BUILT_SRCS=vis.h
CLEANFILES+= ${BUILT_SRCS}
SRCS= \
base64.c \
concat.c \
dumpdata.c \
environment.c \
eread.c \
esetenv.c \
ewrite.c \
getaddrinfo_hostspec.c \
get_default_username.c \
get_window_size.c \
getarg.c \
getnameinfo_verified.c \
getprogname.c \
h_errno.c \
hex.c \
hostent_find_fqdn.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 \
realloc.c \
resolve.c \
roken_gethostby.c \
rtbl.c \
setprogname.c \
signal.c \
simple_exec.c \
socket.c \
strcollect.c \
strlwr.c \
strpool.c \
strsep_copy.c \
strupr.c \
timeval.c \
tm2time.c \
unvis.c \
verify.c \
vis.c \
warnerr.c \
write_pid.c \
${BUILT_SRCS}
MANS= \
getarg.3 \
parse_time.3 \
rtbl.3
INCS= base64.h \
getarg.h \
hex.h \
parse_bytes.h \
parse_time.h \
parse_units.h \
resolve.h \
roken.h \
roken-common.h \
rtbl.h \
xdbm.h
INCSDIR= /usr/include/krb5
CPPFLAGS+= -I. \
-I${NETBSDSRCDIR}/include/heimdal \
-I${DIST}/heimdal/lib/roken \
-DHAVE_CONFIG_H
.if (${USE_INET6} != "no")
CPPFLAGS+=-DHAVE_IPV6
.endif
HOST_CPPFLAGS+= -I${NETBSDSRCDIR}/include/heimdal -DHAVE_CONFIG_H
.include <bsd.lib.mk>
.SUFFIXES: .hin
.hin.h:
cp $< $@