[dc92b3]: src / Makefile.in Maximize Restore History

Download this file

Makefile.in    49 lines (35 with data), 1.0 kB

 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
sinclude Makeconf
OCTFILES = avifile.oct aviread.oct aviinfo.oct addframe.oct
FFMPEG_CONFIG = @FFMPEG_CONFIG@
ifdef FFMPEG_CONFIG
FFMPEG_LIBS = $(shell pkg-config libavformat --libs)
FFMPEG_CFLAGS = $(shell pkg-config libavformat --cflags)
else
FFMPEG_LIBS = -lavformat -lavcodec -lz -lm
FFMPEG_CFLAGS =
endif
AVOBJS = AVHandler.o oct-avifile.o
.PHONY: all strip
all: ${OCTFILES}
.PHONY: clean
clean:
rm -f *.o *.oct avctest *~ octave-core
oct-avifile.o: AVHandler.o
${AVOBJS}: %.o: %.cc
mkoctfile -v -c $(FFMPEG_CFLAGS) $< -o $@
${OCTFILES}: %.oct: %.cc AVHandler.o oct-avifile.o
mkoctfile -v $< $(filter %.o, $^) $(FFMPEG_LIBS) $(FFMPEG_CFLAGS)
avctest.o: avctest.cc
g++ -Wall -c avctest.cc -o avctest.o
avctest: AVHandler.o avctest.o
g++ $^ -Wall ${FFMPEG_OPTS} -o $@
.PHONY: strip
strip: all
strip $(shell find ./* -name "*.oct") avctest
TEST_CASES = \
avitest
NOT_BROKEN_TEST_CASES = $(TEST_CASES:=.test)
.PHONY: check
check: $(NOT_BROKEN_TEST_CASES)
%.test:
octave -q tests/$*.m > /dev/null