1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00
dddvb/apps/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

TARGETS = cit citin flashprog modt ddtest setmod ddflash setmod2 pls setmod3 modconfig ddinfo getiq modtest
all: $(TARGETS)
CFLAGS = -g -Wall -Wno-unused -Wno-format
FFMPEG := $(shell command -v ffmpeg 2> /dev/null)
modtest: modtest.c
$(CC) -o modtest modtest.c -I../include/ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
test.ts:
ifndef FFMPEG
$(error "ffmpeg is not available please install to create test stream")
endif
ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 \
-f lavfi -i sine=f=440:b=4 -shortest -metadata \
service_provider="DD" -metadata service_name="Test" test.ts
2015-08-05 17:22:42 +02:00
cit: cit.c
2017-03-10 12:28:31 +01:00
$(CC) -o cit cit.c -lpthread
2015-08-05 17:22:42 +02:00
modt: modt.c
2017-03-10 12:28:31 +01:00
$(CC) -o modt modt.c -lpthread
2015-08-05 17:22:42 +02:00
setmod: setmod.c
2017-03-10 12:28:31 +01:00
$(CC) -o setmod setmod.c -I../include/
2015-08-05 17:22:42 +02:00
2016-09-02 17:37:15 +02:00
setmod2: setmod2.c
2017-03-10 12:28:31 +01:00
$(CC) -o setmod2 setmod2.c -I../include/
2016-09-02 17:37:15 +02:00
2017-10-12 14:22:38 +02:00
setmod3: setmod3.c
$(CC) -o setmod3 setmod3.c -I../include/
2021-04-07 19:28:49 +02:00
modconfig: modconfig.c
$(CC) -o modconfig modconfig.c -I../include/
%: %.c
$(CC) $(CFLAGS) -I../ddbridge -I../include/ $< -o $@
2018-04-07 20:16:32 +02:00
%.o: %.c
$(CC) $(CFLAGS) -I../ddbridge -o $@ $<
2015-08-05 17:22:42 +02:00
clean:
for f in $(TARGETS) *.o *~ test.ts; do \
if [ -e "$$f" ]; then \
rm "$$f" || exit 1; \
fi \
done