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:
parent
6e857bf630
commit
ed93d90c51
6
Makefile
6
Makefile
@ -16,12 +16,13 @@ OBJS = $(wonderswan_CXX_SRCS:.cpp=.o)
|
|||||||
|
|
||||||
all: wonderswan dumpinfo
|
all: wonderswan dumpinfo
|
||||||
|
|
||||||
CXX = g++
|
# CXX = g++
|
||||||
CXXFLAGS = -g -O2 `sdl-config --cflags` -Wall -Werror -std=c++98 -Wno-write-strings -Wno-unused-result
|
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`\"
|
OPTIONS = -D_REENTRANT -I. -DVERSION=\"`git describe --tags --long --dirty`\"
|
||||||
|
|
||||||
LIBRARY_PATH =
|
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)
|
ALLCFLAGS = $(CFLAGS) $(CEXTRA) $(OPTIONS) $(ALLFLAGS)
|
||||||
ALLCXXFLAGS=$(CXXFLAGS) $(CXXEXTRA) $(OPTIONS) $(ALLFLAGS)
|
ALLCXXFLAGS=$(CXXFLAGS) $(CXXEXTRA) $(OPTIONS) $(ALLFLAGS)
|
||||||
@ -53,4 +54,5 @@ dumpinfo: dumpinfo.o
|
|||||||
$(CXX) $(LIBS) -o $@ $(<)
|
$(CXX) $(LIBS) -o $@ $(<)
|
||||||
|
|
||||||
wonderswan: $(OBJS)
|
wonderswan: $(OBJS)
|
||||||
|
@echo "SDL Libs>> $(SDL_LIBS)"
|
||||||
$(CXX) $(LIBS) -o $@ $(OBJS)
|
$(CXX) $(LIBS) -o $@ $(OBJS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user