From 451eeb4245cd4d0b5168ad86dbb8b0bb5125d958 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 5 Jun 2010 17:24:39 +0200 Subject: added proper library building, added documentation --- src/GNUmakefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-54-g00ecf