|
|
1524fd |
CFLAGS_SHARED_ATTR += -DNTCON_EXPORT
|
|
|
b895c9 |
CFLAGS_STATIC_ATTR += -DNTCON_STATIC
|
|
|
52d60d |
|
|
|
f2b6c1 |
CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
|
|
|
b895c9 |
CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
|
|
|
b895c9 |
CFLAGS_CONFIG += -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
|
|
|
52d60d |
|
|
|
5b49a6 |
LDFLAGS_SHARED += -Wl,--exclude-all-symbols
|
|
|
5b49a6 |
LDFLAGS_SHARED += -nostdlib -lpemagine
|
|
|
52d60d |
|
|
|
b895c9 |
ifeq ($(HOST_BITS),32)
|
|
|
5b49a6 |
LDFLAGS_SHARED += -Wl,--entry -Wl,$(HOST_UNDERSCORE)ntcon_entry_point@12
|
|
|
b895c9 |
else
|
|
|
5b49a6 |
LDFLAGS_SHARED += -Wl,--entry -Wl,$(HOST_UNDERSCORE)ntcon_entry_point
|
|
|
52d60d |
endif
|
|
|
bdbebd |
|
|
|
bdbebd |
clbuild-bat:
|
|
|
bdbebd |
@$(PROJECT_DIR)/project/clbuild.sh \
|
|
|
bdbebd |
--cc=$(CC) \
|
|
|
bdbebd |
--ar=$(AR) \
|
|
|
bdbebd |
--source-dir=$(SOURCE_DIR) \
|
|
|
bdbebd |
--project-dir=$(PROJECT_DIR) \
|
|
|
bdbebd |
--sysroot=$(CFLAGS_SYSROOT) \
|
|
|
bdbebd |
--version-header=ntcon_version.h \
|
|
|
4aca9c |
--version-macro=NTCON_GIT_VERSION \
|
|
|
4aca9c |
--link-target=shared-lib
|