From c132ecc38fe4508e9dbd97ec9ada86d6637d97ae Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 21 Mar 2001 18:13:36 +0000 Subject: Stub out localeconv. Please look over this to check it is correct.... I started trying to read the glibc code -- but that code is far too messy to be read. So I just wrote a silly C app against glibc, set the locale to POSIX, then called localeconv(). I wrote this version of localeconv.c so it returns the same stuff. -Erik --- libc/misc/locale/Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libc/misc/locale/Makefile') diff --git a/libc/misc/locale/Makefile b/libc/misc/locale/Makefile index c4b62a661..a54a0e38a 100644 --- a/libc/misc/locale/Makefile +++ b/libc/misc/locale/Makefile @@ -24,19 +24,19 @@ TOPDIR=../../ include $(TOPDIR)Rules.mak LIBC=$(TOPDIR)libc.a -MSRC=locale.c -MOBJ= setlocale.o +CSRC=locale.c localeconv.c +COBJS=$(patsubst %.c,%.o, $(CSRC)) +OBJS=$(COBJS) -OBJS=$(MOBJ) -all: $(MOBJ) $(LIBC) +all: $(OBJS) $(LIBC) $(LIBC): ar-target ar-target: $(OBJS) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) -$(MOBJ): $(MSRC) - $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o +$(COBJS): %.o : %.c + $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o $(OBJS): Makefile -- cgit v1.2.3