# COPYRIGHT
#
# This file is part of DIVA libraries.
#
# Authors: Tommi Ilmonen and Jarmo Hiipakka, 1999-2000.
#
# Mustajuuri is licensed under GNU Lesser General Public License
# (LGPL). The Mustajuuri license can be found in file "LGPL"
# that is distributed with the mustajuuri source code.
#

include $(MUSTAJUURI_PATH)/src/Makeconf

MAINSRC = main.C

MAINOBJ = main.o

LIBS          = -lcap

all: sbin 
		@echo ""
		@echo "  To activate this capability app you need to copy it"
		@echo "  to some place nice place and give it the setuid bit."
		@echo ""
		@echo "  Example:"
		@echo ""
		@echo "  cp $(PLATFORM)/smain /usr/local/bin/givertcap;"
		@echo "  chown root /usr/local/bin/givertcap;"
		@echo "  chgrp users /usr/local/bin/givertcap;"
		@echo "  chmod 4755 /usr/local/bin/givertcap;"
		@echo ""

GIVERTLOC     = $(PREFIX)/bin/givertcap

install: sbin
		$(INSTALL) -d $(PREFIX)/bin/
		$(INSTALL) $(PLATFORM)/smain $(GIVERTLOC)
		chown root $(GIVERTLOC)
		chgrp users $(GIVERTLOC)
		chmod 4755 $(GIVERTLOC)

include $(MUSTAJUURI_PATH)/src/Makelibs

