#!/bin/ksh

echo "Building bin/$1 from src/$1.cc"

g++ -Wall \
    -D CALICE_DAQ_ICC \
    -D CALICE_DAQ_SIZE=128*1024 \
    `$ROOTSYS/bin/root-config --cflags --glibs` \
    \
    -I inc \
    \
    -I records/inc/ahc \
    -I records/inc/bml \
    -I records/inc/crc \
    -I records/inc/daq \
    -I records/inc/dhc \
    -I records/inc/emc \
    -I records/inc/fix \
    -I records/inc/rcd \
    -I records/inc/sub \
    -I records/inc/utl \
    \
    -I daquser/inc/chk \
    -I daquser/inc/daq \
    -I daquser/inc/dsp \
    -I daquser/inc/emc \
    -I daquser/inc/hst \
    -I daquser/inc/rcd \
    -I daquser/inc/shm \
    -I daquser/inc/skt \
    -I daquser/inc/slw \
    -I daquser/inc/sub \
    -I daquser/inc/trg \
    -I daquser/inc/uti \
    \
    -o bin/$1 src/$1.cc
