summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-06-05 17:24:39 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-06-05 17:24:39 +0200
commit451eeb4245cd4d0b5168ad86dbb8b0bb5125d958 (patch)
treed2908ce57e3ede85e31da0320df40952df7e674d /src
parentd7744a6847b2b16d4c89fc66e2cedc02cae927f8 (diff)
downloadwolfbones-451eeb4245cd4d0b5168ad86dbb8b0bb5125d958.tar.gz
wolfbones-451eeb4245cd4d0b5168ad86dbb8b0bb5125d958.tar.bz2
added proper library building, added documentation
Diffstat (limited to 'src')
-rw-r--r--src/GNUmakefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index d74ebab..89eff92 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -53,9 +53,16 @@ GETTEXT_FILES = $(OBJS:.o=.c) $(SERVICE_OBJS:.o=.c)
GETTEXT_TRIGGERS = _ gettext_noop gettext
+STATIC_LIB = libwolf.a
+
+DYNAMIC_LIB = libwolf.so
+DYNAMIC_LIB_MAJOR = 0
+DYNAMIC_LIB_MINOR = 0
+DYNAMIC_LIB_PATCH = 0
+
-include $(TOPDIR)/makefiles/gmake/sub.mk
-local_all: libwolf.a
+local_all:
# snprintf has some quirks, mainly -Wfloat-equal doesn't allow the
# definition of ISNAN, ISINF, the C99 versions use math.h, ieee.h
@@ -64,9 +71,6 @@ local_all: libwolf.a
port/stdio.o : port/stdio.c $(TOPDIR)/include/wolf/port/stdio.h port/snprintf.h port/snprintf.c
$(CC) $(STD99_COMPILE_FLAGS) -c -o $@ $(INCLUDE_DIRS) $(PLATFORM_COMPILE_FLAGS) $<
-libwolf.a: $(OBJS)
- $(AR) cr $@ $?
-
local_clean:
-@rm -f port/*.bak
-@rm -f port/*~
@@ -80,10 +84,7 @@ local_clean:
-@rm -f threads/*.bak
-@rm -f threads/*~
-@rm -f threads/*.d
- -@rm -f libwolf.a
local_distclean:
local_install:
- $(INSTALL) -d -m 755 $(libdir)/wolf
- $(INSTALL) -m 644 libwolf.a $(libdir)/wolf