diff options
author | Joursoir <chat@joursoir.net> | 2021-01-05 18:07:25 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-01-05 18:07:25 +0300 |
commit | a76b00c511db1d3529bba51475a24ca93d12913e (patch) | |
tree | dc0cb14e52b7d37cb76a58bdc54cb2aac1bc9e11 /src/client/gui/Makefile | |
parent | a5d15a716f6e7e21a67529478f77851d15defe09 (diff) | |
download | want-chat-a76b00c511db1d3529bba51475a24ca93d12913e.tar.gz want-chat-a76b00c511db1d3529bba51475a24ca93d12913e.tar.bz2 want-chat-a76b00c511db1d3529bba51475a24ca93d12913e.zip |
client gui: add support windows
Diffstat (limited to 'src/client/gui/Makefile')
-rw-r--r-- | src/client/gui/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/gui/Makefile b/src/client/gui/Makefile index a72e64d..d317bfc 100644 --- a/src/client/gui/Makefile +++ b/src/client/gui/Makefile @@ -1,8 +1,15 @@ CPP = g++ -CPPFLAGS = -Wall -g -lfltk +CPPFLAGS = -Wall -g +LDFLAGS = +ifeq ($(OS),Windows_NT) + CPPFLAGS += -static-libgcc -static-libstdc++ $(shell fltk-config --cxxflags) + LDFLAGS += $(shell fltk-config --ldflags) -lws2_32 +else + CPPFLAGS += -lfltk +endif SOURCES = main.cpp OO_FLTK.cpp ../ClientBase.cpp Client.cpp OBJECTS = main.o OO_FLTK.o ClientBase.o Client.o -EXECUTABLE = client +EXECUTABLE = WantChat .PHONY: all clean @@ -12,7 +19,7 @@ clean: rm -rf $(OBJECTS) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) - $(CPP) $(CPPFLAGS) -o $(EXECUTABLE) $(OBJECTS) + $(CPP) $(CPPFLAGS) $(OBJECTS) $(LDFLAGS) -o $(EXECUTABLE) $(OBJECTS): $(CPP) -c $(CPPFLAGS) $(SOURCES)
\ No newline at end of file |