|
|
fa897a |
CFLAGS_SHARED_ATTR += -DDALIST_BUILD
|
|
|
fa897a |
CFLAGS_STATIC_ATTR += -DDALIST_STATIC
|
|
|
fab898 |
|
|
|
fab898 |
ifeq ($(OS),midipix)
|
|
|
fab898 |
HOST_FMT = pe
|
|
|
fab898 |
else ifeq ($(OS),mingw)
|
|
|
fab898 |
HOST_FMT = pe
|
|
|
fab898 |
else
|
|
|
fab898 |
HOST_FMT = unknown
|
|
|
fab898 |
endif
|
|
|
fab898 |
|
|
|
fab898 |
ifeq ($(HOST_FMT),pe)
|
|
|
fab898 |
CFLAGS_CONFIG += -DMIDIPIX_FREESTANDING -ffreestanding -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 += -nostdlib
|
|
|
fab898 |
LDFLAGS_SHARED += -Wl,--out-implib,$(SHARED_IMPLIB)
|
|
|
fab898 |
LDFLAGS_SHARED += -Wl,--exclude-all-symbols
|
|
|
fab898 |
|
|
|
fab898 |
ifeq ($(HOST_BITS),32)
|
|
|
fab898 |
LDFLAGS_SHARED += -Wl,--entry,$(HOST_UNDERSCORE)dalist_entry_point@12
|
|
|
fab898 |
else
|
|
|
fab898 |
LDFLAGS_SHARED += -Wl,--entry,$(HOST_UNDERSCORE)dalist_entry_point
|
|
|
fab898 |
endif
|
|
|
fab898 |
endif
|