2002-04-15 01:44:22 +04:00
|
|
|
# $NetBSD: Makefile,v 1.2 2002/04/14 21:44:22 wiz Exp $
|
2000-12-08 22:21:28 +03:00
|
|
|
|
|
|
|
SRCS= ccexc.cc construct.cc virt.cc
|
|
|
|
|
|
|
|
LIB= testlib.so
|
|
|
|
|
|
|
|
OBJS= ${SRCS:.cc=.o}
|
|
|
|
|
|
|
|
CPICFLAGS= -fpic -DPIC
|
|
|
|
|
|
|
|
.cc.o:
|
|
|
|
${COMPILE.cc} ${CPICFLAGS} ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
all realall: ${LIB}
|
|
|
|
.else
|
|
|
|
all realall:
|
|
|
|
.endif
|
|
|
|
|
|
|
|
${LIB}: ${OBJS}
|
|
|
|
${CXX} -shared -o ${LIB} ${OBJS}
|
|
|
|
|
|
|
|
clean cleandir:
|
|
|
|
rm -f *.o *.so
|
|
|
|
|
|
|
|
regress:
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|
2002-04-15 01:44:22 +04:00
|
|
|
.include <bsd.dep.mk>
|