]>
Commit | Line | Data |
---|---|---|
8d6d8020 JK |
1 | diff -dur asterisk-12.0.0.orig/menuselect/Makefile asterisk-12.0.0/menuselect/Makefile |
2 | --- asterisk-12.0.0.orig/menuselect/Makefile 2012-05-09 21:57:43.000000000 +0200 | |
3 | +++ asterisk-12.0.0/menuselect/Makefile 2014-01-08 12:23:16.000000000 +0100 | |
ba762f24 ER |
4 | @@ -23,6 +23,7 @@ |
5 | # Basic set of sources and flags/libraries/includes | |
6 | OBJS:=menuselect.o strcompat.o | |
0f0650bc | 7 | CFLAGS+=-g -D_GNU_SOURCE -Wall |
ba762f24 ER |
8 | +MXML_LIB:=$(shell pkg-config --libs mxml) |
9 | ||
10 | ifeq ($(MENUSELECT_DEBUG),yes) | |
11 | CFLAGS += -DMENUSELECT_DEBUG | |
8d6d8020 JK |
12 | @@ -30,13 +31,13 @@ |
13 | ||
14 | ifdef NCURSES_LIB | |
15 | C_OBJS += menuselect_curses.o | |
16 | - C_LIBS +=$(NCURSES_LIB) | |
17 | + C_LIBS += $(MXML_LIB) $(NCURSES_LIB) | |
18 | C_INCLUDE += $(NCURSES_INCLUDE) | |
19 | ALL_TGTS += cmenuselect | |
20 | else | |
21 | ifdef CURSES_LIB | |
22 | C_OBJS += menuselect_curses.o | |
23 | - C_LIBS +=$(CURSES_LIB) | |
24 | + C_LIBS += $(MXML_LIB) $(CURSES_LIB) | |
25 | C_INCLUDE += $(CURSES_INCLUDE) | |
26 | ALL_TGTS += cmenuselect | |
27 | endif | |
ba762f24 ER |
28 | @@ -44,19 +45,20 @@ |
29 | ||
30 | ifdef GTK2_LIB | |
31 | G_OBJS += menuselect_gtk.o | |
32 | - G_LIBS += $(GTK2_LIB) | |
33 | + G_LIBS += $(MXML_LIB) $(GTK2_LIB) | |
34 | G_INCLUDE += $(GTK2_INCLUDE) | |
35 | ALL_TGTS += gmenuselect | |
36 | endif | |
37 | ||
38 | ifdef NEWT_LIB | |
39 | N_OBJS += menuselect_newt.o | |
40 | - N_LIBS += $(NEWT_LIB) | |
41 | + N_LIBS += $(MXML_LIB) $(NEWT_LIB) | |
42 | N_INCLUDE += $(NEWT_INCLUDE) | |
43 | ALL_TGTS += nmenuselect | |
44 | endif | |
45 | ||
46 | M_OBJS += menuselect_stub.o | |
47 | +M_LIBS += $(MXML_LIB) | |
48 | ALL_TGTS += menuselect | |
49 | ||
50 | all: $(ALL_TGTS) | |
51 | @@ -66,7 +68,7 @@ | |
52 | makeopts autoconfig.h: autoconfig.h.in makeopts.in | |
0f0650bc | 53 | @./configure $(CONFIGURE_SILENT) |
ba762f24 ER |
54 | |
55 | -$(ALL_TGTS): mxml/libmxml.a | |
56 | +$(ALL_TGTS): | |
57 | ||
58 | ifdef C_OBJS | |
59 | menuselect_curses.o: CFLAGS+=$(C_INCLUDE) | |
8d6d8020 JK |
60 | diff -dur asterisk-12.0.0.orig/menuselect/menuselect.c asterisk-12.0.0/menuselect/menuselect.c |
61 | --- asterisk-12.0.0.orig/menuselect/menuselect.c 2011-11-09 23:22:13.000000000 +0100 | |
62 | +++ asterisk-12.0.0/menuselect/menuselect.c 2014-01-08 12:21:41.000000000 +0100 | |
912f02ed | 63 | @@ -32,7 +32,7 @@ |
17686c6e | 64 | #include <getopt.h> |
ba762f24 | 65 | |
912f02ed | 66 | #include "autoconfig.h" |
ba762f24 | 67 | -#include "mxml/mxml.h" |
912f02ed | 68 | +#include "mxml.h" |
ba762f24 ER |
69 | #include "linkedlists.h" |
70 | #include "menuselect.h" | |
71 |