1VPATH=@srcdir@ 2CXX?=c++ 3SOFLAGS=-fpic -shared 4DEFINES= 5prefix=@prefix@ 6exec_prefix=@exec_prefix@ 7libexec=@libexecdir@/chroot_safe 8sbin=@sbindir@ 9man=@mandir@/man1 10install=@INSTALL@ 11 12all: chroot_safe.so 13 14chroot_safe.so: chroot_safe.cpp Makefile 15 $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(DEFINES) $(SOFLAGS) chroot_safe.cpp -o chroot_safe.so $< 16 17clean: 18 rm -f *.o *.so *~ 19 20install: all 21 $(install) -m 0755 -d $(DESTDIR)$(libexec) 22 $(install) -m 0755 -s chroot_safe.so $(DESTDIR)$(libexec)/chroot_safe.so 23 $(install) -m 0755 -d $(DESTDIR)$(sbin) 24 $(install) -m 0750 chroot_safe $(DESTDIR)$(sbin)/chroot_safe 25 $(install) -m 0755 -d $(DESTDIR)$(man) 26 $(install) -m 0444 chroot_safe.1 $(DESTDIR)$(man)/chroot_safe.1 27 28distclean: clean 29 rm -f chroot_safe config.log config.status Makefile chroot_safe.1 30 rm -rf *.cache 31 32mrproper: distclean 33 rm -f configure 34