diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-12 16:12:36 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-12 16:12:36 +0000 |
commit | 3a7ac9c7a7b4d6181d3cd70a9cb85d93a1938238 (patch) | |
tree | f87aedb508cd30ff8d50b75dbe832d34ac5dad85 /libc/misc/locale/Makefile | |
parent | b0c8130cec05f40ce926058d18fbc520b1a0e856 (diff) |
Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
Diffstat (limited to 'libc/misc/locale/Makefile')
-rw-r--r-- | libc/misc/locale/Makefile | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/libc/misc/locale/Makefile b/libc/misc/locale/Makefile index 5ab005538..7b8b35ac3 100644 --- a/libc/misc/locale/Makefile +++ b/libc/misc/locale/Makefile @@ -24,9 +24,9 @@ TOPDIR=../../../ include $(TOPDIR)Rules.mak -MSRC= locale.c -MOBJ= setlocale.o localeconv.o _locale_init.o nl_langinfo.o -MOBJx= +MSRC := locale.c +MOBJ = setlocale.o localeconv.o _locale_init.o nl_langinfo.o +MOBJx = ifeq ($(UCLIBC_HAS_LOCALE),y) MOBJ += newlocale.o __locale_mbrtowc_l.o @@ -41,31 +41,27 @@ ifeq ($(UCLIBC_HAS_LOCALE),y) DATA = locale_data.o endif -OBJS= $(MOBJ) $(MOBJx) $(DATA) +OBJS := $(MOBJ) $(MOBJx) $(DATA) -OBJ_LIST=../../obj.misc.locale +OBJ_LIST := ../../obj.misc.locale all: $(OBJ_LIST) $(OBJ_LIST): $(OBJS) - echo $(patsubst %, misc/locale/%, $(OBJS)) > $(OBJ_LIST) + $(STRIPTOOL) -x -R .note -R .comment $^ + echo $(patsubst %, misc/locale/%, $^) > $@ $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o - $(STRIPTOOL) -x -R .note -R .comment $*.o $(MOBJx): $(MSRC) $(CC) $(CFLAGS) -DL_$* -D__UCLIBC_DO_XLOCALE $< -c -o $*.o - $(STRIPTOOL) -x -R .note -R .comment $*.o locale_data.o: $(LN) -sf ../../../extra/locale/locale_data.c $(CC) $(CFLAGS) -c -D__WCHAR_ENABLED -I../../../extra/locale locale_data.c -o $@ - $(STRIPTOOL) -x -R .note -R .comment $*.o - -$(OBJS): Makefile clean: - $(RM) *.[oa] *~ core locale_data.c + $(RM) *.o *~ core locale_data.c .PHONY: data |