blob: cf83ce55ebfa67533cc4172781481cd98e7d05e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# $NetBSD: Makefile,v 1.3 2001/03/02 01:26:12 jlam Exp $
#
# Makefile using LIBTOOL to generate a shared library from the static one.
SHELL= /bin/sh
BINDIR= ${PREFIX}/bin
INCLUDEDIR= ${PREFIX}/include/X11
LIBDIR= ${PREFIX}/lib
MANDIR= ${PREFIX}/man
PROGS= DESIGN/fdesign fd2ps/fd2ps
INCLUDES= FORMS/forms.h
MAN1= DESIGN/fdesign.1 fd2ps/fd2ps.1
MAN5= FORMS/xforms.5
all: libforms.la
libforms.la: FORMS/libforms.a
mkdir -p objects/.libs; \
cd objects/.libs; \
${AR} x ../../FORMS/libforms.a; \
cd ..; \
for file in .libs/*.o; do \
base=`basename $${file} .o`; \
rm -f $${base}.lo; \
( echo "#"; \
echo "# Generated by libtool"; \
echo "#"; \
echo "pic_object=$${file}"; \
echo "non_pic_object=$${file}"; \
) > $${base}.lo; \
done
${LIBTOOL} --mode=link ${CC} -o ${.TARGET} objects/*.lo \
-rpath ${LIBDIR} -version-info ${SHLIB_MAJOR}:${SHLIB_MINOR}
install: install-progs install-includes install-libs install-man
install-progs: ${PROGS}
@for file in ${PROGS}; do \
echo "${BSD_INSTALL_PROGRAM} $$file ${BINDIR}"; \
${BSD_INSTALL_PROGRAM} $$file ${BINDIR}; \
done
install-includes: ${INCLUDES}
@for file in ${INCLUDES}; do \
echo "${BSD_INSTALL_MAN} $$file ${INCLUDEDIR}"; \
${BSD_INSTALL_MAN} $$file ${INCLUDEDIR}; \
done
install-libs: libforms.la
${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libforms.la ${LIBDIR}
@if [ -f ${LIBDIR}/libforms.a ]; then \
echo "ln -sf libforms.a ${LIBDIR}/libxforms.a"; \
ln -sf libforms.a ${LIBDIR}/libxforms.a; \
fi
@if [ -f ${LIBDIR}/libforms.la ]; then \
echo "ln -sf libforms.la ${LIBDIR}/libxforms.la"; \
ln -sf libforms.la ${LIBDIR}/libxforms.la; \
fi
@if [ -f ${LIBDIR}/libforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ]; then \
echo "ln -sf libforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
${LIBDIR}/libxforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR}"; \
ln -sf libforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
${LIBDIR}/libxforms.so.${SHLIB_MAJOR}.${SHLIB_MINOR}; \
fi
install-man: ${MAN1} ${MAN5}
@for file in ${MAN1}; do \
echo "${BSD_INSTALL_MAN} $$file ${MANDIR}/man1"; \
${BSD_INSTALL_MAN} $$file ${MANDIR}/man1; \
done
@for file in ${MAN5}; do \
echo "${BSD_INSTALL_MAN} $$file ${MANDIR}/man5"; \
${BSD_INSTALL_MAN} $$file ${MANDIR}/man5; \
done
ln -sf xforms.5 ${MANDIR}/man5/forms.5
|