From 5c7b41fe8f5fd239e005ee2c88ca1e8a802753fc Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 5 Mar 2012 09:04:26 -0500 Subject: [PATCH] build applications as Windows GUI applications --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b212142..58c4102 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,13 @@ CC := $(PREFIX)-gcc CXX := $(PREFIX)-g++ LD := $(PREFIX)-ld CPPFLAGS := -I$(SFML_DIR)/include -LDFLAGS := -L$(SFML_DIR)/lib -lsfml-system -lsfml-window -static-libstdc++ -static-libgcc +CXXFLAGS := -mwindows +LDFLAGS := -L$(SFML_DIR)/lib -lsfml-system -lsfml-window -static-libstdc++ -static-libgcc -mwindows all: clock window events dlls %: %.cpp - $(CXX) -o $@ $(CPPFLAGS) $^ $(LDFLAGS) + $(CXX) -o $@ $(CPPFLAGS) $(CXXFLAGS) $^ $(LDFLAGS) .PHONY: dlls dlls: libgcc_s_dw2-1.dll