Make sure we are not forcing to GCC and add a bit of debug.

CMake find the proper lib but not the makefile? WTF
This commit is contained in:
Godzil 2020-02-11 00:29:34 +00:00
parent 6e857bf630
commit ed93d90c51

View File

@ -16,12 +16,13 @@ OBJS = $(wonderswan_CXX_SRCS:.cpp=.o)
all: wonderswan dumpinfo
CXX = g++
# CXX = g++
CXXFLAGS = -g -O2 `sdl-config --cflags` -Wall -Werror -std=c++98 -Wno-write-strings -Wno-unused-result
OPTIONS = -D_REENTRANT -I. -DVERSION=\"`git describe --tags --long --dirty`\"
LIBRARY_PATH =
LIBS = -g $(LIBRARY_PATH) `sdl-config --libs`
SDL_LIBS = `sdl-config --libs`
LIBS = -g $(LIBRARY_PATH) $(SDL_LIBS)
ALLCFLAGS = $(CFLAGS) $(CEXTRA) $(OPTIONS) $(ALLFLAGS)
ALLCXXFLAGS=$(CXXFLAGS) $(CXXEXTRA) $(OPTIONS) $(ALLFLAGS)
@ -53,4 +54,5 @@ dumpinfo: dumpinfo.o
$(CXX) $(LIBS) -o $@ $(<)
wonderswan: $(OBJS)
@echo "SDL Libs>> $(SDL_LIBS)"
$(CXX) $(LIBS) -o $@ $(OBJS)