diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2002-03-13 23:28:57 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2002-03-13 23:28:57 +0000 |
commit | 29d3e23bab8e53ed8653aafb8af9d2999769f17f (patch) | |
tree | ac0e55fc8f2894d00686e2048df3b0fadf38980d /libc/stdlib/Makefile | |
parent | 347b1fc3b66b3fcffdc9da6f928b0e6caaf9de9d (diff) |
New versions of the various string to int functions which are smaller
than the old ones, even with errno setting turned on now. Also, at
least on i386, we no longer need the long long helper functions for
division and mod from libgcc.a.
Diffstat (limited to 'libc/stdlib/Makefile')
-rw-r--r-- | libc/stdlib/Makefile | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/libc/stdlib/Makefile b/libc/stdlib/Makefile index aaf959bcc..63f2298e9 100644 --- a/libc/stdlib/Makefile +++ b/libc/stdlib/Makefile @@ -27,17 +27,17 @@ include $(TOPDIR)Rules.mak DIRS = $(MALLOC) ALL_SUBDIRS = malloc malloc-930716 malloc-simple -MSRC=strto_l.c -MOBJ=strtol.o strtoul.o strto_l.o atoi.o atol.o +MSRC = stdlib.c +MOBJ = abs.o labs.o atoi.o atol.o strtol.o strtoul.o _stdlib_strto_l.o -MSRC1=strto_ll.c -MOBJ1=strtoll.o strtoull.o strto_ll.o atoll.o +ifeq ($(HAS_LONG_LONG),true) + MOBJ += llabs.o atoll.o strtoll.o strtoull.o _stdlib_strto_ll.o +endif MSRC2=atexit.c MOBJ2=atexit.o on_exit.o __exit_handler.o exit.o - -CSRC = abort.c getenv.c mktemp.c qsort.c realpath.c abs.c bsearch.c \ +CSRC = abort.c getenv.c mktemp.c qsort.c realpath.c bsearch.c \ mkstemp.c putenv.c rand.c random.c setenv.c system.c div.c ldiv.c \ getpt.c ptsname.c grantpt.c unlockpt.c gcvt.c ifeq ($(HAS_FLOATING_POINT),true) @@ -45,11 +45,7 @@ ifeq ($(HAS_FLOATING_POINT),true) endif COBJS=$(patsubst %.c,%.o, $(CSRC)) - OBJS=$(MOBJ) $(MOBJ2) $(COBJS) -ifeq ($(HAS_LONG_LONG),true) - OBJS += $(MOBJ1) -endif all: $(OBJS) $(LIBC) @@ -62,10 +58,6 @@ $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(STRIPTOOL) -x -R .note -R .comment $*.o -$(MOBJ1): $(MSRC1) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - $(STRIPTOOL) -x -R .note -R .comment $*.o - $(MOBJ2): $(MSRC2) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o $(STRIPTOOL) -x -R .note -R .comment $*.o |