Blame project/extras.mk

59dda1
CFLAGS_SHARED_ATTR 	+= -DNTAPI_EXPORT
7b83a9
CFLAGS_STATIC_ATTR 	+= -DNTAPI_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:
81d5d5
	@$(PROJECT_DIR)/project/clbuild.sh      \
81d5d5
		--cc=$(CC)                      \
81d5d5
		--ar=$(AR)                      \
81d5d5
		--source-dir=$(SOURCE_DIR)      \
81d5d5
		--project-dir=$(PROJECT_DIR)    \
81d5d5
		--sysroot=$(CFLAGS_SYSROOT)