HDR = fieldInterface.H masterCounterInterface.H timeCodeInterface.H
SRC = $(HDR:.H=.C)
OBJ = $(SRC:.C=.o)
TST = $(SRC:.C=Test)
LIB = #libGtkInterface.so

DEBUGFLAGS = -ggdb -DDEBUG

#.C:
#	g++ $< -o $@
#	set -e; $(CC) $@
#OBJ = $(SRC:.C=.o)

.C.o:
	g++ `gtk-config --cflags` -fPIC -c $<

all:	ex

ex:
	g++ -DDEBUG `gtk-config --cflags` fieldInterfaceTest.C -o fieldInterfaceTest `gtk-config --libs` $(LIB) -L/home/flatmax/lib
	g++ -DDEBUG `gtk-config --cflags` masterCounterInterfaceTest.C -o masterCounterInterfaceTest `gtk-config --libs` $(LIB) -L/home/flatmax/lib
	g++  $(DEBUGFLAGS) `gtk-config --cflags` timeCodeInterfaceTest.C -o timeCodeInterfaceTest `gtk-config --libs` $(LIB) -L/home/flatmax/lib

lib:
	ld -shared -soname $(LIB) -o $(LIB) $(OBJ)

clean:
	rm -f *~ *.o $(BIN) $(LIB) $(TST)
	cd xpm; rm -f *~
