]> granicus.if.org Git - libvpx/commitdiff
libmkv: fix Makefile.
authorRalph Giles <giles@mozilla.com>
Mon, 3 Feb 2014 19:42:45 +0000 (11:42 -0800)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 6 Feb 2014 07:00:22 +0000 (23:00 -0800)
Update the local makefile to build all the files and the test
application by default to simplify build verification.

Change-Id: Ic10141ea14c85110ff7507447d16297b77d296e9

third_party/libmkv/Makefile

index b53377b21792772d1c9aa63c590f9a5b3bf25428..71aee23972e54c1514269497067b48ed9595ffa9 100644 (file)
@@ -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 @@ EbmlWriter.o: EbmlWriter.c EbmlWriter.h
 
 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