build applications as Windows GUI applications
This commit is contained in:
parent
00c3484a6c
commit
5c7b41fe8f
5
Makefile
5
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user