2023-05-05 13:02:00 +02:00
|
|
|
TARGETS = cit ddtest setmod1 setmod2 modconfig ddinfo getiq modtest
|
2022-06-21 15:08:25 +02:00
|
|
|
|
|
|
|
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
|
2022-06-21 15:19:04 +02:00
|
|
|
$(error "ffmpeg is not available please install to create test.ts")
|
2022-06-21 15:08:25 +02:00
|
|
|
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
|
|
|
|
2021-06-05 22:36:01 +02:00
|
|
|
%: %.c
|
|
|
|
$(CC) $(CFLAGS) -I../ddbridge -I../include/ $< -o $@
|
|
|
|
|
2018-04-07 20:16:32 +02:00
|
|
|
%.o: %.c
|
2021-06-05 22:36:01 +02:00
|
|
|
$(CC) $(CFLAGS) -I../ddbridge -o $@ $<
|
2015-08-05 17:22:42 +02:00
|
|
|
|
2022-06-21 15:08:25 +02:00
|
|
|
clean:
|
2023-05-11 14:03:01 +02:00
|
|
|
rm test.ts -f
|
2022-06-21 15:19:04 +02:00
|
|
|
for f in $(TARGETS) *.o *~ ; do \
|
2022-06-21 15:08:25 +02:00
|
|
|
if [ -e "$$f" ]; then \
|
|
|
|
rm "$$f" || exit 1; \
|
|
|
|
fi \
|
|
|
|
done
|