Home | History | Annotate | Line # | Download | only in libmopcopy
      1 #	$NetBSD: Makefile,v 1.1 2024/10/23 00:45:59 kalvisd Exp $
      2 
      3 HOSTLIB=	mopcopy
      4 LIBMOPCOPY_DIR=	${NETBSDSRCDIR}/usr.sbin/mopd/common
      5 
      6 .include <bsd.hostinit.mk>
      7 
      8 SRCS=		cmp.c  \
      9 		get.c \
     10 		nma.c \
     11 		mopdef.c \
     12 		file.c \
     13 		log.c
     14 
     15 .ifndef NOCOMPATLIB
     16 COMPATLIB_NO_LIB= yes # only the include files, not the library
     17 .-include       "${TOOLDIR}/share/compat/defs.mk"
     18 .endif
     19 
     20 BUILD_OSTYPE!=  uname -s
     21 
     22 # Disable use of pre-compiled headers on Darwin.
     23 .if ${BUILD_OSTYPE} == "Darwin"
     24 CPPFLAGS+=	-no-cpp-precomp
     25 .endif
     26 
     27 HOST_CPPFLAGS+=	-DHAVE_NBTOOL_CONFIG_H=1
     28 
     29 # VAX binaries are now ELF
     30 HOST_CPPFLAGS+=	-DNOAOUT
     31 
     32 .PATH:	${LIBMOPCOPY_DIR}
     33 
     34 realinstall: install.host
     35 install.host: ${TOOLDIR}/lib/libmopcopy.a
     36 ${TOOLDIR}/lib/libmopcopy.a:: libmopcopy.a
     37 	${_MKTARGET_INSTALL}
     38 	mkdir -p ${TOOLDIR}/lib
     39 	${HOST_INSTALL_FILE} -m ${BINMODE} libmopcopy.a ${.TARGET}
     40 
     41 .include "${.CURDIR}/../Makefile.nbincludes"
     42 .include <bsd.hostlib.mk>
     43