Blame project/extras.mk

279e96
CFLAGS_SHARED_ATTR 	+= -DPE_EXPORT
279e96
CFLAGS_STATIC_ATTR 	+= -DPE_STATIC
18eb48
b80821
CFLAGS_CONFIG 		+= -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
18eb48
CFLAGS_CONFIG 		+= -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
18eb48
CFLAGS_CONFIG 		+= -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
18eb48
9c558e
LDFLAGS_SHARED 		+= -Wl,--exclude-all-symbols
9c558e
LDFLAGS_SHARED 		+= -nostdlib
18eb48
18eb48
ifeq ($(HOST_BITS),32)
9c558e
	LDFLAGS_SHARED 	+= -Wl,--entry -Wl,$(HOST_UNDERSCORE)pe_entry_point@12
18eb48
else
9c558e
	LDFLAGS_SHARED 	+= -Wl,--entry -Wl,$(HOST_UNDERSCORE)pe_entry_point
18eb48
endif
9c558e
9c558e
install-headers-custom:	install-headers-default
9c558e
			mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits
9c558e
			mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt32
9c558e
			mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt64
9c558e
9c558e
			cp $(API_HEADERS_NT32) \
9c558e
			   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt32
9c558e
9c558e
			cp $(API_HEADERS_NT64) \
9c558e
			   $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)/bits/nt64