Skip to content

Commit

Permalink
Makefile: trying to get it to compile on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
orangea committed Jan 9, 2011
1 parent 866fb04 commit cf0db9a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Expand Up @@ -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
Expand Down

0 comments on commit cf0db9a

Please sign in to comment.