diff options
| -rw-r--r-- | Makefile.MGW32 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.MGW32 b/Makefile.MGW32 index 5052028..f80e8fe 100644 --- a/Makefile.MGW32 +++ b/Makefile.MGW32 @@ -14,9 +14,11 @@ WXINCLUDES = -Iwxmsw/include/x86_64-w64-mingw32-msw-unicode-3.2 -Iwxmsw/include WXFLAGS = -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMSW__ -pthread $(WXINCLUDES) CXXFLAGS = -static -std=c++11 -lwinpthread -I/usr/lib/gcc/x86_64-w64-mingw32/12-win32/include $(WXFLAGS) +LDFLAGS = $(WXLDFLAGS) -Wl,-subsystem,windows -mwindows + all: translit translit: translit.cpp - $(CXX) $(CXXFLAGS) -o translit.exe translit.cpp $(WXLDFLAGS) + $(CXX) $(CXXFLAGS) -o translit.exe translit.cpp $(LDFLAGS) mkdir -p release && cp -r translit.exe $(MGWLIBS) $(WXLIBS) release .PHONY: clean |
