From 30c6d9624424b110d6cbae4e1b26ebfa5f84559e Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Tue, 1 Jan 2013 23:53:23 -0800 Subject: [PATCH] Added Windows compatibility in makefile --- makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 4f74a82..28920c8 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,10 @@ -SDL_LIBS=`pkg-config --libs sdl` -lSDL -lSDL_image -lSDL_ttf -INCLUDES=-I/opt/local/include +ifdef SystemRoot + INCLUDES=-IC:\MinGW\include + SDL_LIBS=-lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lSDL_ttf +else + INCLUDES=-I/opt/local/include + SDL_LIBS=`pkg-config --libs sdl` -lSDL -lSDL_image -lSDL_ttf +endif + all: g++ -Wall main.cpp core.cpp main.h -o Trololo ${INCLUDES} ${SDL_LIBS}