File: Makefile

package info (click to toggle)
mffm-timecode 1.6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 1,288 kB
  • ctags: 280
  • sloc: cpp: 1,282; makefile: 94
file content (29 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (7)
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 *~