# Copyright 2006-2009 by Purdue Research Foundation, West Lafayette, IN 47906.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License, version 2.1 as published by the Free Software Foundation.

INSTDIR=$(DESTDIR)/usr/lib
OWNER=root
GROUP=root

clientaction: vncExt.o clientaction.o
	cc -o $@ vncExt.o clientaction.o -lX11

clean:
	rm -f clientaction vncExt.o clientaction.o

install: clean clientaction
	install -d $(INSTDIR)/hubzero --owner $(OWNER) --group $(GROUP) --mode 0755
	install -d $(INSTDIR)/hubzero/bin --owner $(OWNER) --group $(GROUP) --mode 0755
	install clientaction $(INSTDIR)/hubzero/bin --owner $(OWNER) --group $(GROUP) --mode 0755

