summaryrefslogtreecommitdiff
path: root/debian/patches/002-Make-Examples-Buildable-standalone.dpatch
blob: a5d381e61b3127dbba5365253fff720113e243db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Author: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
Description: This patch makes the examples build standalone.

--- a/src/examples/dicttest/dicttest.c
+++ b/src/examples/dicttest/dicttest.c
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 #ifdef _WIN32
 #define strcasecmp			_stricmp
--- a/src/examples/dicttest/Makefile
+++ b/src/examples/dicttest/Makefile
@@ -1,7 +1,7 @@
 PROG_NOINST = dicttest${PROG_SUFFIX}
 SRCS = dicttest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
--- a/src/examples/formattertest/formattertest.c
+++ b/src/examples/formattertest/formattertest.c
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int main(int argc, char *argv[])
 {
--- a/src/examples/formattertest/Makefile
+++ b/src/examples/formattertest/Makefile
@@ -1,7 +1,7 @@
 PROG_NOINST = formattertest${PROG_SUFFIX}
 SRCS = formattertest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
--- a/src/examples/listsort/listsort.c
+++ b/src/examples/listsort/listsort.c
@@ -31,7 +31,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 #ifdef _WIN32
 #define strcasecmp			_stricmp
--- a/src/examples/listsort/Makefile
+++ b/src/examples/listsort/Makefile
@@ -1,7 +1,7 @@
 PROG_NOINST = listsort${PROG_SUFFIX}
 SRCS = listsort.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
--- a/src/examples/Makefile
+++ b/src/examples/Makefile
@@ -1,3 +1,3 @@
 SUBDIRS = randomtest listsort formattertest dicttest patriciatest patriciatest2
 
-include ../../buildsys.mk
+include buildsys.mk
--- a/src/examples/randomtest/Makefile
+++ b/src/examples/randomtest/Makefile
@@ -1,7 +1,7 @@
 PROG_NOINST = randomtest${PROG_SUFFIX}
 SRCS = randomtest.c
 
-include ../../../buildsys.mk
+include ../buildsys.mk
 
 CPPFLAGS += -I../../libmowgli
 LIBS += -L../../libmowgli -lmowgli
--- a/src/examples/randomtest/randomtest.c
+++ b/src/examples/randomtest/randomtest.c
@@ -31,7 +31,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  */
-#include <mowgli.h>
+#include <libmowgli/mowgli.h>
 
 int main(int argc, char *argv[])
 {