diff options
| author | ruki <[email protected]> | 2022-12-24 17:18:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-24 17:18:19 +0800 |
| commit | 984307d5445ddbc65a97dd42e37215737c686a40 (patch) | |
| tree | bf2b6046ec66b9fd48e8527c697bf74cf8b7b766 /core/src | |
| parent | 025b307d3b801fa67d1c087d398289f76ff607dc (diff) | |
remove makefile
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/demo/makefile | 53 | ||||
| -rw-r--r-- | core/src/lua-cjson/makefile | 40 | ||||
| -rw-r--r-- | core/src/lua/makefile | 87 | ||||
| -rw-r--r-- | core/src/luajit/makefile | 142 | ||||
| -rw-r--r-- | core/src/lz4/makefile | 30 | ||||
| -rw-r--r-- | core/src/makefile | 16 | ||||
| -rw-r--r-- | core/src/sv/makefile | 32 | ||||
| -rw-r--r-- | core/src/tbox/makefile | 314 | ||||
| -rw-r--r-- | core/src/xmake/makefile | 218 |
9 files changed, 0 insertions, 932 deletions
diff --git a/core/src/demo/makefile b/core/src/demo/makefile deleted file mode 100644 index 85b745b8c..000000000 --- a/core/src/demo/makefile +++ /dev/null @@ -1,53 +0,0 @@ -include $(PRO_DIR)/prefix.mak - -NAMES = demo -demo_TYPE = BIN -demo_C_FILES += xmake -demo_PKGS-$(BASE) += base -demo_CXFLAGS += -D__tb_prefix__=\"xmake\" - -demo_LIBS += xmake$(DTYPE) -demo_LIB_DIRS += ../xmake - -# tbox -tbox_DTYPE := $(if $(findstring tbox,$(base_LIBNAMES)),,$(DTYPE)) -demo_LIBS += tbox$(tbox_DTYPE) -demo_INC_DIRS += ../ ../tbox/tbox/src ../tbox/inc/$(PLAT) -demo_LIB_DIRS += ../tbox - -# luajit -ifeq ($(RUNTIME),luajit) -luajit_LIBS := $(if $(findstring luajit,$(base_LIBNAMES)),,luajit$(DTYPE)) -demo_LIBS += $(luajit_LIBS) -demo_INC_DIRS += ../luajit/luajit/src -demo_LIB_DIRS += ../luajit -endif - -# lua -ifeq ($(RUNTIME),lua) -lua_LIBS := $(if $(findstring lua,$(base_LIBNAMES)),,lua$(DTYPE)) -demo_LIBS += $(lua_LIBS) -demo_INC_DIRS += ../lua/lua -demo_LIB_DIRS += ../lua -endif - -# sv -sv_DTYPE := $(if $(findstring sv,$(base_LIBNAMES)),,$(DTYPE)) -demo_LIBS += sv$(sv_DTYPE) -demo_INC_DIRS += ../sv/sv/include -demo_LIB_DIRS += ../sv - -# lua-cjson -lua-cjson_LIBS := $(if $(findstring cjson,$(base_LIBNAMES)),,lua-cjson$(DTYPE)) -demo_LIBS += $(lua-cjson_LIBS) -demo_LIB_DIRS += ../lua-cjson - -# lz4 -lz4_DTYPE := $(if $(findstring lz4,$(base_LIBNAMES)),,$(DTYPE)) -demo_LIBS += lz4$(lz4_DTYPE) -demo_LIB_DIRS += ../lz4 - -demo_LIBS += $(BASE_LIBS) - -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/lua-cjson/makefile b/core/src/lua-cjson/makefile deleted file mode 100644 index 4a2c4ffeb..000000000 --- a/core/src/lua-cjson/makefile +++ /dev/null @@ -1,40 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = lua-cjson - -# module type -lua-cjson_TYPE = LIB - -# config -lua-cjson_CONFIG = n - -# core files -lua-cjson_C_FILES += \ - lua-cjson/dtoa \ - lua-cjson/g_fmt \ - lua-cjson/strbuf \ - lua-cjson/lua_cjson - -# cflags -# Use internal strtod() / g_fmt() code for performance and disable multi-thread -lua-cjson_CFLAGS += -DNDEBUG -DUSE_INTERNAL_FPCONV - -# includes -ifeq ($(RUNTIME),luajit) -lua-cjson_INC_DIRS += ../luajit/luajit/src -lua-cjson_CXFLAGS += -DUSE_LUAJIT -endif -ifeq ($(RUNTIME),lua) -lua-cjson_INC_DIRS += ../lua/lua -lua-cjson_CXFLAGS += -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 -endif - -# use given system library? -lua-cjson_C_FILES := $(if $(findstring cjson,$(base_LIBNAMES)),,$(lua-cjson_C_FILES)) -lua-cjson_INC_FILES := $(if $(findstring cjson,$(base_LIBNAMES)),,$(lua-cjson_INC_FILES)) - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/lua/makefile b/core/src/lua/makefile deleted file mode 100644 index 9db0fa518..000000000 --- a/core/src/lua/makefile +++ /dev/null @@ -1,87 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = lua - -# module type -lua_TYPE = LIB - -# config -lua_CONFIG = n - -# core files -lua_C_FILES += \ - lua/lauxlib \ - lua/liolib \ - lua/lopcodes \ - lua/lstate \ - lua/lobject \ - lua/lmathlib \ - lua/loadlib \ - lua/lvm \ - lua/lfunc \ - lua/lstrlib \ - lua/linit \ - lua/lstring \ - lua/lundump \ - lua/lctype \ - lua/ltable \ - lua/ldump \ - lua/loslib \ - lua/lgc \ - lua/lzio \ - lua/ldblib \ - lua/lutf8lib \ - lua/lmem \ - lua/lcorolib \ - lua/lcode \ - lua/ltablib \ - lua/lapi \ - lua/lbaselib \ - lua/ldebug \ - lua/lparser \ - lua/llex \ - lua/ltm \ - lua/ltests \ - lua/ldo - -# is windows? -iswin = -ifeq ($(PLAT),windows) - iswin = yes -endif -ifeq ($(PLAT),msys) - iswin = yes -endif -ifeq ($(PLAT),mingw) - iswin = yes -endif -ifeq ($(PLAT),cygwin) - iswin = yes -endif - -lua_CFLAGS := -std=c99 -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 -ifdef iswin -lua_CFLAGS_PLAT := -DLUA_USE_WINDOWS -endif - -ifeq ($(PLAT),macosx) -lua_CFLAGS += -Wno-error=string-plus-int -lua_CFLAGS_PLAT := -DLUA_USE_MACOSX -endif - -ifeq ($(lua_CFLAGS_PLAT),) -lua_CFLAGS_PLAT := -DLUA_USE_LINUX -endif -lua_CFLAGS += $(lua_CFLAGS_PLAT) - -# use given system library? -lua_C_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_C_FILES)) -lua_ASM_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_ASM_FILES)) -lua_INC_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_INC_FILES)) -lua_OBJ_FILES := $(if $(findstring lua,$(base_LIBNAMES)),,$(lua_OBJ_FILES)) - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/luajit/makefile b/core/src/luajit/makefile deleted file mode 100644 index 9747413c3..000000000 --- a/core/src/luajit/makefile +++ /dev/null @@ -1,142 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = luajit - -# module type -luajit_TYPE = LIB - -# config -luajit_CONFIG = n - -# core files -luajit_C_FILES += \ - luajit/src/lib_aux \ - luajit/src/lib_base \ - luajit/src/lib_bit \ - luajit/src/lib_debug \ - luajit/src/lib_ffi \ - luajit/src/lib_init \ - luajit/src/lib_io \ - luajit/src/lib_jit \ - luajit/src/lib_math \ - luajit/src/lib_os \ - luajit/src/lib_package \ - luajit/src/lib_string \ - luajit/src/lib_table \ - luajit/src/lj_alloc \ - luajit/src/lj_api \ - luajit/src/lj_asm \ - luajit/src/lj_bc \ - luajit/src/lj_bcread \ - luajit/src/lj_bcwrite \ - luajit/src/lj_carith \ - luajit/src/lj_ccall \ - luajit/src/lj_ccallback \ - luajit/src/lj_cconv \ - luajit/src/lj_cdata \ - luajit/src/lj_char \ - luajit/src/lj_clib \ - luajit/src/lj_cparse \ - luajit/src/lj_crecord \ - luajit/src/lj_ctype \ - luajit/src/lj_debug \ - luajit/src/lj_dispatch \ - luajit/src/lj_err \ - luajit/src/lj_ffrecord \ - luajit/src/lj_func \ - luajit/src/lj_gc \ - luajit/src/lj_gdbjit \ - luajit/src/lj_ir \ - luajit/src/lj_lex \ - luajit/src/lj_lib \ - luajit/src/lj_load \ - luajit/src/lj_mcode \ - luajit/src/lj_meta \ - luajit/src/lj_obj \ - luajit/src/lj_opt_dce \ - luajit/src/lj_opt_fold \ - luajit/src/lj_opt_loop \ - luajit/src/lj_opt_mem \ - luajit/src/lj_opt_narrow \ - luajit/src/lj_opt_sink \ - luajit/src/lj_opt_split \ - luajit/src/lj_parse \ - luajit/src/lj_record \ - luajit/src/lj_snap \ - luajit/src/lj_state \ - luajit/src/lj_str \ - luajit/src/lj_strscan \ - luajit/src/lj_tab \ - luajit/src/lj_trace \ - luajit/src/lj_udata \ - luajit/src/lj_vmevent \ - luajit/src/lj_vmmath \ - luajit/src/lj_buf \ - luajit/src/lj_strfmt \ - luajit/src/lj_strfmt_num \ - luajit/src/lj_profile \ - luajit/src/lj_prng - -# is windows? -iswin = -ifeq ($(PLAT),windows) - iswin = yes -endif -ifeq ($(PLAT),msys) - iswin = yes -endif -ifeq ($(PLAT),mingw) - iswin = yes -endif -ifeq ($(PLAT),cygwin) - iswin = yes -endif - -# autogen plat and BUILD_ARCH -GENPLAT := $(PLAT) -GENARCH := $(BUILD_ARCH) - -# asm files -ifdef iswin -ifeq ($(BUILD_ARCH),x86_64) -GENARCH := x64 -endif -ifeq ($(BUILD_ARCH),i386) -GENARCH := x86 -endif -GENPLAT := windows -luajit_OBJ_FILES += \ - luajit/autogen/$(GENPLAT)/$(luajit_JIT)/$(GENARCH)/lj_vm -else -luajit_ASM_FILES += \ - luajit/autogen/$(GENPLAT)/$(luajit_JIT)/$(GENARCH)/lj_vm -endif - -# includes -luajit_INC_DIRS += \ - luajit/autogen/$(GENPLAT)/$(luajit_JIT)/$(GENARCH) - -# disable jit compiler -ifeq ($(luajit_JIT),nojit) -luajit_CXFLAGS += -DLUAJIT_DISABLE_JIT -endif -luajit_CXFLAGS += -Wno-error=unused-function - -# using internal memory management under armv7, gc will cause a crash when free strings in lua_close() -ifeq ($(BUILD_ARCH),arm) -luajit_CXFLAGS += -DLUAJIT_USE_SYSMALLOC -endif - -# fix call math.sin/log crash for fedora/i386/lj_vm.S with `LDFLAGS = -specs=/usr/lib/rpm/redhat/redhat-hardened-ld` in xmake.spec/%set_build_flags -ifndef iswin -ifeq ($(BUILD_ARCH),i386) -luajit_ASFLAGS += -fPIE -luajit_CXFLAGS += -fPIE -endif -endif - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/lz4/makefile b/core/src/lz4/makefile deleted file mode 100644 index d484b0ff1..000000000 --- a/core/src/lz4/makefile +++ /dev/null @@ -1,30 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = lz4 - -# module type -lz4_TYPE = LIB - -# config -lz4_CONFIG = n - -# core files -lz4_C_FILES += \ - lz4/lib/lz4 \ - lz4/lib/lz4frame \ - lz4/lib/lz4hc \ - lz4/lib/xxhash - -lz4_CFLAGS += -DXXH_NAMESPACE=LZ4_ - -# use given system library? -lz4_C_FILES := $(if $(findstring lz4,$(base_LIBNAMES)),,$(lz4_C_FILES)) -lz4_ASM_FILES := $(if $(findstring lz4,$(base_LIBNAMES)),,$(lz4_ASM_FILES)) -lz4_INC_FILES := $(if $(findstring lz4,$(base_LIBNAMES)),,$(lz4_INC_FILES)) -lz4_OBJ_FILES := $(if $(findstring lz4,$(base_LIBNAMES)),,$(lz4_OBJ_FILES)) - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/makefile b/core/src/makefile deleted file mode 100644 index 81dc5cc2f..000000000 --- a/core/src/makefile +++ /dev/null @@ -1,16 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# projects -SUB_PROS += demo -ifeq ($(RUNTIME),luajit) -DEP_PROS += luajit -endif -ifeq ($(RUNTIME),lua) -DEP_PROS += lua -endif -DEP_PROS += sv lua-cjson lz4 tbox xmake - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/sv/makefile b/core/src/sv/makefile deleted file mode 100644 index 9d265d6b0..000000000 --- a/core/src/sv/makefile +++ /dev/null @@ -1,32 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = sv - -# module type -sv_TYPE = LIB - -# config -sv_CONFIG = n - -# core files -sv_C_FILES += \ - sv/src/comp \ - sv/src/id \ - sv/src/num \ - sv/src/range \ - sv/src/semvers \ - sv/src/utils \ - sv/src/version - -# includes -sv_INC_DIRS += sv/include - -# use system tbox library? -sv_C_FILES := $(if $(findstring sv,$(base_LIBNAMES)),,$(sv_C_FILES)) -sv_INC_DIRS := $(if $(findstring sv,$(base_LIBNAMES)),,$(sv_INC_DIRS)) - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/tbox/makefile b/core/src/tbox/makefile deleted file mode 100644 index b03269a78..000000000 --- a/core/src/tbox/makefile +++ /dev/null @@ -1,314 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = tbox - -# module type -tbox_TYPE = LIB - -# config -tbox_CONFIG = n - -# core files -tbox_C_FILES += \ - tbox/src/tbox/tbox \ - tbox/src/tbox/hash/md5 \ - tbox/src/tbox/hash/bkdr \ - tbox/src/tbox/hash/fnv32 \ - tbox/src/tbox/hash/adler32 \ - tbox/src/tbox/math/impl/math \ - tbox/src/tbox/math/random/linear \ - tbox/src/tbox/math/random/random \ - tbox/src/tbox/libc/impl/libc \ - tbox/src/tbox/libc/misc/time/gmmktime \ - tbox/src/tbox/libc/misc/time/gmtime \ - tbox/src/tbox/libc/misc/time/localtime \ - tbox/src/tbox/libc/misc/time/mktime \ - tbox/src/tbox/libc/misc/time/time \ - tbox/src/tbox/libc/stdio/printf \ - tbox/src/tbox/libc/stdio/printf_object \ - tbox/src/tbox/libc/stdio/puts \ - tbox/src/tbox/libc/stdio/snprintf \ - tbox/src/tbox/libc/stdio/sprintf \ - tbox/src/tbox/libc/stdio/swprintf \ - tbox/src/tbox/libc/stdio/vsnprintf \ - tbox/src/tbox/libc/stdio/vswprintf \ - tbox/src/tbox/libc/stdio/wprintf \ - tbox/src/tbox/libc/stdio/wputs \ - tbox/src/tbox/libc/stdlib/mbstowcs \ - tbox/src/tbox/libc/stdlib/random \ - tbox/src/tbox/libc/stdlib/stdlib \ - tbox/src/tbox/libc/stdlib/wcstombs \ - tbox/src/tbox/libc/string/memcmp \ - tbox/src/tbox/libc/string/memcpy \ - tbox/src/tbox/libc/string/memdup \ - tbox/src/tbox/libc/string/memmem \ - tbox/src/tbox/libc/string/memmov \ - tbox/src/tbox/libc/string/memset \ - tbox/src/tbox/libc/string/strcat \ - tbox/src/tbox/libc/string/strchr \ - tbox/src/tbox/libc/string/strnchr \ - tbox/src/tbox/libc/string/strcmp \ - tbox/src/tbox/libc/string/strcpy \ - tbox/src/tbox/libc/string/strdup \ - tbox/src/tbox/libc/string/strichr \ - tbox/src/tbox/libc/string/stricmp \ - tbox/src/tbox/libc/string/strirchr \ - tbox/src/tbox/libc/string/strirstr \ - tbox/src/tbox/libc/string/stristr \ - tbox/src/tbox/libc/string/strlcpy \ - tbox/src/tbox/libc/string/strlen \ - tbox/src/tbox/libc/string/strncat \ - tbox/src/tbox/libc/string/strncmp \ - tbox/src/tbox/libc/string/strncpy \ - tbox/src/tbox/libc/string/strndup \ - tbox/src/tbox/libc/string/strnicmp \ - tbox/src/tbox/libc/string/strnirchr \ - tbox/src/tbox/libc/string/strnirstr \ - tbox/src/tbox/libc/string/strnistr \ - tbox/src/tbox/libc/string/strnlen \ - tbox/src/tbox/libc/string/strnrchr \ - tbox/src/tbox/libc/string/strnrstr \ - tbox/src/tbox/libc/string/strnstr \ - tbox/src/tbox/libc/string/strrchr \ - tbox/src/tbox/libc/string/strrstr \ - tbox/src/tbox/libc/string/strstr \ - tbox/src/tbox/libc/string/wcscat \ - tbox/src/tbox/libc/string/wcschr \ - tbox/src/tbox/libc/string/wcscmp \ - tbox/src/tbox/libc/string/wcscpy \ - tbox/src/tbox/libc/string/wcsdup \ - tbox/src/tbox/libc/string/wcsichr \ - tbox/src/tbox/libc/string/wcsicmp \ - tbox/src/tbox/libc/string/wcsirchr \ - tbox/src/tbox/libc/string/wcsirstr \ - tbox/src/tbox/libc/string/wcsistr \ - tbox/src/tbox/libc/string/wcslcpy \ - tbox/src/tbox/libc/string/wcslen \ - tbox/src/tbox/libc/string/wcsncat \ - tbox/src/tbox/libc/string/wcsncmp \ - tbox/src/tbox/libc/string/wcsncpy \ - tbox/src/tbox/libc/string/wcsndup \ - tbox/src/tbox/libc/string/wcsnicmp \ - tbox/src/tbox/libc/string/wcsnirchr \ - tbox/src/tbox/libc/string/wcsnirstr \ - tbox/src/tbox/libc/string/wcsnlen \ - tbox/src/tbox/libc/string/wcsnrchr \ - tbox/src/tbox/libc/string/wcsnrstr \ - tbox/src/tbox/libc/string/wcsrchr \ - tbox/src/tbox/libc/string/wcsrstr \ - tbox/src/tbox/libc/string/wcsstr \ - tbox/src/tbox/utils/base32 \ - tbox/src/tbox/utils/base64 \ - tbox/src/tbox/utils/bits \ - tbox/src/tbox/utils/dump \ - tbox/src/tbox/utils/lock_profiler \ - tbox/src/tbox/utils/singleton \ - tbox/src/tbox/utils/trace \ - tbox/src/tbox/utils/url \ - tbox/src/tbox/utils/used \ - tbox/src/tbox/prefix/state \ - tbox/src/tbox/memory/allocator \ - tbox/src/tbox/memory/buffer \ - tbox/src/tbox/memory/default_allocator \ - tbox/src/tbox/memory/fixed_pool \ - tbox/src/tbox/memory/impl/memory \ - tbox/src/tbox/memory/impl/native_large_allocator \ - tbox/src/tbox/memory/impl/prefix \ - tbox/src/tbox/memory/impl/static_fixed_pool \ - tbox/src/tbox/memory/impl/static_large_allocator \ - tbox/src/tbox/memory/large_allocator \ - tbox/src/tbox/memory/native_allocator \ - tbox/src/tbox/memory/queue_buffer \ - tbox/src/tbox/memory/small_allocator \ - tbox/src/tbox/memory/static_allocator \ - tbox/src/tbox/memory/static_buffer \ - tbox/src/tbox/memory/string_pool \ - tbox/src/tbox/string/static_string \ - tbox/src/tbox/string/string \ - tbox/src/tbox/stream/filter \ - tbox/src/tbox/stream/impl/filter/cache \ - tbox/src/tbox/stream/impl/filter/chunked \ - tbox/src/tbox/stream/impl/filter/charset \ - tbox/src/tbox/stream/impl/stream/data \ - tbox/src/tbox/stream/impl/stream/file \ - tbox/src/tbox/stream/impl/stream/filter \ - tbox/src/tbox/stream/impl/stream/http \ - tbox/src/tbox/stream/impl/stream/sock \ - tbox/src/tbox/stream/static_stream \ - tbox/src/tbox/stream/stream \ - tbox/src/tbox/stream/transfer \ - tbox/src/tbox/network/cookies \ - tbox/src/tbox/network/dns/cache \ - tbox/src/tbox/network/dns/looker \ - tbox/src/tbox/network/dns/server \ - tbox/src/tbox/network/http \ - tbox/src/tbox/network/hwaddr \ - tbox/src/tbox/network/impl/http/date \ - tbox/src/tbox/network/impl/http/method \ - tbox/src/tbox/network/impl/http/option \ - tbox/src/tbox/network/impl/http/status \ - tbox/src/tbox/network/impl/network \ - tbox/src/tbox/network/unixaddr \ - tbox/src/tbox/network/ipaddr \ - tbox/src/tbox/network/ipv4 \ - tbox/src/tbox/network/ipv6 \ - tbox/src/tbox/network/url \ - tbox/src/tbox/algorithm/binary_find \ - tbox/src/tbox/algorithm/binary_find_if \ - tbox/src/tbox/algorithm/bubble_sort \ - tbox/src/tbox/algorithm/count \ - tbox/src/tbox/algorithm/count_if \ - tbox/src/tbox/algorithm/distance \ - tbox/src/tbox/algorithm/find \ - tbox/src/tbox/algorithm/find_if \ - tbox/src/tbox/algorithm/heap_sort \ - tbox/src/tbox/algorithm/insert_sort \ - tbox/src/tbox/algorithm/predicate \ - tbox/src/tbox/algorithm/quick_sort \ - tbox/src/tbox/algorithm/remove \ - tbox/src/tbox/algorithm/remove_first \ - tbox/src/tbox/algorithm/remove_first_if \ - tbox/src/tbox/algorithm/remove_if \ - tbox/src/tbox/algorithm/rfind \ - tbox/src/tbox/algorithm/rfind_if \ - tbox/src/tbox/algorithm/rwalk \ - tbox/src/tbox/algorithm/sort \ - tbox/src/tbox/algorithm/walk \ - tbox/src/tbox/container/bloom_filter \ - tbox/src/tbox/container/circle_queue \ - tbox/src/tbox/container/element/hash \ - tbox/src/tbox/container/element/long \ - tbox/src/tbox/container/element/mem \ - tbox/src/tbox/container/element/null \ - tbox/src/tbox/container/element/ptr \ - tbox/src/tbox/container/element/size \ - tbox/src/tbox/container/element/str \ - tbox/src/tbox/container/element/true \ - tbox/src/tbox/container/element/uint16 \ - tbox/src/tbox/container/element/uint32 \ - tbox/src/tbox/container/element/uint8 \ - tbox/src/tbox/container/hash_map \ - tbox/src/tbox/container/hash_set \ - tbox/src/tbox/container/heap \ - tbox/src/tbox/container/array_iterator \ - tbox/src/tbox/container/iterator \ - tbox/src/tbox/container/list \ - tbox/src/tbox/container/list_entry \ - tbox/src/tbox/container/priority_queue \ - tbox/src/tbox/container/queue \ - tbox/src/tbox/container/single_list \ - tbox/src/tbox/container/single_list_entry \ - tbox/src/tbox/container/stack \ - tbox/src/tbox/container/vector \ - tbox/src/tbox/libm/impl/libm \ - tbox/src/tbox/libm/exp \ - tbox/src/tbox/libm/ilog2i \ - tbox/src/tbox/libm/isqrti \ - tbox/src/tbox/libm/idivi8 \ - tbox/src/tbox/platform/addrinfo \ - tbox/src/tbox/platform/atomic64 \ - tbox/src/tbox/platform/backtrace \ - tbox/src/tbox/platform/cache_time \ - tbox/src/tbox/platform/directory \ - tbox/src/tbox/platform/dynamic \ - tbox/src/tbox/platform/environment \ - tbox/src/tbox/platform/event \ - tbox/src/tbox/platform/file \ - tbox/src/tbox/platform/filelock \ - tbox/src/tbox/platform/hostname \ - tbox/src/tbox/platform/ifaddrs \ - tbox/src/tbox/platform/ltimer \ - tbox/src/tbox/platform/native_memory \ - tbox/src/tbox/platform/virtual_memory \ - tbox/src/tbox/platform/mutex \ - tbox/src/tbox/platform/page \ - tbox/src/tbox/platform/path \ - tbox/src/tbox/platform/poller \ - tbox/src/tbox/platform/print \ - tbox/src/tbox/platform/stdfile \ - tbox/src/tbox/platform/process \ - tbox/src/tbox/platform/fwatcher \ - tbox/src/tbox/platform/cpu \ - tbox/src/tbox/platform/sched \ - tbox/src/tbox/platform/semaphore \ - tbox/src/tbox/platform/pipe \ - tbox/src/tbox/platform/socket \ - tbox/src/tbox/platform/syserror \ - tbox/src/tbox/platform/thread \ - tbox/src/tbox/platform/thread_local \ - tbox/src/tbox/platform/time \ - tbox/src/tbox/platform/timer \ - tbox/src/tbox/platform/impl/charset \ - tbox/src/tbox/platform/impl/pollerdata \ - tbox/src/tbox/platform/impl/dns \ - tbox/src/tbox/platform/impl/platform \ - tbox/src/tbox/libm/isfin \ - tbox/src/tbox/libm/isfinf \ - tbox/src/tbox/libm/isinf \ - tbox/src/tbox/libm/isinff \ - tbox/src/tbox/libm/isnan \ - tbox/src/tbox/libm/isnanf \ - tbox/src/tbox/libm/pow \ - tbox/src/tbox/libm/cos \ - tbox/src/tbox/libm/cosf \ - tbox/src/tbox/libm/sqrtf \ - tbox/src/tbox/hash/sha \ - tbox/src/tbox/hash/uuid \ - tbox/src/tbox/charset/charset \ - tbox/src/tbox/charset/ascii \ - tbox/src/tbox/charset/gb2312 \ - tbox/src/tbox/charset/utf8 \ - tbox/src/tbox/charset/utf16 \ - tbox/src/tbox/charset/utf32 \ - tbox/src/tbox/charset/ucs2 \ - tbox/src/tbox/charset/ucs4 \ - tbox/src/tbox/charset/iso8859 - -iswin = -ifeq ($(PLAT),windows) - iswin = yes -endif -ifeq ($(PLAT),msys) - iswin = yes -endif -ifeq ($(PLAT),mingw) - iswin = yes -endif -ifeq ($(PLAT),cygwin) - iswin = yes -endif - -ifdef iswin -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/dbghelp \ - 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 -ifeq ($(PLAT),iphoneos) -tbox_M_FILES += \ - tbox/src/tbox/platform/mach/ios/directory -endif - -# includes -tbox_INC_DIRS += \ - tbox/src \ - inc/$(PLAT) - -# use system tbox library? -tbox_C_FILES := $(if $(findstring tbox,$(base_LIBNAMES)),,$(tbox_C_FILES)) -tbox_M_FILES := $(if $(findstring tbox,$(base_LIBNAMES)),,$(tbox_M_FILES)) -tbox_INC_FILES := $(if $(findstring tbox,$(base_LIBNAMES)),,$(tbox_INC_FILES)) - - -# suffix -include $(PRO_DIR)/suffix.mak - diff --git a/core/src/xmake/makefile b/core/src/xmake/makefile deleted file mode 100644 index 627f6a13c..000000000 --- a/core/src/xmake/makefile +++ /dev/null @@ -1,218 +0,0 @@ -# prefix -include $(PRO_DIR)/prefix.mak - -# module name -NAMES = xmake - -# module type -xmake_TYPE = LIB - -# config -xmake_CONFIG = y - -# core files -xmake_C_FILES += \ - xmake \ - engine \ - os/argv \ - os/args \ - os/find \ - os/link \ - os/isdir \ - os/rmdir \ - os/mkdir \ - os/cpdir \ - os/chdir \ - os/mtime \ - os/sleep \ - os/mclock \ - os/curdir \ - os/tmpdir \ - os/isfile \ - os/islink \ - os/touch \ - os/rmfile \ - os/cpfile \ - os/rename \ - os/exists \ - os/setenv \ - os/getenv \ - os/getenvs \ - os/cpuinfo \ - os/meminfo \ - os/readlink \ - os/emptydir \ - os/syserror \ - os/strerror \ - os/filesize \ - os/getwinsize \ - os/uid \ - os/gid \ - os/getpid \ - os/getown \ - io/stdfile \ - io/file_size \ - io/file_close \ - io/file_flush \ - io/file_isatty \ - io/file_open \ - io/file_read \ - io/file_readable \ - io/file_seek \ - io/file_write \ - io/file_rawfd \ - io/filelock_open \ - io/filelock_lock \ - io/filelock_unlock \ - io/filelock_trylock \ - io/filelock_close \ - io/poller \ - io/poller_wait \ - io/poller_insert \ - io/poller_remove \ - io/poller_modify \ - io/poller_spank \ - io/poller_support \ - io/socket_open \ - io/socket_ctrl \ - io/socket_rawfd \ - io/socket_wait \ - io/socket_bind \ - io/socket_listen \ - io/socket_accept \ - io/socket_connect \ - io/socket_send \ - io/socket_sendto \ - io/socket_sendfile \ - io/socket_recv \ - io/socket_recvfrom \ - io/socket_close \ - io/socket_peeraddr \ - io/pipe_open \ - io/pipe_openpair \ - io/pipe_close \ - io/pipe_read \ - io/pipe_write \ - io/pipe_wait \ - io/pipe_connect \ - path/relative \ - path/absolute \ - path/translate \ - path/directory \ - path/is_absolute \ - hash/uuid4 \ - hash/sha \ - hash/md5 \ - hash/xxhash \ - base64/encode \ - base64/decode \ - string/trim \ - string/split \ - string/lastof \ - string/convert \ - string/endswith \ - string/startswith \ - process/open \ - process/openv \ - process/wait \ - process/kill \ - process/close \ - fwatcher/open \ - fwatcher/add \ - fwatcher/remove \ - fwatcher/wait \ - fwatcher/close \ - sandbox/interactive \ - semver/parse \ - semver/compare \ - semver/satisfies \ - semver/select \ - semver/semver \ - curses/curses \ - readline/readline \ - readline/history_list \ - readline/add_history \ - readline/clear_history \ - libc/malloc \ - libc/free \ - libc/memset \ - libc/memcpy \ - libc/memmov \ - libc/dataptr \ - libc/byteof \ - libc/setbyte \ - libc/strndup \ - tty/term_mode \ - lz4/compress \ - lz4/decompress \ - lz4/block_compress \ - lz4/block_decompress \ - lz4/compress_file \ - lz4/compress_stream_open \ - lz4/compress_stream_read \ - lz4/compress_stream_write \ - lz4/compress_stream_close \ - lz4/decompress_file \ - lz4/decompress_stream_open \ - lz4/decompress_stream_read \ - lz4/decompress_stream_write \ - lz4/decompress_stream_close \ - bloom_filter/bloom_filter_open \ - bloom_filter/bloom_filter_close \ - bloom_filter/bloom_filter_clear \ - bloom_filter/bloom_filter_data \ - bloom_filter/bloom_filter_size \ - bloom_filter/bloom_filter_get \ - bloom_filter/bloom_filter_set \ - bloom_filter/bloom_filter_data_set - -iswin = -ifeq ($(PLAT),windows) - iswin = yes -endif -ifeq ($(PLAT),msys) - iswin = yes -endif -ifeq ($(PLAT),mingw) - iswin = yes -endif -ifeq ($(PLAT),cygwin) - iswin = yes -endif - -ifdef iswin -xmake_C_FILES += \ - winos/ansi \ - winos/logical_drives \ - winos/registry_keys \ - winos/registry_values \ - winos/registry_query \ - winos/short_path -endif - -# flags -xmake_CXFLAGS += -D__tb_prefix__=\"xmake\" -xmake_CXFLAGS += $(if $(findstring readline,$(base_LIBNAMES)),-DXM_CONFIG_API_HAVE_READLINE,) -xmake_CXFLAGS += $(if $(findstring curses,$(base_LIBNAMES)),-DXM_CONFIG_API_HAVE_CURSES,) - -# includes -xmake_INC_DIRS += \ - ../tbox/tbox/src \ - ../tbox/inc/$(PLAT) \ - ../sv/sv/include \ - ../lz4/lz4/lib \ - ../xxhash -ifeq ($(RUNTIME),luajit) -xmake_INC_DIRS += ../luajit/luajit/src -xmake_CXFLAGS += -DUSE_LUAJIT -endif -ifeq ($(RUNTIME),lua) -xmake_INC_DIRS += ../lua/lua -xmake_CXFLAGS += -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_3 -endif -xmake_CXFLAGS += -DXM_CONFIG_VERSION_BRANCH="\"$(BRANCH)\"" -xmake_CXFLAGS += -DXM_CONFIG_VERSION_COMMIT="\"$(COMMIT)\"" - -# suffix -include $(PRO_DIR)/suffix.mak - |
