projects
/
openwrt
/
svn-archive
/
archive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[packages] ezxml: clean patch headers and new ezxml_cut patch
[openwrt/svn-archive/archive.git]
/
libs
/
ezxml
/
patches
/
101-build_shared.patch
1
--- a/GNUmakefile
2
+++ b/GNUmakefile
3
@@ -28,6 +28,7 @@ RM = rm -f
4
DEBUG_CFLAGS = -O0 -g
5
OBJS = ezxml.o
6
LIB = libezxml.a
7
+DYN = libezxml.so
8
TEST = ezxmltest
9
ifdef NOMMAP
10
CFLAGS += -D EZXML_NOMMAP
11
@@ -36,11 +37,14 @@ ifdef DEBUG
12
CFLAGS += $(DEBUG_CFLAGS)
13
endif
14
15
-all: $(LIB)
16
+all: $(LIB) $(DYN)
17
18
$(LIB): $(OBJS)
19
$(AR) rcs $(LIB) $(OBJS)
20
21
+$(DYN): $(OBJS)
22
+ $(CC) -shared -o $(DYN) $(OBJS)
23
+
24
nommap: CFLAGS += -D EZXML_NOMMAP
25
nommap: all
26