Epple-II/src/Makefile.mingw

22 lines
532 B
Makefile
Raw Normal View History

2019-04-11 20:14:55 +00:00
TARGET=epple2.exe
SDL_ROOT_DIR=/usr/x86_64-w64-mingw32/bin
CXX=/usr/bin/x86_64-w64-mingw32-g++
SDL2_CFLAGS=`$(SDL_ROOT_DIR)/sdl2-config --cflags`
2019-04-11 21:24:59 +00:00
CXXFLAGS=-O3 -std=c++11 $(SDL2_CFLAGS) -DETCDIR=\"..\"
2019-04-11 20:14:55 +00:00
LD=/usr/bin/x86_64-w64-mingw32-g++
2019-04-11 21:24:59 +00:00
SDL2_LDFLAGS=`$(SDL_ROOT_DIR)/sdl2-config --static-libs | sed 's/-mwindows//'` -lcomdlg32 -static-libstdc++
LDFLAGS=$(SDL2_LDFLAGS)
2019-04-11 20:14:55 +00:00
SRCS=$(notdir $(wildcard *.cpp))
INCS=$(notdir $(wildcard *.h))
OBJS=$(SRCS:.cpp=.o)
.PHONY: all
all: $(TARGET)
$(TARGET): $(OBJS)
$(LD) $^ -o $@ $(LDFLAGS)