Commit 09014580 authored by Ralph Giles's avatar Ralph Giles Committed by Gerrit Code Review
Browse files

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
parent cebda1b6
#Variables #Variables
CC=gcc CC=gcc
LINKER=gcc LINKER=gcc
FLAGS= FLAGS=-g -Wall
all: testlibmkv
#Build Targets #Build Targets
EbmlWriter.o: EbmlWriter.c EbmlWriter.h EbmlWriter.o: EbmlWriter.c EbmlWriter.h
...@@ -10,16 +11,15 @@ EbmlWriter.o: EbmlWriter.c EbmlWriter.h ...@@ -10,16 +11,15 @@ EbmlWriter.o: EbmlWriter.c EbmlWriter.h
EbmlBufferWriter.o: EbmlBufferWriter.c EbmlBufferWriter.h EbmlBufferWriter.o: EbmlBufferWriter.c EbmlBufferWriter.h
$(CC) $(FLAGS) -c EbmlBufferWriter.c $(CC) $(FLAGS) -c EbmlBufferWriter.c
MkvElement.o: MkvElement.c WebMElement.h WebMElement.o: WebMElement.c WebMElement.h
$(CC) $(FLAGS) -c MkvElement.c $(CC) $(FLAGS) -c WebMElement.c
testlibmkv.o: testlibmkv.c testlibmkv.o: testlibmkv.c
$(CC) $(FLAGS) -c testlibmkv.c $(CC) $(FLAGS) -c testlibmkv.c
testlibmkv: testlibmkv.o MkvElement.o EbmlBufferWriter.o EbmlWriter.o testlibmkv: testlibmkv.o WebMElement.o EbmlBufferWriter.o EbmlWriter.o
$(LINKER) $(FLAGS) testlibmkv.o MkvElement.o EbmlBufferWriter.o EbmlWriter.o -o testlibmkv $(LINKER) $(FLAGS) -o testlibmkv testlibmkv.o WebMElement.o EbmlBufferWriter.o EbmlWriter.o
clean: clean:
rm -rf *.o testlibmkv rm -rf *.o testlibmkv
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment