File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ CXX := g++
6363ARCH ?= native
6464
6565# Show console window on Windows? (set to false for GUI-only apps)
66- USE_CONSOLE ?= false
66+ USE_CONSOLE ?= true
6767
6868# Optimization levels
6969OPT_RELEASE ?= -O3
@@ -109,7 +109,7 @@ endif
109109ifeq ($(OS ) ,Windows_NT)
110110 OS_NAME := Windows
111111 ifeq ($(USE_CONSOLE),false)
112- CONSOLEFLAGS := -mwindows -luser32
112+ CONSOLEFLAGS := -mwindows
113113 endif
114114
115115 # Choose command style depending on shell (PowerShell vs cmd)
@@ -154,13 +154,10 @@ LDFLAGS := -L./lib/
154154
155155LIBS := -ld3d12 -ldxgi -ld3dcompiler
156156
157- CONSOLEFLAGS ?=
158- SANITIZERS ?=
159-
160157# === Platform-specific libraries ===
161158ifeq ($(OS ) ,Windows_NT)
162159 # Windows / MinGW common
163- LIBS += -luser32 -lkernel32 -lshell32 -ldwmapi
160+ LIBS += -lkernel32 - luser32 -lgdi32 -lshell32 -ldwmapi
164161endif
165162
166163ifeq ($(OS_NAME ) ,Linux)
@@ -203,7 +200,13 @@ DEPFLAGS = -MT $@ -MMD -MP -MF $(DEP_DIR)/$*.d
203200# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
204201
205202.PHONY : all dirs
203+ ifeq ($(words $(SOURCES ) ) ,0)
204+ all : clean-banner
205+ @printf " \n$( WARN_COLOR) No source files found. Nothing to build.$( NO_COLOR) \n"
206+ @exit 0
207+ else
206208all : clean-banner dirs $(BIN_DIR ) /$(TARGET )
209+ endif
207210
208211dirs :
209212 @$(MKDIR ) " $( call FIXPATH,$( BIN_DIR) ) "
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ endif
109109ifeq ($(OS ) ,Windows_NT)
110110 OS_NAME := Windows
111111 ifeq ($(USE_CONSOLE),false)
112- CONSOLEFLAGS := -mwindows -luser32
112+ CONSOLEFLAGS := -mwindows
113113 endif
114114
115115 # Choose command style depending on shell (PowerShell vs cmd)
@@ -157,7 +157,7 @@ LIBS :=
157157# === Platform-specific libraries ===
158158ifeq ($(OS ) ,Windows_NT)
159159 # Windows / MinGW common
160- LIBS += -luser32 -lkernel32 -lshell32 -ldwmapi
160+ LIBS += -lkernel32 - luser32 -lgdi32 -lshell32 -ldwmapi
161161endif
162162
163163ifeq ($(OS_NAME ) ,Linux)
You canβt perform that action at this time.
0 commit comments