libui/unix/GNUfiles.mk

63 lines
1.3 KiB
Makefile
Raw Normal View History

2015-04-22 14:04:55 -05:00
# 22 april 2015
CFILES += \
2015-04-22 16:54:05 -05:00
unix/alloc.c \
unix/area.c \
unix/box.c \
unix/button.c \
unix/checkbox.c \
unix/child.c \
2016-05-15 22:18:11 -05:00
unix/colorbutton.c \
2015-06-14 18:58:00 -05:00
unix/combobox.c \
unix/control.c \
unix/datetimepicker.c \
2016-05-13 20:00:12 -05:00
unix/debug.c \
unix/draw.c \
unix/drawmatrix.c \
unix/drawpath.c \
unix/drawtext.c \
unix/entry.c \
2016-04-14 14:55:04 -05:00
unix/fontbutton.c \
2015-06-14 18:58:00 -05:00
unix/group.c \
unix/label.c \
2015-04-22 16:54:05 -05:00
unix/main.c \
2015-04-23 12:11:36 -05:00
unix/menu.c \
unix/multilineentry.c \
2015-06-14 18:58:00 -05:00
unix/progressbar.c \
unix/radiobuttons.c \
unix/separator.c \
unix/slider.c \
unix/spinbox.c \
2015-06-26 17:45:00 -05:00
unix/stddialogs.c \
unix/tab.c \
unix/text.c \
unix/util.c \
unix/window.c
2015-04-22 14:04:55 -05:00
HFILES += \
unix/draw.h \
2015-04-22 14:04:55 -05:00
unix/uipriv_unix.h
# TODO split into a separate file or put in GNUmakefile.libui somehow?
2015-04-22 14:04:55 -05:00
# 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 -ldl
# 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
2015-04-22 14:04:55 -05:00
# flags for warning on undefined symbols
# this is not gcc-global because OS X doesn't support these flags
2016-01-22 12:08:36 -06:00
# TODO figure out why FreeBSD follows linked libraries here
ifneq ($(shell uname -s),FreeBSD)
LDFLAGS += \
-Wl,--no-undefined -Wl,--no-allow-shlib-undefined
2016-01-22 12:08:36 -06:00
endif