Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 40 lines (32 sloc) 0.498 kb
75f71d7 @duncantl moved to git
duncantl authored
1 CC=gcc
2
3 ifeq ($(CC),gcc)
4 # Use with gcc.
5 PIC_FLAG=-fpic
6 PIC_LD_FLAG=-shared
7 else
8 # Use with Solaris compilers.
9 PIC_FLAG=-Kpic
10 PIC_LD_FLAG=-G
11 endif
12
13
14 CFLAGS=-DLIBXML_VERSION="\"1\"" $(PIC_FLAG)
15
16
17 SRC=$(shell ls *.c)
18 SRC=\
19 HTMLparser.c \
20 HTMLtree.c \
21 SAX.c \
22 debugXML.c \
23 encoding.c \
24 entities.c \
25 error.c \
26 nanohttp.c \
27 parser.c \
28 tree.c \
29 valid.c \
30 xmlIO.c \
31 xmlmemory.c \
32 xpath.c
33
34 OBJS=$(SRC:%.c=%.o)
35
36 %.o: %.c
37 $(CC) $(CFLAGS) -c $<
38
39 libxml.so: $(OBJS)
40 $(CC) $(PIC_LD_FLAG) -o $@ $(OBJS)
Something went wrong with that request. Please try again.