From cf0db9af4694e60c78b3603edfa86616b98b32ce Mon Sep 17 00:00:00 2001 From: orangea Date: Sat, 8 Jan 2011 17:28:14 -0800 Subject: [PATCH] Makefile: trying to get it to compile on windows. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4b49ceb3..ae2a0f0c 100644 --- a/Makefile +++ b/Makefile @@ -32,10 +32,12 @@ COMMIT = `git rev-list HEAD -1 --abbrev=7 --abbrev-commit` RELEASE ?= ${VERSION}.${REVISION} PKG := "potion-${RELEASE}" -MINGW = `./tools/config.sh ${CC} mingw` -CFLAGS += ${if ${seq ${MINGW},0},-rdynamic} -INCS += ${if ${seq ${MINGW},1},-Itools/dlfcn-win32/include} -LIBS += ${if ${seq ${MINGW},1},-Ltools/dlfcn-win32/lib} +ifeq "`./tools/config.sh ${CC} mingw`" "0" + CFLAGS += -rdynamic +else + INCS += -Itools/dlfcn-win32/include + LIBS += -Ltools/dlfcn-win32/lib +endif all: pn +${MAKE} -s usage