| 1 |
include ../../../../globalmakeflags |
| 2 |
|
| 3 |
MODULE = gtk |
| 4 |
SOBJ = gtk.so |
| 5 |
OBJS = cdebconf_gtk.opic \ |
| 6 |
select_handlers.opic \ |
| 7 |
descriptions.opic \ |
| 8 |
choice_model.opic \ |
| 9 |
progress.opic \ |
| 10 |
go.opic \ |
| 11 |
handlers.opic \ |
| 12 |
ui.opic \ |
| 13 |
align_text_renderer.opic |
| 14 |
|
| 15 |
ifeq ($(TARGET),udeb) |
| 16 |
OBJS += screenshot.opic di.opic |
| 17 |
endif |
| 18 |
|
| 19 |
MODCFLAGS = @GTK_X11_CFLAGS@ |
| 20 |
LIBS = @GTK_X11_LIBS@ |
| 21 |
|
| 22 |
# Allow deprecated now that we can build for GTK+3 |
| 23 |
#MODCFLAGS += -DGTK_DISABLE_DEPRECATED |
| 24 |
#MODCFLAGS += -DGDK_DISABLE_DEPRECATED |
| 25 |
MODCFLAGS += -DGSEAL_ENABLE |
| 26 |
|
| 27 |
# XXX: Does not work because of a path issue, needs to be fixed. |
| 28 |
#MODLDFLAGS += -Wl,--version-script=linker-script |
| 29 |
|
| 30 |
# let the type char be unsigned by default |
| 31 |
MODCFLAGS += -funsigned-char |
| 32 |
# apply strict aliasing rules |
| 33 |
MODCFLAGS += -fstrict-aliasing |
| 34 |
# turn on all common warnings |
| 35 |
MODCFLAGS += -Wall |
| 36 |
# turn on extra warnings |
| 37 |
MODCFLAGS += -W |
| 38 |
# treat warnings as errors |
| 39 |
MODCFLAGS += -Werror |
| 40 |
# (XXX: temporary disabled as we ignore return values from asprintf and system) |
| 41 |
MODCFLAGS += -Wno-error=unused-result |
| 42 |
# (XXX: temporary disabled so we can build GTK+3 with deprecated symbols) |
| 43 |
MODCFLAGS += -Wno-error=deprecated-declarations |
| 44 |
# warn about undefined preprocessor identifiers |
| 45 |
MODCFLAGS += -Wundef |
| 46 |
# warn about casting of pointers to increased alignment requirements |
| 47 |
# (XXX: can't be used due to broken GTK_PROGRESS_BAR) |
| 48 |
#MODCFLAGS += -Wcast-align |
| 49 |
# make string constants const |
| 50 |
MODCFLAGS += -Wwrite-strings |
| 51 |
# warn about comparisons between signed and unsigned values |
| 52 |
MODCFLAGS += -Wsign-compare |
| 53 |
# warn about unused declared stuff |
| 54 |
MODCFLAGS += -Wno-unused-parameter |
| 55 |
# warn about variables which are initialized with themselves |
| 56 |
MODCFLAGS += -Winit-self |
| 57 |
# warn about pointer arithmetic on void* and function pointers |
| 58 |
MODCFLAGS += -Wpointer-arith |
| 59 |
# warn about multiple declarations |
| 60 |
MODCFLAGS += -Wredundant-decls |
| 61 |
# do not warn about zero-length formats. |
| 62 |
MODCFLAGS += -Wno-format-zero-length |
| 63 |
# missing prototypes |
| 64 |
MODCFLAGS += -Wmissing-prototypes |
| 65 |
# warn about functions without format attribute that should have one |
| 66 |
MODCFLAGS += -Wmissing-format-attribute |
| 67 |
|
| 68 |
include ../modules.mak |
| 69 |
|
| 70 |
install:: |
| 71 |
ifneq ($(TARGET),udeb) |
| 72 |
install -m 644 ${srcdir}/src/modules/frontend/gtk/cdebconf_gtk.h $(DESTDIR)${incdir} |
| 73 |
endif |