Add condition to build golded+ with spellchecker into Makefile
This commit is contained in:
parent
eced0b35a3
commit
45c2293497
@ -72,3 +72,5 @@
|
|||||||
#CPPFLAGS+=-DGCFG_NOXMAIL
|
#CPPFLAGS+=-DGCFG_NOXMAIL
|
||||||
# Uncomment to disable Synchronet BBS support
|
# Uncomment to disable Synchronet BBS support
|
||||||
#CPPFLAGS+=-DGCFG_NOSYNCHRONET
|
#CPPFLAGS+=-DGCFG_NOSYNCHRONET
|
||||||
|
# Uncomment to enable MS Office spellchecker support (win32 only)
|
||||||
|
#CPPFLAGS+=-D__GOLD_SPELL__
|
||||||
|
@ -76,6 +76,7 @@ SHELL=sh
|
|||||||
EXEEXT=.exe
|
EXEEXT=.exe
|
||||||
OBJEXT=.o
|
OBJEXT=.o
|
||||||
LIBEXT=.a
|
LIBEXT=.a
|
||||||
|
CPPFLAGS+=-Wno-deprecated
|
||||||
else
|
else
|
||||||
ifeq ($(PLATFORM),be)
|
ifeq ($(PLATFORM),be)
|
||||||
CAT=cat
|
CAT=cat
|
||||||
|
15
golded.mak
15
golded.mak
@ -6,10 +6,19 @@
|
|||||||
#
|
#
|
||||||
# NMAKE /f "golded.mak" CFG="Release"
|
# NMAKE /f "golded.mak" CFG="Release"
|
||||||
#
|
#
|
||||||
# or
|
# to standard build or
|
||||||
|
#
|
||||||
|
# NMAKE /f "golded.mak" CFG="Release" CPP_EXTRA_FLAGS=/D__GOLD_SPELL__
|
||||||
|
#
|
||||||
|
# to build with spellcheck feature or
|
||||||
#
|
#
|
||||||
# NMAKE /f "golded.mak" CFG="Debug"
|
# NMAKE /f "golded.mak" CFG="Debug"
|
||||||
#
|
#
|
||||||
|
# to build debug binary or
|
||||||
|
#
|
||||||
|
# NMAKE /f "golded.mak" CFG="Debug" CPP_EXTRA_FLAGS=/D__GOLD_SPELL__
|
||||||
|
#
|
||||||
|
# to build debug binary with spellcheck feature
|
||||||
#
|
#
|
||||||
|
|
||||||
!IF "$(CFG)" == ""
|
!IF "$(CFG)" == ""
|
||||||
@ -288,11 +297,11 @@ RSC_FLAGS=/igolded3 /fo$(OBJ_DIR)\gedcyg.res
|
|||||||
LNK_FLAGS=winmm.lib user32.lib /nologo /subsystem:console /machine:I386
|
LNK_FLAGS=winmm.lib user32.lib /nologo /subsystem:console /machine:I386
|
||||||
|
|
||||||
!IF "$(CFG)" == "Release"
|
!IF "$(CFG)" == "Release"
|
||||||
CPP_PROJ=$(CPP_FLAGS) /MD /O1 /DNDEBUG
|
CPP_PROJ=$(CPP_FLAGS) /MD /O1 /DNDEBUG $(CPP_EXTRA_FLAGS)
|
||||||
RSC_PROJ=$(RSC_FLAGS) /dNDEBUG
|
RSC_PROJ=$(RSC_FLAGS) /dNDEBUG
|
||||||
LNK_PROJ=$(LNK_FLAGS) /incremental:no
|
LNK_PROJ=$(LNK_FLAGS) /incremental:no
|
||||||
!ELSEIF "$(CFG)" == "Debug"
|
!ELSEIF "$(CFG)" == "Debug"
|
||||||
CPP_PROJ=$(CPP_FLAGS) /MDd /Gm /ZI /GZ /Od /D_DEBUG
|
CPP_PROJ=$(CPP_FLAGS) /MDd /Gm /ZI /GZ /Od /D_DEBUG $(CPP_EXTRA_FLAGS)
|
||||||
RSC_PROJ=$(RSC_FLAGS) /d_DEBUG
|
RSC_PROJ=$(RSC_FLAGS) /d_DEBUG
|
||||||
LNK_PROJ=$(LNK_FLAGS) /incremental:yes /debug /pdbtype:sept
|
LNK_PROJ=$(LNK_FLAGS) /incremental:yes /debug /pdbtype:sept
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
Reference in New Issue
Block a user