# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# $Id$
prefix=/usr/local
etc_dir=/etc/authbind
-INSTALL_FILE=install -o root -g root -m 644
-INSTALL_PROGRAM=install -o root -g root -m 755 -s
-INSTALL_DIR=install -o root -g root -m 755 -d
+INSTALL_FILE ?= install -o root -g root -m 644
+INSTALL_PROGRAM ?= install -o root -g root -m 755 -s
+INSTALL_DIR ?= install -o root -g root -m 755 -d
+STRIP ?= strip
OPTIMISE= -O2
LDFLAGS= -g
$(INSTALL_DIR) $(lib_dir) $(man1_dir) $(man8_dir)
$(INSTALL_PROGRAM) $(BINTARGETS) $(bin_dir)/.
$(INSTALL_FILE) $(LIBTARGET) $(lib_dir)/.
- strip --strip-unneeded $(lib_dir)/$(LIBTARGET)
+ $(STRIP) --strip-unneeded $(lib_dir)/$(LIBTARGET)
ln -sf $(LIBTARGET) $(lib_dir)/$(LIBCANON)
$(INSTALL_PROGRAM) $(HELPER) $(libexec_dir)/.
chmod u+s $(libexec_dir)/$(HELPER)
helper.o authbind.o: authbind.h
$(LIBTARGET): libauthbind.o
- ld -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
+ $(LD) -shared -soname $(LIBCANON) -o $@ $< $(LIBS)
clean distclean:
rm -f $(TARGETS) *.o *~ ./#*# *.bak *.new core