Let the user use CXXFLAGS for his own flags.

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@105 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Moritz Bunkus 2010-04-11 16:36:50 +00:00
parent d5e9da9100
commit 0eac10d271

View File

@ -27,17 +27,17 @@ SRC = $(wildcard ../../src/*.cpp)
OBJ = $(patsubst %.cpp,%.o,$(SRC))
ifeq (yes,$(SHARED))
LIBS = libebml.dll
CXXFLAGS = -DEBML_DLL -DEBML_DLL_EXPORT
DLLFLAGS = -DEBML_DLL -DEBML_DLL_EXPORT
else
LIBS = libebml.a
endif
INCS = -I$(shell pwd)/../..
CXXFLAGS += $(DEBUGFLAGS) $(INCS)
COMPILEFLAGS = $(DEBUGFLAGS) $(INCS) $(DLLFLAGS) $(CXXFLAGS)
.PHONY: all all-before all-after clean clean-custom
.cpp.o:
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(CXX) $(COMPILEFLAGS) -c -o $@ $<
all: lib