blob: efe63f91af942a22dcb6e01fbfb3495b91982208 (
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
|
--- mxml-2.6.orig/Makefile.in 2008-12-06 05:20:38.000000000 +0100
+++ mxml-2.6/Makefile.in 2011-05-10 13:05:50.000000000 +0200
@@ -88,7 +88,7 @@ PUBLIBOBJS = mxml-attr.o mxml-entity.o m
mxml-node.o mxml-search.o mxml-set.o
LIBOBJS = $(PUBLIBOBJS) mxml-private.o mxml-string.o
OBJS = mxmldoc.o testmxml.o $(LIBOBJS)
-TARGETS = $(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
+TARGETS = $(LIBMXML)
#
@@ -133,13 +133,13 @@ clang:
# Install everything...
#
-install: $(TARGETS) install-$(LIBMXML) install-libmxml.a
+install: $(TARGETS) install-$(LIBMXML)
$(INSTALL_DIR) $(BUILDROOT)$(bindir)
- $(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir)
- $(INSTALL_DIR) $(BUILDROOT)$(docdir)
- for file in $(DOCFILES); do \
- $(INSTALL_MAN) $$file $(BUILDROOT)$(docdir); \
- done
+ #$(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir)
+ #$(INSTALL_DIR) $(BUILDROOT)$(docdir)
+ #for file in $(DOCFILES); do \
+ # $(INSTALL_MAN) $$file $(BUILDROOT)$(docdir); \
+ #done
$(INSTALL_DIR) $(BUILDROOT)$(includedir)
$(INSTALL_DATA) mxml.h $(BUILDROOT)$(includedir)
$(INSTALL_DIR) $(BUILDROOT)$(libdir)/pkgconfig
@@ -294,7 +294,7 @@ mxmldoc: $(LIBMXML) mxmldoc.o
$(CC) -L. $(LDFLAGS) -o $@ mxmldoc.o -lmxml $(LIBS)
mxmldoc-static: libmxml.a mxmldoc.o
- $(CC) $(LDFLAGS) -o $@ mxmldoc.o libmxml.a $(LIBS)
+ $(CC_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ mxmldoc.o libmxml.a $(LIBS)
mxmldoc.o: mxml.h
@@ -304,28 +304,7 @@ mxmldoc.o: mxml.h
#
testmxml: libmxml.a testmxml.o
- $(CC) $(LDFLAGS) -o $@ testmxml.o libmxml.a $(LIBS)
- @echo Testing library...
- ./testmxml test.xml >temp1.xml 2>temp1s.xml
- ./testmxml temp1.xml >temp2.xml 2>temp2s.xml
- @if cmp temp1.xml temp2.xml; then \
- echo Stdio file test passed!; \
- $(RM) temp2.xml temp2s.xml; \
- else \
- echo Stdio file test failed!; \
- fi
- @if cmp temp1.xml temp1s.xml; then \
- echo String test passed!; \
- $(RM) temp1.xml temp1s.xml; \
- else \
- echo String test failed!; \
- fi
- @if cmp test.xml test.xmlfd; then \
- echo File descriptor test passed!; \
- $(RM) test.xmlfd; \
- else \
- echo File descriptor test failed!; \
- fi
+ $(CC_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ testmxml.o libmxml.a $(LIBS)
testmxml.o: mxml.h
@@ -336,19 +315,7 @@ testmxml.o: mxml.h
mxml.xml: mxmldoc-static mxml.h $(PUBLIBOBJS:.o=.c)
$(RM) mxml.xml
- ./mxmldoc-static --header doc/reference.heading mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html
- if test "x`uname`" = xDarwin; then \
- ./mxmldoc-static --docset org.minixml.docset \
- --docversion @VERSION@ --feedname minixml.org \
- --feedurl http://www.minixml.org/org.minixml.atom \
- --header doc/docset.header --intro doc/docset.intro \
- --css doc/docset.css --title "Mini-XML API Reference" \
- mxml.xml || exit 1; \
- /Developer/usr/bin/docsetutil package --output org.minixml.xar \
- --atom org.minixml.atom \
- --download-url http://www.minixml.org/org.minixml.xar \
- org.minixml.docset || exit 1; \
- fi
+ #./mxmldoc-static --header doc/reference.heading mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html
valgrind: mxmldoc-static
$(RM) valgrind.xml
|