aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/lib/acinerella/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Game/Code/lib/acinerella/makefile')
-rw-r--r--Game/Code/lib/acinerella/makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Game/Code/lib/acinerella/makefile b/Game/Code/lib/acinerella/makefile
new file mode 100644
index 00000000..cc5fde3b
--- /dev/null
+++ b/Game/Code/lib/acinerella/makefile
@@ -0,0 +1,13 @@
+acinerella: acinerella.c acinerella.h
+ gcc -c acinerella.c -I /usr/local/include
+
+ifeq "$(OSTYPE)" "linux"
+ gcc -shared -o libacinerella.so acinerella.o -lavformat -lavcodec -lavutil -lm -lswscale
+ strip libacinerella.so
+else
+ gcc -shared -o acinerella.dll -fPIC acinerella.o -lavformat -lavcodec -lavutil -lm -lswscale -lws2_32
+ strip acinerella.dll
+endif
+
+test: test.c acinerella.h
+ gcc -o test test.c -L. -lacinerella