1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
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 *~
|