summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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