summaryrefslogtreecommitdiff
path: root/devel/trio/files
diff options
context:
space:
mode:
authorjoerg <joerg>2006-03-15 16:44:50 +0000
committerjoerg <joerg>2006-03-15 16:44:50 +0000
commitaac79a4ca43fcca4ff6edcd121ad8705c32c5d95 (patch)
tree60dc760859c0b9cae5301a63144a4751647899fe /devel/trio/files
parentbc54250d7718569b85aa5ccd487f273bc91477f7 (diff)
downloadpkgsrc-aac79a4ca43fcca4ff6edcd121ad8705c32c5d95.tar.gz
Libtoolify trio. Bump revision.
Diffstat (limited to 'devel/trio/files')
-rw-r--r--devel/trio/files/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/devel/trio/files/Makefile b/devel/trio/files/Makefile
new file mode 100644
index 00000000000..1a08d4e219e
--- /dev/null
+++ b/devel/trio/files/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1 2006/03/15 16:44:50 joerg Exp $
+
+LIB= libtrio
+LIB_VER= 1:0
+LIBS?= -lm
+
+SRCS= trio.c strio.c
+HDRS= trio.h triop.h
+OBJS= ${SRCS:.c=.lo}
+
+PREFIX?= /usr/local
+LIBDIR?= ${PREFIX}/lib
+INCLUDEDIR?= ${PREFIX}/include
+MANDIR?= ${PREFIX}/${PKGMANDIR}
+MANDIR3?= ${MANDIR}/man3
+
+BSD_INSTALL?= install
+BSD_INSTALL_DIR?= ${BSD_INSTALL} -d
+BSD_INSTALL_DATA?= ${BSD_INSTALL} -m 444
+BSD_INSTALL_LIB?= ${BSD_INSTALL} -m 644
+LIBTOOL?= libtool
+LN?= ln
+RM?= rm
+
+.SUFFIXES: .lo
+.PHONY: all clean install
+
+.c.lo:
+ ${LIBTOOL} --mode=compile ${CC} -o $@ -c ${CFLAGS} ${CPPFLAGS} $<
+
+all: ${LIB}.la
+
+clean:
+ -${LIBTOOL} --mode=clean ${RM} ${OBJS} ${LIB}.la
+
+install:
+ ${BSD_INSTALL_DIR} ${LIBDIR} ${INCLUDEDIR}
+ ${BSD_INSTALL_DATA} ${HDRS} ${INCLUDEDIR}
+ ${LIBTOOL} --mode=install ${BSD_INSTALL_LIB} ${LIB}.la ${LIBDIR}/${LIB}.la
+ ${BSD_INSTALL_DIR} ${MANDIR3}
+ ${BSD_INSTALL_DATA} man/man3/strio.3 man/man3/trio_printf.3 \
+ man/man3/trio_register.3 man/man3/trio_scanf.3 ${MANDIR3}
+
+${LIB}.la: ${OBJS}
+ ${LIBTOOL} --mode=link ${CC} -o $@ ${CFLAGS} ${LDFLAGS} \
+ -rpath ${LIBDIR} -version-info ${LIB_VER} ${OBJS} ${LIBS}