forked from RC-MODULE/utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 734 Bytes
/
Makefile
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
CC=$(GNU_TARGET_NAME)-gcc
CXX=$(GNU_TARGET_NAME)-g++
PKG_CONFIG=$(GNU_TARGET_NAME)-pkg-config
targets = tuneqpsk pessave tstap ts-save-1 sec-filter parse-pmt parse-pat parse-nit parse-sdt parse-eit dvbca mwatch 5909 osd i2cget i2cset
all: $(targets)
install: $(targets)
cp $^ $(DESTDIR)/usr/bin
tuneqpsk: tuneqpsk.c
$(CC) $^ -o $@
ts-save-1: ts-save-1.c mdemux.c common.c
$(CC) $^ -o $@
mwatch: mwatch.c
$(CC) $^ $(shell $(PKG_CONFIG) gstreamer-0.10 --cflags --libs) -o $@
clean:
rm -f $(targets)
rm -f *.o
%: %.cpp
$(CXX) --std=c++0x $^ -o $@
i2cget: i2c/*
$(CC) -Ii2c i2c/i2cget.c i2c/i2cbusses.c i2c/util.c -o i2cget
i2cset: i2c/*
$(CC) -Ii2c i2c/i2cset.c i2c/i2cbusses.c i2c/util.c -o i2cset
.PHONY: all clean