summaryrefslogtreecommitdiff
path: root/libc/stdio2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio2/Makefile')
-rw-r--r--libc/stdio2/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/stdio2/Makefile b/libc/stdio2/Makefile
index ef96567..f77df3a 100644
--- a/libc/stdio2/Makefile
+++ b/libc/stdio2/Makefile
@@ -2,6 +2,10 @@
TOP=..
include $(TOP)/Make.defs
+ifneq ($(LIB_CPU),i86)
+CFLAGS=$(CCFLAGS) $(LIBDEFS) -DFLOATS
+endif
+
ASRC=stdio.c
AOBJ=_stdio_init.o fputc.o fgetc.o fflush.o fgets.o gets.o fputs.o \
puts.o fread.o fwrite.o fopen.o fclose.o fseek.o rewind.o ftell.o \
@@ -28,6 +32,8 @@ transfer:
clean:
rm -f *.o libc.a
+$(OBJ): stdio.h
+
$(AOBJ): $(ASRC)
$(CC) $(CFLAGS) -c -DL_$* -o $@ $(ASRC)