Made changing the tool paths easier. Do not refuse to build with a mingw compiler.

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@56 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Moritz Bunkus 2010-03-23 15:55:17 +00:00
parent 35942a7134
commit 1de5badd44

View File

@ -20,10 +20,11 @@ libdir=$(prefix)/lib
includedir=$(prefix)/include/ebml
# Programs
CXX=g++
LD=$(CXX)
AR = ar rcvu
RANLIB = ranlib
CROSS =
CXX = $(CROSS)g++
LD = $(CXX)
AR = $(CROSS)ar
RANLIB = $(CROSS)ranlib
INSTALL = install
INSTALL_OPTS = -m 644
INSTALL_OPTS_LIB = -m 644
@ -36,10 +37,6 @@ ifeq (yes,$(DEBUG))
DEBUGFLAGS=-g -DDEBUG
endif
ifneq (,$(shell $(CXX) -v 2>&1 | tail -n 1 | grep -i mingw))
$(error Please use the Makefile in ../mingw32)
endif
CWD=$(shell pwd)
SRC_DIR=$(CWD)/../../src/
@ -90,7 +87,7 @@ lib:
$(CXX) -c $(COMPILEFLAGS) -fPIC -o $@ $<
$(LIBRARY): $(objects)
$(AR) $@ $(objects)
$(AR) rcvu $@ $(objects)
$(RANLIB) $@
$(LIBRARY_SO): $(objects_so)