6d99850e7c
Makefile: - Add a new target that makes a single libwebm.a instead of building separate muxer and parser libraries. - Update sample targets accordingly. Visual Studio: - Use a single project for muxing and parsing, and build a single library name libwebm.lib. - Update code generation settings (DLL -> static runtimes). - Use C7 debug information format (instead of PDB) - Disable minimal rebuild (C7 use causes warning otherwise). Change-Id: Ie221d4ee02c93f98f2521757c08b75ecbf75f54f
26 lines
593 B
Makefile
26 lines
593 B
Makefile
CXX := g++
|
|
CXXFLAGS := -W -Wall -g
|
|
LIBWEBM := libwebm.a
|
|
WEBMOBJS := mkvparser.o mkvreader.o mkvmuxer.o mkvmuxerutil.o mkvwriter.o
|
|
OBJECTS1 := $(PARSEOBJ) sample.o
|
|
OBJECTS2 := $(PARSEOBJ) $(MUXEROBJ) sample_muxer/sample_muxer.o
|
|
INCLUDES := -I.
|
|
EXES := samplemuxer sample
|
|
|
|
all: $(EXES)
|
|
|
|
sample: sample.o $(LIBWEBM)
|
|
$(CXX) $^ -o $@
|
|
|
|
samplemuxer: sample_muxer/sample_muxer.o $(LIBWEBM)
|
|
$(CXX) $^ -o $@
|
|
|
|
libwebm.a: $(WEBMOBJS)
|
|
$(AR) rcs $@ $^
|
|
|
|
%.o: %.cpp
|
|
$(CXX) -c $(CXXFLAGS) $(INCLUDES) $< -o $@
|
|
|
|
clean:
|
|
$(RM) -f $(OBJECTS1) $(OBJECTS2) $(WEBMOBJS) $(LIBWEBM) $(EXES) Makefile.bak
|