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
551024
			mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/i386
551024
			mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/x86_64
551024
551024
			cp $(API_HEADERS_BITS) \
551024
			   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits
551024
551024
			cp $(API_HEADERS_I386) \
551024
			   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/i386
551024
551024
			cp $(API_HEADERS_X86_64) \
551024
			   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/x86_64