chiark / gitweb /
[PATCH] move the dbus config file to etc/dbus-1/system.d/
[elogind.git] / klibc / klibc / Makefile
index 470a276ded9f022eea2348e1a6ee689f85284f24..5fc481aa8a1554b59f520bcd9e0e5ef61aadc3e2 100644 (file)
@@ -27,6 +27,7 @@ LIBOBJS = vsnprintf.o snprintf.o vsprintf.o sprintf.o \
          brk.o sbrk.o malloc.o realloc.o calloc.o mmap.o \
          memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \
          memmove.o \
+         strcasecmp.o strncasecmp.o strndup.o strerror.o \
          strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o \
          strncat.o strstr.o strncmp.o strncpy.o strrchr.o strspn.o \
          strsep.o strtok.o \
@@ -56,6 +57,12 @@ tests: $(TESTS)
 tests/%.o : tests/%.c
        $(CC) $(CFLAGS) -c -o $@ $<
 
+# This particular file uses a bunch of formats gcc don't know of, in order
+# to test the full range of our vsnprintf() function.  This outputs a bunch
+# of useless warnings unless we tell it not to.
+tests/testvsnp.o : tests/testvsnp.c
+       $(CC) $(CFLAGS) -Wno-format -c -o $@ $<
+
 tests/% : tests/%.o $(LIB) $(CRT0)
        $(LD) $(LDFLAGS) -o $@ $(CRT0) $< $(LIB) $(LIBGCC)
        cp $@ $@.stripped
@@ -130,6 +137,9 @@ spotless: clean
        find . \( -name \*~ -o -name '.*.d' \) -not -type d -print0 | \
                xargs -0rt rm -f
 
+bitsize:
+       @echo $(BITSIZE)
+
 ifneq ($(wildcard $(DIR)/.*.d),)
 include $(wildcard $(DIR)/.*.d)
 endif