aboutsummaryrefslogtreecommitdiffstats
path: root/test/ffmpeg_structs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/ffmpeg_structs/Makefile')
-rw-r--r--test/ffmpeg_structs/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/ffmpeg_structs/Makefile b/test/ffmpeg_structs/Makefile
new file mode 100644
index 00000000..11e87cf0
--- /dev/null
+++ b/test/ffmpeg_structs/Makefile
@@ -0,0 +1,22 @@
+FFMPEG_VERSION=1.0
+
+all: ffmpeg_c ffmpeg_pas
+ @./ffmpeg_c >ffmpeg_c.txt
+ @./ffmpeg_pas >ffmpeg_pas.txt
+ @diff ffmpeg_c.txt ffmpeg_pas.txt
+
+ffmpeg_c: ffmpeg_c.c
+ @gcc -o $@ $^
+
+ffmpeg_pas: ffmpeg_pas.pas
+ @fpc -v0 -Fi../../src $^ >/dev/null 2>&1
+
+ffmpeg_c.c:
+ @FFMPEG_VERSION=$(FFMPEG_VERSION) ./find_avtypes
+
+ffmpeg_pas.pas:
+ @FFMPEG_VERSION=$(FFMPEG_VERSION) ./find_avtypes
+
+.PHONY: clean
+clean:
+ @rm -f ffmpeg_c* ffmpeg_pas*