Blame project/extras.mk

ce8fab
CFLAGS_SHARED_ATTR 	+= -DPE_EXPORT
18eb48
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
670ee5
670ee5
clbuild-bat:
d1f2e0
	@$(PROJECT_DIR)/project/clbuild.sh          \
d1f2e0
		--cc=$(CC)                          \
d1f2e0
		--ar=$(AR)                          \
d1f2e0
		--source-dir=$(SOURCE_DIR)          \
d1f2e0
		--project-dir=$(PROJECT_DIR)        \
d1f2e0
		--sysroot=$(CFLAGS_SYSROOT)         \
d1f2e0
		--version-header=pemagine_version.h \
ff191a
		--version-macro=PEMAGINE_GIT_VERSION\
ff191a
		--link-target=shared-lib