File: expat-1.0.2.diff

package info (click to toggle)
libxml-parser-ruby 0.5.16-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 596 kB
  • ctags: 702
  • sloc: ruby: 4,474; ansic: 1,254; xml: 542; makefile: 53
file content (41 lines) | stat: -rw-r--r-- 1,169 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
--- expat/Makefile.org	Wed Nov 18 14:03:22 1998
+++ expat/Makefile	Sun Jan 10 17:31:01 1999
@@ -2,26 +2,31 @@
 # If you know what your system's byte order is, define BYTE_ORDER:
 # use -DBYTE_ORDER=12 for little-endian byte order;
 # use -DBYTE_ORDER=21 for big-endian (network) byte order.
-CFLAGS=-O2 -Ixmltok -Ixmlparse
+CFLAGS=-O2 -Ixmltok -Ixmlparse -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/codepage.o \
   xmlparse/xmlparse.o \
   xmlparse/hashtable.o \
   $(FILEMAP_OBJ)
+XOBJS=xmlwf/xmlwf.o xmlwf/codepage.o
 EXE=
+LIB=.a
+RANLIB=ranlib
 
-all: xmlwf/xmlwf$(EXE)
+all: libxmltok$(LIB) xmlwf/xmlwf$(EXE)
 
-xmlwf/xmlwf$(EXE): $(OBJS)
-	$(CC) $(CFLAGS) -o $@ $(OBJS)
+libxmltok$(LIB): $(OBJS)
+	ar cr libxmltok$(LIB) $(OBJS)
+	$(RANLIB) libxmltok$(LIB)
+
+xmlwf/xmlwf$(EXE): $(XOBJS) $(OBJS)
+	$(CC) $(CFLAGS) -o $@ $(XOBJS) $(OBJS)
 
 clean:
-	rm -f $(OBJS) xmlwf/xmlwf$(EXE)
+	rm -f $(XOBJS) $(OBJS) libxmltok.a xmlwf/xmlwf$(EXE)
 
 xmltok/nametab.h: gennmtab/gennmtab$(EXE)
 	rm -f $@