2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / src / asf / Makefile
blobe116410a1882736e4ff68b1c36d0ccd5d163309a
1 ASF_INCLUDES=-I/usr/local/include -I/usr/local/include/ffmpeg -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/alsa
2 ASF_COMPILER_ARGUMENTS=-MMD -Wall -g -O0 -DDEBUG -I../.. -I.prec $(ASF_INCLUDES) -c
3 ASF_DUMP_ARGUMENTS=-Ddump -DDEBUG
4 ASF_BIN=asf
5 ASF_LINK=-lglib-2.0 -lgcov -Wl,--rpath -Wl,/mono/head/moon/src/.libs -Wl,--rpath -Wl,/mono/install/lib -Wl,--rpath -Wl,/mono/install/lib ../.libs/libmoon.so /mono/install/lib/libmono.so
7 default: asf-generated.h compile
8 g++ -o $(ASF_BIN) asf.o asf-generated.o asf-guids.o asf-structures.o asf-debug.o asf-test.o $(ASF_LINK)
10 compile:
11 g++ $(ASF_COMPILER_ARGUMENTS) asf.cpp -o asf.o
12 g++ $(ASF_COMPILER_ARGUMENTS) asf-generated.cpp -o asf-generated.o
13 g++ $(ASF_COMPILER_ARGUMENTS) asf-guids.cpp -o asf-guids.o
14 g++ $(ASF_COMPILER_ARGUMENTS) asf-structures.cpp -o asf-structures.o
15 g++ $(ASF_COMPILER_ARGUMENTS) asf-debug.cpp -o asf-debug.o
16 g++ $(ASF_COMPILER_ARGUMENTS) asf-test.cpp -o asf-test.o
18 valgrind: default
19 valgrind --tool=memcheck -v --leak-check=full --log-file=v.log --smc-check=all $(ASF_BIN) $(ASF_ARGS)
21 gdb: default
22 # gdb --eval-command=run --args $(ASF_BIN) $(ASF_ARGS)
23 gdb --args $(ASF_BIN) $(ASF_ARGS)
25 run: default
26 $(ASF_BIN) $(ASF_ARGS)
28 asf-generated.h: generate asf.h asf.cs
30 generate: asf.h asf.cs
31 gmcs asf.cs -out:asf-generate.exe
32 mono --debug asf-generate.exe
33 rm -f asf-generate.exe*
35 corrupt: default
36 valgrind --tool=memcheck -v --leak-check=full --log-file=v.log --smc-check=all $(ASF_BIN) -in:a.wmv -test -corruption:2000
38 asf-dump: asf.cpp asf-generated.cpp asf-guids.cpp asf-structures.cpp asf-debug.cpp asf-test.cpp
39 g++ $(ASF_COMPILER_ARGUMENTS) $(ASF_DUMP_ARGUMENTS) asf.cpp -o asf-d.o
40 g++ $(ASF_COMPILER_ARGUMENTS) $(ASF_DUMP_ARGUMENTS) asf-generated.cpp -o asf-generated-d.o
41 g++ $(ASF_COMPILER_ARGUMENTS) $(ASF_DUMP_ARGUMENTS) asf-guids.cpp -o asf-guids-d.o
42 g++ $(ASF_COMPILER_ARGUMENTS) $(ASF_DUMP_ARGUMENTS) asf-structures.cpp -o asf-structures-d.o
43 g++ $(ASF_COMPILER_ARGUMENTS) $(ASF_DUMP_ARGUMENTS) asf-debug.cpp -o asf-debug-d.o
44 g++ $(ASF_COMPILER_ARGUMENTS) asf-test.cpp -o asf-test-d.o
45 g++ -o $(ASF_BIN)-dump asf-d.o asf-generated-d.o asf-guids-d.o asf-structures-d.o asf-debug-d.o asf-test-d.o $(ASF_LINK)