2015-12-11 17:28:07 -06:00
|
|
|
# 16 october 2015
|
|
|
|
|
|
|
|
ifndef inlibuibuild
|
|
|
|
$(error Do not run these makefiles directly.)
|
|
|
|
endif
|
|
|
|
|
|
|
|
# for GCC
|
|
|
|
SOVERSION = 0
|
|
|
|
|
|
|
|
include $(OS)/GNUosspecific.mk
|
|
|
|
include common/GNUfiles.mk
|
|
|
|
include $(OS)/GNUfiles.mk
|
|
|
|
|
|
|
|
HFILES += \
|
|
|
|
ui.h \
|
|
|
|
ui_$(OS)$(OSHSUFFIX)
|
|
|
|
|
|
|
|
NAME = libui
|
|
|
|
SUFFIX = $(LIBSUFFIX)
|
|
|
|
|
|
|
|
ifeq ($(TOOLCHAIN),gcc)
|
|
|
|
# make every symbol hidden by default except _UI_EXTERN ones
|
|
|
|
# thanks ebassi in irc.gimp.net/#gtk+
|
|
|
|
CFLAGS += \
|
|
|
|
-D_UI_EXTERN='__attribute__((visibility("default"))) extern' \
|
|
|
|
-fvisibility=hidden
|
|
|
|
CXXFLAGS += \
|
|
|
|
-D_UI_EXTERN='__attribute__((visibility("default"))) extern' \
|
|
|
|
-fvisibility=hidden
|
|
|
|
LDFLAGS += \
|
|
|
|
-fvisibility=hidden
|
|
|
|
else
|
2015-12-11 18:49:14 -06:00
|
|
|
# make every symbol hidden by default except _UI_EXTERN ones
|
|
|
|
# TODO autogenerate a .def file?
|
|
|
|
CFLAGS += \
|
|
|
|
/D "_UI_EXTERN=__declspec(dllexport) extern"
|
|
|
|
CXXFLAGS += \
|
|
|
|
/D "_UI_EXTERN=__declspec(dllexport) extern"
|
2015-12-11 17:28:07 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
include build/GNUbase$(TOOLCHAIN).mk
|
2016-01-01 16:19:14 -06:00
|
|
|
|
|
|
|
# install rule is OS specific
|
2016-01-04 14:52:39 -06:00
|
|
|
# TODO probably better off making it a toolchain-wide rule
|
2016-01-01 16:19:14 -06:00
|
|
|
include $(OS)/GNUinstall.mk
|