From 05b8e8731cb6856941a81eca99191ef332f368dc Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 24 Dec 2014 11:59:17 +0100 Subject: [PATCH] Builds on MinGW now --- Makefile.mingw | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile.mingw diff --git a/Makefile.mingw b/Makefile.mingw new file mode 100644 index 0000000..c71db47 --- /dev/null +++ b/Makefile.mingw @@ -0,0 +1,19 @@ +SRCDIR=src +BUILDDIR=build +SRC := $(patsubst %.cpp,$(SRCDIR)/%.cpp, rwbase.cpp clump.cpp\ + geometry.cpp plugins.cpp ps2.cpp\ + ogl.cpp) +OBJ := $(patsubst $(SRCDIR)/%.cpp,$(BUILDDIR)/%.o,$(SRC)) +DEP := $(patsubst $(SRCDIR)/%.cpp,$(BUILDDIR)/%.d,$(SRC)) +CFLAGS=-Wall -Wextra -g -DGLEW_STATIC #-Wno-parentheses #-Wconversion + +librw.a: $(OBJ) + ar scr $@ $(OBJ) + +$(BUILDDIR)/%.o: $(SRCDIR)/%.cpp + $(CXX) $(CFLAGS) -c $< -o $@ + +$(BUILDDIR)/%.d: $(SRCDIR)/%.cpp + $(CXX) -MM -MT '$(patsubst $(SRCDIR)/%.cpp,$(BUILDDIR)/%.o,$<)' $(CFLAGS) $< > $@ + +-include $(DEP)