libui/unix/GNUfiles.mk

58 lines
1.2 KiB
Makefile

# 22 april 2015
CFILES += \
unix/alloc.c \
unix/area.c \
unix/box.c \
unix/button.c \
unix/checkbox.c \
unix/child.c \
unix/combobox.c \
unix/control.c \
unix/datetimepicker.c \
unix/draw.c \
unix/entry.c \
unix/group.c \
unix/label.c \
unix/main.c \
unix/menu.c \
unix/multilineentry.c \
unix/progressbar.c \
unix/radiobuttons.c \
unix/separator.c \
unix/slider.c \
unix/spinbox.c \
unix/stddialogs.c \
unix/tab.c \
unix/text.c \
unix/util.c \
unix/window.c
HFILES += \
unix/uipriv_unix.h
# TODO split into a separate file or put in GNUmakefile.libui somehow?
# flags for GTK+
CFLAGS += \
`pkg-config --cflags gtk+-3.0`
CXXFLAGS += \
`pkg-config --cflags gtk+-3.0`
LDFLAGS += \
`pkg-config --libs gtk+-3.0` -lm
# flags for building a shared library
# OS X does support -shared but it has a preferred name for this so let's use that there instead; hence this is not gcc-global
LDFLAGS += \
-shared
# flags for warning on undefined symbols
# this is not gcc-global because OS X doesn't support these flags
LDFLAGS += \
-Wl,--no-undefined -Wl,--no-allow-shlib-undefined
# flags for setting soname
# this is not gcc-global because OS X uses a different filename format
LDFLAGS += \
-Wl,-soname,$(NAME)$(SUFFIX).$(SOVERSION)