ref: 0901458015acb24a5305de3c40c3d84e0bbfe22f
parent: cebda1b65cf821b3dd7bbdd3a93c8e2bfe9b499b
author: Ralph Giles <[email protected]>
date: Mon Feb 3 06:42:45 EST 2014
libmkv: fix Makefile. Update the local makefile to build all the files and the test application by default to simplify build verification. Change-Id: Ic10141ea14c85110ff7507447d16297b77d296e9
--- a/third_party/libmkv/Makefile
+++ b/third_party/libmkv/Makefile
@@ -1,8 +1,9 @@
#Variables
CC=gcc
LINKER=gcc
-FLAGS=
+FLAGS=-g -Wall
+all: testlibmkv
#Build Targets
EbmlWriter.o: EbmlWriter.c EbmlWriter.h
@@ -10,16 +11,15 @@
EbmlBufferWriter.o: EbmlBufferWriter.c EbmlBufferWriter.h
$(CC) $(FLAGS) -c EbmlBufferWriter.c
-
-MkvElement.o: MkvElement.c WebMElement.h
- $(CC) $(FLAGS) -c MkvElement.c
-
+
+WebMElement.o: WebMElement.c WebMElement.h
+ $(CC) $(FLAGS) -c WebMElement.c
+
testlibmkv.o: testlibmkv.c
$(CC) $(FLAGS) -c testlibmkv.c
-
-testlibmkv: testlibmkv.o MkvElement.o EbmlBufferWriter.o EbmlWriter.o
- $(LINKER) $(FLAGS) testlibmkv.o MkvElement.o EbmlBufferWriter.o EbmlWriter.o -o testlibmkv
+testlibmkv: testlibmkv.o WebMElement.o EbmlBufferWriter.o EbmlWriter.o
+ $(LINKER) $(FLAGS) -o testlibmkv testlibmkv.o WebMElement.o EbmlBufferWriter.o EbmlWriter.o
+
clean:
rm -rf *.o testlibmkv
-
\ No newline at end of file