fixed acinerella makefile for linux

This commit is contained in:
Alexander Eckart committed 2012-06-19 17:47:37 +02:00
1 parent f5e4cba426
commit 5b87c37e3a
1 file changed
+3 -4
+3 -4
View File
@@ -1,13 +1,12 @@
OSTYPE=$(shell uname)
acinerella: acinerella.c acinerella.h
gcc -c acinerella.c -I /usr/local/include
ifeq "$(OSTYPE)" "linux"
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