Blame project/extras.mk

ca024c
CFLAGS_SHARED_ATTR 	+= -DDALIST_EXPORT
fa897a
CFLAGS_STATIC_ATTR 	+= -DDALIST_STATIC
fab898
c16b57
ifeq ($(CC_BINFMT),PE)
5cf966
	CFLAGS_CONFIG 	+= -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
fab898
	CFLAGS_CONFIG 	+= -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
fab898
	CFLAGS_CONFIG 	+= -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
fab898
fab898
	LDFLAGS_SHARED 	+= -Wl,--exclude-all-symbols
a6e0dc
	LDFLAGS_SHARED 	+= -nostdlib
fab898
fab898
	ifeq ($(HOST_BITS),32)
a6e0dc
		LDFLAGS_SHARED 	+= -Wl,--entry -Wl,$(HOST_UNDERSCORE)dalist_entry_point@12
fab898
	else
a6e0dc
		LDFLAGS_SHARED 	+= -Wl,--entry -Wl,$(HOST_UNDERSCORE)dalist_entry_point
fab898
	endif
fab898
endif
81d456
81d456
clbuild-bat:
0e817b
	@$(PROJECT_DIR)/project/clbuild.sh          \
0e817b
		--cc=$(CC)                          \
0e817b
		--ar=$(AR)                          \
0e817b
		--source-dir=$(SOURCE_DIR)          \
0e817b
		--project-dir=$(PROJECT_DIR)        \
0e817b
		--sysroot=$(CFLAGS_SYSROOT)         \
0e817b
		--version-header=dalist_version.h   \
89c3ba
		--version-macro=DALIST_GIT_VERSION  \
89c3ba
		--link-target=shared-lib