summaryrefslogtreecommitdiff
path: root/libc/stdio/Makefile
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2001-03-18 22:25:43 +0000
committerManuel Novoa III <mjn3@codepoet.org>2001-03-18 22:25:43 +0000
commit6893f5d8b3fdf6ce65274b90b0b4b0bda9107b17 (patch)
tree7657823aa5e42476e806725464be5e151d67f61a /libc/stdio/Makefile
parent8b53f66ebeb76790148ffb9ea762d6ec37f50a05 (diff)
Test for Config features using features.h.
Diffstat (limited to 'libc/stdio/Makefile')
-rw-r--r--libc/stdio/Makefile17
1 files changed, 2 insertions, 15 deletions
diff --git a/libc/stdio/Makefile b/libc/stdio/Makefile
index 67ef71ff8..26ab9cfcc 100644
--- a/libc/stdio/Makefile
+++ b/libc/stdio/Makefile
@@ -24,19 +24,6 @@ TOPDIR=../
include $(TOPDIR)Rules.mak
LIBC=$(TOPDIR)libc.a
-PRINTF_FLAGS =
-SCANF_FLAGS =
-
-ifeq ($(HAS_FLOATS),true)
- PRINTF_FLAGS += -DWANT_DOUBLE
- SCANF_FLAGS += -DWANT_DOUBLE
-endif
-
-ifeq ($(HAS_LONG_LONG),true)
- PRINTF_FLAGS += -DWANT_LONG_LONG
- SCANF_FLAGS += -DWANT_LONG_LONG
-endif
-
MSRC=stdio.c
MOBJ=_stdio_init.o \
_alloc_stdio_buffer.o _free_stdio_buffer_of_file.o _free_stdio_stream.o \
@@ -71,11 +58,11 @@ $(MOBJ): $(MSRC)
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(MOBJ2): $(MSRC2)
- $(CC) $(CFLAGS) $(PRINTF_FLAGS) -DL_$* $< -c -o $*.o
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(MOBJ3): $(MSRC3)
- $(CC) $(CFLAGS) $(SCANF_FLAGS) -DL_$* $< -c -o $*.o
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
$(COBJS): %.o : %.c