Fix makefile for linux
This commit is contained in:
parent
1a564b75ca
commit
71b44fac87
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -8,8 +8,8 @@ SRC_DIR = src
|
||||||
INC_DIR = include
|
INC_DIR = include
|
||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
|
|
||||||
CFLAGS = -I $(INC_DIR) -MMD -MP -I c:/SDL2/include -I c:/SDL2/include/SDL2 -Dmain=SDL_main
|
CFLAGS = -I $(INC_DIR) -MMD -MP $(shell sdl2-config --cflags)
|
||||||
LDFLAGS = -L c:/SDL2/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -static-libstdc++ -static-libgcc
|
LDFLAGS = $(shell sdl2-config --libs)
|
||||||
|
|
||||||
SRC = $(wildcard $(SRC_DIR)/*.cpp)
|
SRC = $(wildcard $(SRC_DIR)/*.cpp)
|
||||||
OBJ = $(SRC:$(SRC_DIR)/%.cpp=$(BUILD_DIR)/%.o)
|
OBJ = $(SRC:$(SRC_DIR)/%.cpp=$(BUILD_DIR)/%.o)
|
||||||
|
|
Reference in a new issue