# Makefile for C++ Rserve clients.
#
# $Id$

SRC = $(wildcard *.cc)
OBJ = $(SRC:%.cc=%.o)
DST = demo1 rcons rsdown

LIBS+=@LIBS@
CPPFLAGS+=-DHAVE_CONFIG_H

all: $(DST) $(OBJ)

%: Rconnection.o %.o
	$(CXX) $^ -o $@ $(LIBS)

debug:
	$(MAKE) CXXFLAGS=-g all

clean:
	rm -rf *~ *.o \#* .\#* $(DST)
