Skip to content

Commit

Permalink
Merge pull request #1389 from berryzplus/feature/fix_mydefines
Browse files Browse the repository at this point in the history
言語DLLのMakefileのMYDEFINESの指定方法をシンプルに戻す
  • Loading branch information
berryzplus committed Sep 5, 2020
2 parents 64427bb + e12e410 commit 2f0a862
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sakura_lang_en_US/Makefile
Expand Up @@ -13,7 +13,7 @@
#
# Debug build:
# $ cd sakura_lang_en_US
# $ mingw32-make MYDEFINES="_DEBUG" -j4
# $ mingw32-make MYDEFINES="-D_DEBUG" -j4

# Path of "sakura_lang_en_US" directory. Compute it from the path of Makefile.
SRCDIR = $(patsubst %/,%,$(subst \,/,$(dir $(firstword $(MAKEFILE_LIST)))))
Expand Down Expand Up @@ -61,18 +61,18 @@ endif
CC= $(PREFIX)gcc
RC= $(RCPREFIX)windres

ifeq (_DEBUG,$(findstring _DEBUG,$(MYDEFINES)))
else ifeq (NDEBUG,$(findstring NDEBUG,$(MYDEFINES)))
ifeq (-D_DEBUG,$(findstring -D_DEBUG,$(MYDEFINES)))
else ifeq (-DNDEBUG,$(findstring -DNDEBUG,$(MYDEFINES)))
else
MYDEFINES += NDEBUG
MYDEFINES += -DNDEBUG
endif

DEFINES= \
-DWIN32 \
-D_WIN32_WINNT=_WIN32_WINNT_WIN7 \
-D_UNICODE \
-DUNICODE \
$(addprefix -D,$(MYDEFINES))
$(MYDEFINES)
LDFLAGS= \
-static \
-shared \
Expand Down

0 comments on commit 2f0a862

Please sign in to comment.