Home | History | Annotate | Line # | Download | only in compat
Makefile revision 1.54.6.3
      1  1.54.6.3      yamt #	$NetBSD: Makefile,v 1.54.6.3 2012/10/30 19:00:11 yamt Exp $
      2       1.1        tv 
      3       1.1        tv HOSTLIB=	nbcompat
      4       1.1        tv 
      5  1.54.6.3      yamt SRCS=		atoll.c basename.c cdbr.c cdbw.c dirname.c \
      6  1.54.6.3      yamt 		fgetln.c flock.c fparseln.c fpurge.c \
      7  1.54.6.3      yamt 		getcap.c getline.c getmode.c getopt_long.c gettemp.c \
      8  1.54.6.1      yamt 		heapsort.c \
      9      1.39      elad 		issetugid.c lchflags.c lchmod.c lchown.c libyywrap.c \
     10      1.54       roy 		md2.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c \
     11      1.54       roy 		mi_vector_hash.c mkdtemp.c \
     12      1.22   thorpej 		mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \
     13      1.51     lukem 		pw_scan.c \
     14      1.51     lukem 		raise_default_signal.c rmd160.c rmd160hl.c \
     15      1.51     lukem 		setenv.c setgroupent.c \
     16      1.34      elad 		setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \
     17      1.48        he 		sha256hl.c sha384hl.c sha512hl.c snprintf.c stat_flags.c \
     18      1.49  nakayama 		strlcat.c strlcpy.c strmode.c strndup.c strsep.c strsuftoll.c \
     19      1.36  christos 		strtoll.c unvis.c vis.c err.c errx.c verr.c verrx.c \
     20      1.44  christos 		vwarn.c vwarnx.c warn.c warnx.c fts.c glob.c efun.c
     21      1.21   thorpej 
     22      1.21   thorpej BUILD_OSTYPE!=  uname -s
     23      1.21   thorpej 
     24      1.21   thorpej # Disable use of pre-compiled headers on Darwin.
     25      1.21   thorpej .if ${BUILD_OSTYPE} == "Darwin"
     26      1.21   thorpej CPPFLAGS+=	-no-cpp-precomp
     27      1.21   thorpej .endif
     28       1.6        tv 
     29       1.6        tv # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
     30       1.6        tv # other file ops, on many systems, without changing function names.
     31       1.6        tv 
     32      1.47    dogcow CPPFLAGS+=	-I. -I./include -I${.CURDIR} -I${.CURDIR}/sys \
     33      1.47    dogcow 		-DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64
     34       1.3        tv 
     35  1.54.6.3      yamt .PATH:		${.CURDIR}/../../lib/libc/cdb \
     36  1.54.6.3      yamt 		${.CURDIR}/../../lib/libc/gen \
     37       1.9     bjh21 		${.CURDIR}/../../lib/libc/hash \
     38      1.39      elad 		${.CURDIR}/../../lib/libc/hash/md2 \
     39      1.38      elad 		${.CURDIR}/../../lib/libc/hash/md5 \
     40      1.38      elad 		${.CURDIR}/../../lib/libc/hash/rmd160 \
     41      1.38      elad 		${.CURDIR}/../../lib/libc/hash/sha1 \
     42      1.34      elad 		${.CURDIR}/../../lib/libc/hash/sha2 \
     43       1.9     bjh21 		${.CURDIR}/../../lib/libc/md \
     44      1.15   thorpej 		${.CURDIR}/../../lib/libc/stdio \
     45       1.6        tv 		${.CURDIR}/../../lib/libc/stdlib \
     46       1.4     lukem 		${.CURDIR}/../../lib/libc/string \
     47      1.44  christos 		${.CURDIR}/../../lib/libutil \
     48      1.40  christos 		${.CURDIR}/../../common/lib/libc/string \
     49      1.46       mrg 		${.CURDIR}/../../common/lib/libc/hash/rmd160 \
     50      1.40  christos 		${.CURDIR}/../../common/lib/libc/hash/sha1 \
     51      1.46       mrg 		${.CURDIR}/../../common/lib/libc/hash/sha2 \
     52      1.40  christos 		${.CURDIR}/../../common/lib/libc/md \
     53      1.45   thorpej 		${.CURDIR}/../../common/lib/libc/stdlib \
     54  1.54.6.2      yamt 		${.CURDIR}/../../external/bsd/flex/dist
     55       1.1        tv 
     56       1.6        tv DPSRCS+=	defs.mk
     57      1.43  christos CLEANFILES+=	config.log config.status configure.lineno *.stamp
     58       1.3        tv 
     59       1.3        tv # Get components of Berkeley DB.
     60       1.3        tv _CURDIR:=	${.CURDIR}
     61       1.3        tv .CURDIR:=	${_CURDIR}/../../lib/libc
     62       1.3        tv .include "${.CURDIR}/db/Makefile.inc"
     63       1.3        tv .CURDIR:=	${_CURDIR}
     64       1.3        tv 
     65      1.54       roy SRCS:=		${SRCS:M*.c}
     66       1.1        tv 
     67      1.42       wiz config.cache: include/.stamp configure nbtool_config.h.in defs.mk.in
     68      1.20     lukem 	rm -f ${.TARGET}
     69       1.3        tv 	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
     70      1.27     lukem 		${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
     71      1.20     lukem 
     72      1.20     lukem defs.mk: config.cache
     73      1.20     lukem 	@touch ${.TARGET}
     74       1.1        tv 
     75      1.50       apb # Run "${TOOLDIR}/bin/nbmake-${MACHINE} regen" by hand after editing
     76      1.50       apb # configure.ac.  See more detailed instructions in configure.ac.
     77       1.1        tv regen:
     78      1.30   thorpej 	cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
     79      1.50       apb 	cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoheader
     80       1.6        tv 
     81      1.13        tv include/.stamp:
     82      1.52   tsutsui 	mkdir -p include/sys include/machine include/rpc include/arpa
     83      1.20     lukem 	@touch ${.TARGET}
     84       1.6        tv 
     85      1.43  christos cleandir:
     86      1.43  christos 	-rm -f nbtool_config.h confdefs.h defs.mk
     87       1.6        tv 	-rm -r -f include
     88      1.43  christos 	-rm -f config.cache
     89       1.6        tv 
     90       1.6        tv HOST_CPPFLAGS:=	${CPPFLAGS}
     91       1.6        tv CPPFLAGS:=	# empty
     92       1.1        tv 
     93       1.1        tv .include <bsd.hostlib.mk>
     94