|
|
7b64a6 |
CFLAGS_SHARED_ATTR += -DNTAPI_EXPORT -DPE_IMPORT -DDALIST_IMPORT
|
|
|
7b64a6 |
CFLAGS_STATIC_ATTR += -DNTAPI_STATIC -DPE_STATIC -DDALIST_STATIC
|
|
|
7b83a9 |
|
|
|
826d41 |
CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
|
|
|
7b83a9 |
CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
|
|
|
7b83a9 |
CFLAGS_CONFIG += -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
|
|
|
7b83a9 |
|
|
|
551024 |
LDFLAGS_SHARED += -Wl,--exclude-all-symbols
|
|
|
d40c55 |
LDFLAGS_SHARED += -nostdlib -lpemagine -ldalist
|
|
|
7b83a9 |
|
|
|
7b83a9 |
ifeq ($(HOST_BITS),32)
|
|
|
551024 |
LDFLAGS_SHARED += -Wl,--entry -Wl,$(HOST_UNDERSCORE)__ntapi_entry_point@12
|
|
|
7b83a9 |
else
|
|
|
551024 |
LDFLAGS_SHARED += -Wl,--entry -Wl,$(HOST_UNDERSCORE)__ntapi_entry_point
|
|
|
7b83a9 |
endif
|
|
|
551024 |
|
|
|
551024 |
install-headers-custom: install-headers-default
|
|
|
551024 |
mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits
|
|
|
421827 |
mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt32
|
|
|
421827 |
mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt64
|
|
|
551024 |
|
|
|
551024 |
cp $(API_HEADERS_BITS) \
|
|
|
551024 |
$(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits
|
|
|
551024 |
|
|
|
551024 |
cp $(API_HEADERS_I386) \
|
|
|
421827 |
$(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt32
|
|
|
551024 |
|
|
|
551024 |
cp $(API_HEADERS_X86_64) \
|
|
|
421827 |
$(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt64
|
|
|
81d5d5 |
|
|
|
81d5d5 |
clbuild-bat:
|
|
|
5f5efa |
@$(PROJECT_DIR)/project/clbuild.sh \
|
|
|
5f5efa |
--cc=$(CC) \
|
|
|
5f5efa |
--ar=$(AR) \
|
|
|
5f5efa |
--source-dir=$(SOURCE_DIR) \
|
|
|
5f5efa |
--project-dir=$(PROJECT_DIR) \
|
|
|
5f5efa |
--sysroot=$(CFLAGS_SYSROOT) \
|
|
|
5f5efa |
--version-header=ntapi_version.h \
|
|
|
f975bc |
--version-macro=NTAPI_GIT_VERSION \
|
|
|
f975bc |
--link-target=shared-lib
|