###################################
# Makefile for NEB examples
#
###################################


# Source code directories
srcdir=@srcdir@

SRC_INCLUDE=@top_srcdir@/include

BLD_INCLUDE=@top_builddir@/include
BLD_LIB=@top_builddir@/lib


CC=@CC@
WORKER_CFLAGS=@WORKER_CFLAGS@
CFLAGS=-I@builddir@ -I$(BLD_INCLUDE) -I$(BLD_LIB) -I$(SRC_INCLUDE) -I@top_srcdir@  @CFLAGS@ @DEFS@
WORKER_LDFLAGS=@WORKER_LDFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@

prefix=@prefix@
exec_prefix=@exec_prefix@
BINDIR=@bindir@
INSTALL=@INSTALL@
INSTALL_OPTS=@INSTALL_OPTS@
COMMAND_OPTS=@COMMAND_OPTS@
STRIP=@STRIP@

CP=@CP@

all:	worker-ping

worker-ping: $(srcdir)/worker-ping.c
	$(CC) -I.. $(WORKER_CFLAGS) $(CFLAGS) -o worker-ping $(srcdir)/worker-ping.c $(WORKER_LDFLAGS) $(LDFLAGS) $(LIBS)

clean:
	rm -f worker-ping worker-ping.o
	rm -f core *.o
	rm -f *~ *.*~

distclean: clean
	rm -f Makefile

devclean: distclean

install:
	$(INSTALL) -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
	$(INSTALL) -m 774 $(INSTALL_OPTS) worker-ping $(DESTDIR)$(BINDIR)

install-unstripped:
	$(INSTALL) -s -m 775 $(INSTALL_OPTS) -d $(DESTDIR)$(BINDIR)
	$(INSTALL) -s -m 774 $(INSTALL_OPTS) worker-ping $(DESTDIR)$(BINDIR)
