# Generated automatically from Makefile.in by configure.
# $Id: Makefile,v 1.17 2002/04/28 19:33:21 bergo Exp $

#
# Remote poller for Linux
#

CCC = c++
PROGINST = /usr/bin/ginstall -c
PREFIX = /usr/local

DESTDIR =

all: the_poller

the_poller: rgpsp_linux.o
	$(CCC) ../rgpsp_common.o rgpsp_linux.o -o linux_rgpsp  -lpthread 

rgpsp_linux.o: rgpsp_linux.cc
	$(CCC)  -c rgpsp_linux.cc -o rgpsp_linux.o

install:
	$(PROGINST) linux_rgpsp $(DESTDIR)$(PREFIX)/bin/rgpsp_linux
	ln -sf $(DESTDIR)$(PREFIX)/bin/rgpsp_linux $(DESTDIR)$(PREFIX)/bin/rgpsp

# solves symlink trouble
install_rpm:
	strip linux_rgpsp
	$(PROGINST) linux_rgpsp $(DESTDIR)$(PREFIX)/bin/rgpsp
	$(PROGINST) linux_rgpsp $(DESTDIR)$(PREFIX)/bin/rgpsp_linux

distclean:
	@rm -f *.o *~ linux_rgpsp *.cache config.*

clean:
	rm -f *.o linux_rgpsp *~

