File: expat-19990728.diff

package info (click to toggle)
libxml-parser-ruby 0.6.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 676 kB
  • ctags: 800
  • sloc: ruby: 5,723; ansic: 1,734; xml: 574; makefile: 152
file content (55 lines) | stat: -rw-r--r-- 1,479 bytes parent folder | download | duplicates (2)
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
--- expat/Makefile.org	Sat Jun 26 18:44:20 1999
+++ expat/Makefile	Mon Jun 28 13:26:02 1999
@@ -5,27 +5,45 @@
 # -DXML_NS adds support for checking of lexical aspects of XML namespaces spec
 # -DXML_MIN_SIZE makes a smaller but slower parser
 # -DXML_DTD adds full support for parsing DTDs
-CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD
+CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD -fpic
 # Use one of the next two lines; unixfilemap is better if it works.
 FILEMAP_OBJ=xmlwf/unixfilemap.o
 #FILEMAP_OBJ=xmlwf/readfilemap.o
 OBJS=xmltok/xmltok.o \
   xmltok/xmlrole.o \
-  xmlwf/xmlwf.o \
-  xmlwf/xmlfile.o \
   xmlwf/codepage.o \
   xmlparse/xmlparse.o \
   xmlparse/hashtable.o \
   $(FILEMAP_OBJ)
+XOBJS=xmlwf/xmlwf.o \
+  xmlwf/xmlfile.o \
+  xmlwf/codepage.o
 EXE=
+LIB=.a
+AR=ar
+AROPTS=cr
+RANLIB=ranlib
+SHLIB=.so
+SHLD=gcc
+SHLDOPTS=-shared -o
+
+
+all: libxmltok$(LIB) xmlwf/xmlwf$(EXE)
+shared: libexpat$(SHLIB)
+
+libxmltok$(LIB): $(OBJS)
+	$(AR) $(AROPTS) libxmltok$(LIB) $(OBJS)
+	$(RANLIB) libxmltok$(LIB)
 
-all: xmlwf/xmlwf$(EXE)
+libexpat$(SHLIB): $(OBJS)
+	$(SHLD) $(SHLDOPTS) libexpat$(SHLIB) $(OBJS)
 
-xmlwf/xmlwf$(EXE): $(OBJS)
-	$(CC) $(CFLAGS) -o $@ $(OBJS)
+xmlwf/xmlwf$(EXE): $(XOBJS) libxmltok$(LIB)
+	$(CC) $(CFLAGS) -o $@ $(XOBJS) -L. -lxmltok
 
 clean:
-	rm -f $(OBJS) xmlwf/xmlwf$(EXE)
+	rm -f $(XOBJS) $(OBJS) xmlwf/xmlwf$(EXE) libxmltok$(LIB) \
+              libxmltok$(SHLIB)
 
 xmltok/nametab.h: gennmtab/gennmtab$(EXE)
 	rm -f $@