File: Makefile.in

package info (click to toggle)
spectools 201601r1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,272 kB
  • ctags: 1,837
  • sloc: ansic: 18,708; sh: 2,476; makefile: 85
file content (98 lines) | stat: -rw-r--r-- 2,236 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# spectrum-tools

DEBUG=-D_DEBUG

prefix = @prefix@
exec_prefix = @exec_prefix@
ETC	= ${DESTDIR}@sysconfdir@
BIN	= ${DESTDIR}@bindir@
SHARE = ${DESTDIR}@datadir@
MAN = ${DESTDIR}@mandir@
LIB = ${DESTDIR}@libdir@
INCLUDE = ${DESTDIR}@includedir@

CC = @CC@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ 
CURSLIBS = @CURSLIBS@
GTKLIBS = @GTKLIBS@
CFLAGS = ${DEBUG} -I./ @CFLAGS@
CPPFLAGS = @CPPFLAGS@

GTK_CONFIG=@GTK_CONFIG@

DRIVERS = wispy_hw_gen1.o wispy_hw_24x.o wispy_hw_dbx.o ubertooth_hw_u1.o

RAWOBJS = spectool_container.o ${DRIVERS} \
	spectool_net_client.o spectool_raw.o
RAWBIN = spectool_raw

CURSOBJS = spectool_container.o ${DRIVERS} \
	spectool_net_client.o spectool_curses.o
CURSBIN = spectool_curses

NETOBJS = spectool_container.o ${DRIVERS} \
	spectool_net_server.o
NETBIN = spectool_net

GTKOBJS = spectool_container.o ${DRIVERS} \
	spectool_net_client.o \
	spectool_gtk_hw_registry.o spectool_gtk_widget.o spectool_gtk_channel.o \
	spectool_gtk_planar.o spectool_gtk_spectral.o spectool_gtk_topo.o \
	spectool_gtk.o
GTKBIN = spectool_gtk

DEPEND	= .depend

all:	$(DEPEND) @TARGETS@

$(RAWBIN):	$(RAWOBJS)
	$(CC) $^ -o $(RAWBIN) $(LDFLAGS) $(LIBS)

$(CURSBIN):	$(CURSOBJS)
	$(CC) $^ -o $(CURSBIN) $(LDFLAGS) $(LIBS) $(CURSLIBS)

$(NETBIN):	$(NETOBJS)
	$(CC) $^ -o $(NETBIN) $(LDFLAGS) $(LIBS)

$(GTKBIN):	$(GTKOBJS)
	$(CC) $^ -o $(GTKBIN) $(LDFLAGS) $(GTKLIBS)

install:	@TARGETS@
	install -d -m 755 $(BIN)
	if [ -e $(RAWBIN) ]; then install -m 755 $(RAWBIN) $(BIN)/$(RAWBIN); fi
	if [ -e $(NETBIN) ]; then install -m 755 $(NETBIN) $(BIN)/$(NETBIN); fi
	if [ -e $(GTKBIN) ]; then install -m 755 $(GTKBIN) $(BIN)/$(GTKBIN); fi
	if [ -e $(CURSBIN) ]; then install -m 755 $(CURSBIN) $(BIN)/$(CURSBIN); fi

clean:
	@-rm *.o
	@-rm $(RAWBIN) $(GTKBIN) $(NETBIN) $(CURSBIN)

distclean:
	@-make clean
	@-rm -f $(DEPEND)
	@-rm -f config.status
	@-rm -f config.h
	@-rm -f config.log
	@-rm -f Makefile

dep:
	@$(MAKE) depend

depend:
	@$(MAKE) $(DEPEND)

$(DEPEND):
	@-rm -f $(DEPEND)
	@echo "Generating dependencies... "
	@echo > $(DEPEND)
	@$(CXX) $(CFLAGS) -MM \
		`echo $(RAWOBJS) $(GTKOBJS) $(CUROBJS) $(NETOBJS) \
		| sed -e "s/\.o/\.c/g"` >> $(DEPEND)

include $(DEPEND)

.c.o:	$(DEPEND)
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $*.c -o $@