From 91b153126ec824195bb45b38f04e07ff9cba3029 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 10 Feb 2020 23:49:21 +0800 Subject: update makefile --- core/plat/mingw/config.mak | 2 +- core/src/demo/makefile | 2 +- core/src/tbox/makefile | 13 +++++++++++++ core/src/tbox/tbox | 2 +- core/src/xmake/makefile | 8 +++++++- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/core/plat/mingw/config.mak b/core/plat/mingw/config.mak index 8b1378917..140207723 100644 --- a/core/plat/mingw/config.mak +++ b/core/plat/mingw/config.mak @@ -1 +1 @@ - +BASE_LIBS := ws2_32 diff --git a/core/src/demo/makefile b/core/src/demo/makefile index a9c22a0e5..4ab0e2dba 100644 --- a/core/src/demo/makefile +++ b/core/src/demo/makefile @@ -14,7 +14,7 @@ demo_C_FILES += xmake demo_PKGS-$(BASE) += base # others -demo_LIBS += xmake$(DTYPE) lcurses$(DTYPE) tbox$(DTYPE) luajit$(DTYPE) sv$(DTYPE) +demo_LIBS += xmake$(DTYPE) lcurses$(DTYPE) tbox$(DTYPE) luajit$(DTYPE) sv$(DTYPE) $(BASE_LIBS) demo_INC_DIRS += ../ ../tbox/tbox/src ../tbox/inc/$(PLAT) ../luajit/luajit/src ../sv/sv/include demo_LIB_DIRS += ../xmake ../tbox ../luajit ../sv ../lcurses demo_CXFLAGS += -D__tb_prefix__=\"xmake\" diff --git a/core/src/tbox/makefile b/core/src/tbox/makefile index ac392519d..0cb17660b 100644 --- a/core/src/tbox/makefile +++ b/core/src/tbox/makefile @@ -265,6 +265,19 @@ tbox_C_FILES += \ tbox/src/tbox/charset/ucs4 \ tbox/src/tbox/charset/iso8859 +ifeq ($(PLAT),mingw) +tbox_C_FILES += \ + tbox/src/tbox/platform/windows/windows \ + tbox/src/tbox/platform/windows/iocp_object \ + tbox/src/tbox/platform/windows/socket_pool \ + tbox/src/tbox/platform/windows/interface/ws2_32 \ + tbox/src/tbox/platform/windows/interface/shell32 \ + tbox/src/tbox/platform/windows/interface/mswsock \ + tbox/src/tbox/platform/windows/interface/kernel32 \ + tbox/src/tbox/platform/windows/interface/iphlpapi \ + tbox/src/tbox/platform/windows/interface/interface +endif + # includes tbox_INC_DIRS += \ tbox/src \ diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox index eee53fcd0..1c2fb0e4b 160000 --- a/core/src/tbox/tbox +++ b/core/src/tbox/tbox @@ -1 +1 @@ -Subproject commit eee53fcd0a8886ff381e9f3a2d7240b726a04bd4 +Subproject commit 1c2fb0e4b972d5571ed3c6246e84ff168d644004 diff --git a/core/src/xmake/makefile b/core/src/xmake/makefile index 37016d54d..26915fa39 100644 --- a/core/src/xmake/makefile +++ b/core/src/xmake/makefile @@ -112,7 +112,13 @@ xmake_C_FILES += \ readline/history_list \ readline/add_history \ readline/clear_history - + +ifeq ($(PLAT),mingw) +xmake_C_FILES += \ + winos/ansi \ + winos/logical_drives \ + winos/registry_query +endif # flags xmake_CXFLAGS += -D__tb_prefix__=\"xmake\" -- cgit v1.3.1