File: Makefile.am

package info (click to toggle)
libltc 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 492 kB
  • sloc: ansic: 1,509; makefile: 66
file content (41 lines) | stat: -rw-r--r-- 1,380 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
check_PROGRAMS = ltcencode ltcdecode ltcloop

CLEANFILES = output.raw atconfig

EXTRA_DIST= \
	example_encode.c \
	timecode.raw timecode.txt \
	expect_48k_2sec.txt expect_96k_2sec.txt

LIBLTCDIR =../src
INCLUDES = -I$(srcdir)/$(LIBLTCDIR)

ltcdecode_SOURCES = ltcdecode.c
ltcdecode_LDADD = $(LIBLTCDIR)/libltc.la -lm
ltcdecode_CFLAGS=-g -Wall

ltcencode_SOURCES = ltcencode.c
ltcencode_CFLAGS=-g -Wall
ltcencode_LDADD = $(LIBLTCDIR)/libltc.la -lm

ltcloop_SOURCES = ltcloop.c
ltcloop_CFLAGS=-g -Wall
ltcloop_LDADD = $(LIBLTCDIR)/libltc.la -lm


check: $(check_PROGRAMS)
	 date
	 uname -a
	 @echo "-----------------------------------------------------------------"
	 ./ltcencode output.raw
	 ./ltcdecode output.raw | diff -q $(srcdir)/expect_48k_2sec.txt -
	 @echo "-----------------------------------------------------------------"
	 ./ltcencode output.raw 192000
	 ./ltcdecode output.raw 7680 | diff -q $(srcdir)/expect_96k_2sec.txt -
	 @echo "-----------------------------------------------------------------"
	 ./ltcdecode $(srcdir)/timecode.raw 882 | diff -q $(srcdir)/timecode.txt -
	 @echo "-----------------------------------------------------------------"
	 ./ltcloop
	 @echo "-----------------------------------------------------------------"
	 @echo "  ${PACKAGE}-${VERSION} passed all tests."
	 @echo "-----------------------------------------------------------------"