Backport the portable branch's warnings
This commit is contained in:
parent
78a066ce75
commit
a1937b4730
2 changed files with 21 additions and 1 deletions
19
Makefile
19
Makefile
|
@ -40,7 +40,24 @@ ifeq ($(DEBUG_SAVE), 1)
|
||||||
ALL_CXXFLAGS += -DDEBUG_SAVE
|
ALL_CXXFLAGS += -DDEBUG_SAVE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ALL_CXXFLAGS += -std=c++98 -Wall -Wextra -pedantic -MMD -MP -MF $@.d
|
ifeq ($(WARNINGS), 1)
|
||||||
|
ALL_CXXFLAGS += -Wall -Wextra -pedantic
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(WARNINGS_ALL), 1)
|
||||||
|
ifneq ($(findstring clang,$(CXX)),)
|
||||||
|
# Use clang-specific flag -Weverything
|
||||||
|
ALL_CXXFLAGS += -Weverything
|
||||||
|
else
|
||||||
|
$(warning Couldn't activate all warnings (unsupported compiler))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(WARNINGS_FATAL), 1)
|
||||||
|
ALL_CXXFLAGS += -Werror
|
||||||
|
endif
|
||||||
|
|
||||||
|
ALL_CXXFLAGS += -std=c++98 -MMD -MP -MF $@.d
|
||||||
ALL_LIBS += -lkernel32 -lgdi32 -lddraw -ldinput -ldsound -lversion -lshlwapi -limm32 -lwinmm -ldxguid
|
ALL_LIBS += -lkernel32 -lgdi32 -lddraw -ldinput -ldsound -lversion -lshlwapi -limm32 -lwinmm -ldxguid
|
||||||
|
|
||||||
ifeq ($(STATIC), 1)
|
ifeq ($(STATIC), 1)
|
||||||
|
|
|
@ -55,6 +55,9 @@ Name | Function
|
||||||
`JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
|
`JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
|
||||||
`FIX_BUGS=1` | Fix various bugs in the game
|
`FIX_BUGS=1` | Fix various bugs in the game
|
||||||
`DEBUG_SAVE=1` | Re-enable the dummied-out 'Debug Save' option, and the ability to drag-and-drop save files onto the window
|
`DEBUG_SAVE=1` | Re-enable the dummied-out 'Debug Save' option, and the ability to drag-and-drop save files onto the window
|
||||||
|
`WARNINGS=1` | Enable common warnings
|
||||||
|
`WARNINGS_ALL=1` | Enable ALL warnings (clang only)
|
||||||
|
`WARNINGS_FATAL=1` | Make all warnings errors
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue