Blame project/extras.mk

ce8fab
CFLAGS_SHARED_ATTR 	+= -DPE_EXPORT
18eb48
CFLAGS_STATIC_ATTR 	+= -DPE_STATIC
18eb48
9c558e
CFLAGS_CONFIG 		+= -DMIDIPIX_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