aboutsummaryrefslogtreecommitdiffstats
path: root/console/Subdir.mk
blob: 848a77b80294cfcb160118a302471d6df3fdcb33 (plain)
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
99
100
101
102
103
# targets to build
TARGETS-console := \
	console/dump-mixers \
	console/record \
	console/showriff \
	console/showqt \
	console/streamer \
	console/webcam
TARGETS-v4l-conf := 

ifeq ($(FOUND_ZVBI),yes)
TARGETS-console += \
	console/scantv
endif
ifeq ($(FOUND_AALIB),yes)
TARGETS-console += \
	console/ttv
endif
ifeq ($(FOUND_OS),linux)
TARGETS-console += \
	console/radio \
	console/fbtv \
	console/v4l-info
TARGETS-v4l-conf += \
	console/v4l-conf
endif

# objects for targets
console/fbtv: \
	console/fbtv.o \
	console/fbtools.o \
	console/fs.o \
	console/matrox.o \
	common/channel-no-x11.o \
	$(OBJS-common-input) \
	$(OBJS-common-capture)

console/ttv: \
	console/ttv.o \
	common/channel-no-x11.o \
	$(OBJS-common-capture)

console/scantv: \
	console/scantv.o \
	common/vbi-data.o \
	common/channel-no-x11.o \
	$(OBJS-common-capture)

console/streamer: \
	console/streamer.o \
	common/channel-no-x11.o \
	$(OBJS-common-capture)

console/webcam: \
	console/webcam.o \
	console/ftp.o \
	common/parseconfig.o \
	libng/libng.a

console/v4l-info: \
	console/v4l-info.o \
	structs/struct-dump.o \
	structs/struct-v4l.o \
	structs/struct-v4l2.o

console/dump-mixers: console/dump-mixers.o
console/showriff: console/showriff.o
console/showqt: console/showqt.o
console/radio: console/radio.o
console/record: console/record.o
console/v4l-conf: console/v4l-conf.o

# libraries to link
console/fbtv     : LDLIBS  += \
	$(THREAD_LIBS) $(CURSES_LIBS) $(LIRC_LIBS) $(ALSA_LIBS) \
	$(FS_LIBS) -ljpeg -lm
console/ttv      : LDLIBS  += $(THREAD_LIBS) $(AA_LIBS) -ljpeg -lm
console/scantv   : LDLIBS  += $(THREAD_LIBS) $(VBI_LIBS) -ljpeg
console/streamer : LDLIBS  += $(THREAD_LIBS) -ljpeg -lm
console/webcam   : LDLIBS  += $(THREAD_LIBS) -ljpeg -lm
console/radio    : LDLIBS  += $(CURSES_LIBS)
console/record   : LDLIBS  += $(CURSES_LIBS)
console/v4l-conf : LDLIBS  += $(ATHENA_LIBS)

# linker flags
console/fbtv     : LDFLAGS := $(DLFLAGS)
console/ttv      : LDFLAGS := $(DLFLAGS)
console/scantv   : LDFLAGS := $(DLFLAGS)
console/streamer : LDFLAGS := $(DLFLAGS)
console/webcam   : LDFLAGS := $(DLFLAGS)

# global targets
all:: $(TARGETS-console) $(TARGETS-v4l-conf)

install::
	$(INSTALL_PROGRAM) $(TARGETS-console) $(bindir)
ifeq ($(FOUND_OS),linux)
	$(INSTALL_PROGRAM) $(SUID_ROOT) $(TARGETS-v4l-conf) $(bindir)
endif

distclean::
	rm -f $(TARGETS-console) $(TARGETS-v4l-conf)

Privacy Policy