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