.SUFFIXES:
.SUFFIXES: .c .o

LIBROOT=/afs/psi.ch/project/sinq/sl6

OBJ=../sicslogquery.o ../approxidate.o  sicslogmain.o
CFLAGS=-I$(LIBROOT)/include/libmongoc-1.0 -I../ -I../../sics -I$(LIBROOT)/include/libbson-1.0 -I.
LIBFLAGS=-L$(LIBROOT)/lib -lmongoc-1.0 -lbson-1.0

.c.o:
	$(CC) $(CFLAGS) -c -g $*.c

all:sicslog

sicslog: $(OBJ)
	$(CC) -g -o  sicslog  $(OBJ) $(LIBFLAGS)

