c804b40766
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23053 3c298f89-4303-0410-b956-a3cf2f4a3e73
27 lines
452 B
Diff
27 lines
452 B
Diff
--- a/GNUmakefile
|
|
+++ b/GNUmakefile
|
|
@@ -28,6 +28,7 @@ RM = rm -f
|
|
DEBUG_CFLAGS = -O0 -g
|
|
OBJS = ezxml.o
|
|
LIB = libezxml.a
|
|
+DYN = libezxml.so
|
|
TEST = ezxmltest
|
|
ifdef NOMMAP
|
|
CFLAGS += -D EZXML_NOMMAP
|
|
@@ -36,11 +37,14 @@ ifdef DEBUG
|
|
CFLAGS += $(DEBUG_CFLAGS)
|
|
endif
|
|
|
|
-all: $(LIB)
|
|
+all: $(LIB) $(DYN)
|
|
|
|
$(LIB): $(OBJS)
|
|
$(AR) rcs $(LIB) $(OBJS)
|
|
|
|
+$(DYN): $(OBJS)
|
|
+ $(CC) -shared -o $(DYN) $(OBJS)
|
|
+
|
|
nommap: CFLAGS += -D EZXML_NOMMAP
|
|
nommap: all
|
|
|