mirror of
https://github.com/krislamo/Trololo
synced 2025-10-09 09:29:29 +00:00
Added Windows compatibility in makefile
This commit is contained in:
8
makefile
8
makefile
@@ -1,4 +1,10 @@
|
|||||||
SDL_LIBS=`pkg-config --libs sdl` -lSDL -lSDL_image -lSDL_ttf
|
ifdef SystemRoot
|
||||||
|
INCLUDES=-IC:\MinGW\include
|
||||||
|
SDL_LIBS=-lmingw32 -lSDLmain -lSDL -mwindows -lSDL_image -lSDL_ttf
|
||||||
|
else
|
||||||
INCLUDES=-I/opt/local/include
|
INCLUDES=-I/opt/local/include
|
||||||
|
SDL_LIBS=`pkg-config --libs sdl` -lSDL -lSDL_image -lSDL_ttf
|
||||||
|
endif
|
||||||
|
|
||||||
all:
|
all:
|
||||||
g++ -Wall main.cpp core.cpp main.h -o Trololo ${INCLUDES} ${SDL_LIBS}
|
g++ -Wall main.cpp core.cpp main.h -o Trololo ${INCLUDES} ${SDL_LIBS}
|
||||||
|
Reference in New Issue
Block a user