1
0
mirror of https://github.com/krislamo/Trololo synced 2024-11-10 00:30:35 +00:00

Added Windows compatibility in makefile

This commit is contained in:
Kris Lamoureux 2013-01-01 23:53:23 -08:00
parent 3257ba8141
commit 30c6d96244

View File

@ -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}