source: trunk/third/librep/rules.mk.sh @ 17365

Revision 17365, 799 bytes checked in by ghudson, 23 years ago (diff)
Merge with librep 0.15.2.
Line 
1# rules.mk.sh -- Build dynamically-loadable objects for librep
2# $Id: rules.mk.sh,v 1.4 2002-03-20 04:59:51 ghudson Exp $
3
4repdir=$1
5repcommonexecdir=$2
6repdocfile=$3
7
8cat <<EOF
9# rules.mk
10
11repdir=$repdir
12repcommonexecdir=$repcommonexecdir
13rpath_repcommonexecdir=$repcommonexecdir
14
15rep_LIBTOOL=\$(repcommonexecdir)/libtool
16rep_INSTALL_ALIASES=\$(repcommonexecdir)/install-aliases
17
18# use this like:
19# foo.la : foo.lo bar.lo
20#       \$(rep_DL_LD) link-opts...
21
22rep_DL_LD=\$(rep_LIBTOOL) --mode=link \$(CC) -avoid-version -module \
23          -rpath \$(rpath_repcommonexecdir)
24
25rep_DL_INSTALL=\$(rep_LIBTOOL) --mode=install \$(INSTALL)
26rep_DL_UNINSTALL=\$(rep_LIBTOOL) --mode=uninstall rm
27
28# Rule for libtool controlled C objects
29%.lo : %.c
30        \$(rep_LIBTOOL) --mode=compile \$(CC) -c \$(CPPFLAGS) \$(CFLAGS) \$<
31
32EOF
Note: See TracBrowser for help on using the repository browser.