summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-25 03:17:00 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-25 03:17:00 +0000
commit130697527bfd32f3a6a6e4dfcc1e80c0cdfa0b37 (patch)
tree5725aece2271bb7b95dea27faff912df97db74fe /libc/misc
parentdd8d43ce314931a24533715977385d68d1827b4d (diff)
merge parallel build support
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/Makefile5
-rw-r--r--libc/misc/assert/Makefile8
-rw-r--r--libc/misc/ctype/Makefile9
-rw-r--r--libc/misc/dirent/Makefile9
-rw-r--r--libc/misc/error/Makefile9
-rw-r--r--libc/misc/file/Makefile9
-rw-r--r--libc/misc/fnmatch/Makefile9
-rw-r--r--libc/misc/ftw/Makefile9
-rw-r--r--libc/misc/glob/Makefile9
-rw-r--r--libc/misc/gnu/Makefile8
-rw-r--r--libc/misc/internals/Makefile9
-rw-r--r--libc/misc/intl/Makefile9
-rw-r--r--libc/misc/locale/Makefile9
-rw-r--r--libc/misc/mntent/Makefile9
-rw-r--r--libc/misc/pthread/Makefile9
-rw-r--r--libc/misc/regex/Makefile9
-rw-r--r--libc/misc/search/Makefile9
-rw-r--r--libc/misc/statfs/Makefile10
-rw-r--r--libc/misc/syslog/Makefile9
-rw-r--r--libc/misc/sysvipc/Makefile10
-rw-r--r--libc/misc/time/Makefile9
-rw-r--r--libc/misc/ttyent/Makefile9
-rw-r--r--libc/misc/utmp/Makefile8
-rw-r--r--libc/misc/wchar/Makefile9
-rw-r--r--libc/misc/wctype/Makefile9
-rw-r--r--libc/misc/wordexp/Makefile9
26 files changed, 101 insertions, 128 deletions
diff --git a/libc/misc/Makefile b/libc/misc/Makefile
index da7c44fba..9d2d74a2b 100644
--- a/libc/misc/Makefile
+++ b/libc/misc/Makefile
@@ -50,9 +50,7 @@ ifeq ($(strip $(UCLIBC_HAS_GLOB)),y)
DIRS += glob
endif
-all: libc.a
-
-libc.a: subdirs
+all: subdirs
tags:
ctags -R
@@ -70,4 +68,3 @@ $(patsubst %, _dirclean_%, $(DIRS)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
.PHONY: dummy
-
diff --git a/libc/misc/assert/Makefile b/libc/misc/assert/Makefile
index cfd469c14..57a2c0154 100644
--- a/libc/misc/assert/Makefile
+++ b/libc/misc/assert/Makefile
@@ -28,12 +28,12 @@ CSRC=__assert.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(LIBC)
+OBJ_LIST=../../obj.misc.assert
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/assert/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
diff --git a/libc/misc/ctype/Makefile b/libc/misc/ctype/Makefile
index 26bb33731..dd7b799bd 100644
--- a/libc/misc/ctype/Makefile
+++ b/libc/misc/ctype/Makefile
@@ -47,12 +47,12 @@ ifeq ($(UCLIBC_HAS_XLOCALE),y)
OBJS += $(MOBJx)
endif
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.ctype
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/ctype/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -66,4 +66,3 @@ $(OBJS): Makefile
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/dirent/Makefile b/libc/misc/dirent/Makefile
index 4ccf3d3e0..1f1032642 100644
--- a/libc/misc/dirent/Makefile
+++ b/libc/misc/dirent/Makefile
@@ -30,12 +30,12 @@ CSRC=alphasort.c closedir.c dirfd.c opendir.c readdir.c rewinddir.c scandir.c \
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.dirent
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/dirent/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -43,4 +43,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/error/Makefile b/libc/misc/error/Makefile
index 880fd58df..1ef71dfa7 100644
--- a/libc/misc/error/Makefile
+++ b/libc/misc/error/Makefile
@@ -23,12 +23,12 @@ CSRC=error.c err.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.error
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/error/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -36,4 +36,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/file/Makefile b/libc/misc/file/Makefile
index fc1a1bfc3..a590f6ab5 100644
--- a/libc/misc/file/Makefile
+++ b/libc/misc/file/Makefile
@@ -32,12 +32,12 @@ endif
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.file
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/file/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -45,4 +45,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/fnmatch/Makefile b/libc/misc/fnmatch/Makefile
index af067bd15..535169550 100644
--- a/libc/misc/fnmatch/Makefile
+++ b/libc/misc/fnmatch/Makefile
@@ -28,12 +28,12 @@ CSRC=fnmatch.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.fnmatch
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/fnmatch/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -41,4 +41,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/ftw/Makefile b/libc/misc/ftw/Makefile
index a9df0c782..a8d52bf32 100644
--- a/libc/misc/ftw/Makefile
+++ b/libc/misc/ftw/Makefile
@@ -27,12 +27,12 @@ MSRC=ftw.c
MOBJ=ftw.o ftw64.o
OBJS=$(MOBJ)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.ftw
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/ftw/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -40,4 +40,3 @@ $(MOBJ): $(MSRC)
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/glob/Makefile b/libc/misc/glob/Makefile
index 31a3b80fe..e753c936a 100644
--- a/libc/misc/glob/Makefile
+++ b/libc/misc/glob/Makefile
@@ -28,12 +28,12 @@ CSRC=glob.c glob64.c glob-hooks.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.glob
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/glob/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -43,4 +43,3 @@ glob64.o: glob64.c glob.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/gnu/Makefile b/libc/misc/gnu/Makefile
index 6e3fd8463..a338b8131 100644
--- a/libc/misc/gnu/Makefile
+++ b/libc/misc/gnu/Makefile
@@ -28,12 +28,12 @@ CSRC=obstack.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(LIBC)
+OBJ_LIST=../../obj.misc.gnu
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/gnu/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile
index 486cf8d55..23816b38d 100644
--- a/libc/misc/internals/Makefile
+++ b/libc/misc/internals/Makefile
@@ -29,12 +29,12 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) interp.o $(LIBC)
+OBJ_LIST=../../obj.misc.internals
-$(LIBC): interp.c ar-target
+all: $(OBJ_LIST) interp.o
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/internals/%, $(OBJS)) > $(OBJ_LIST)
interp.c: Makefile
echo "/* Force shared libraries to know about the correct library loader */" > interp.c
@@ -54,4 +54,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] interp.c *~ core
-
diff --git a/libc/misc/intl/Makefile b/libc/misc/intl/Makefile
index df59c9d52..e0eb06493 100644
--- a/libc/misc/intl/Makefile
+++ b/libc/misc/intl/Makefile
@@ -30,12 +30,12 @@ MOBJ= __uClibc_dgettext.o __uClibc_dcgettext.o \
OBJS=$(MOBJ)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.intl
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/intl/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -47,4 +47,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/locale/Makefile b/libc/misc/locale/Makefile
index 75fa56a78..5ab005538 100644
--- a/libc/misc/locale/Makefile
+++ b/libc/misc/locale/Makefile
@@ -43,13 +43,12 @@ endif
OBJS= $(MOBJ) $(MOBJx) $(DATA)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.locale
+all: $(OBJ_LIST)
-$(LIBC): ar-target
-
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/locale/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
diff --git a/libc/misc/mntent/Makefile b/libc/misc/mntent/Makefile
index 7430dfe00..34a3d6f71 100644
--- a/libc/misc/mntent/Makefile
+++ b/libc/misc/mntent/Makefile
@@ -28,12 +28,12 @@ CSRC=mntent.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.mntent
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/mntent/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -41,4 +41,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/pthread/Makefile b/libc/misc/pthread/Makefile
index d01af1d74..0e432d308 100644
--- a/libc/misc/pthread/Makefile
+++ b/libc/misc/pthread/Makefile
@@ -33,12 +33,12 @@ CSRC=no-tsd.c weaks.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.pthread
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/pthread/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -46,4 +46,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/regex/Makefile b/libc/misc/regex/Makefile
index 5bdda32b4..db215edd8 100644
--- a/libc/misc/regex/Makefile
+++ b/libc/misc/regex/Makefile
@@ -28,12 +28,12 @@ CSRC=regex.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.regex
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/regex/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -41,4 +41,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/search/Makefile b/libc/misc/search/Makefile
index 9d579b964..7e67bb4e5 100644
--- a/libc/misc/search/Makefile
+++ b/libc/misc/search/Makefile
@@ -41,12 +41,12 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS) $(MOBJ1) $(MOBJ2) $(MOBJ3) $(MOBJ4)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.search
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/search/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ1): $(MSRC1)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -70,4 +70,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/statfs/Makefile b/libc/misc/statfs/Makefile
index 55c21b8f6..bbb9dd0bc 100644
--- a/libc/misc/statfs/Makefile
+++ b/libc/misc/statfs/Makefile
@@ -30,13 +30,12 @@ endif
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
+OBJ_LIST=../../obj.misc.statfs
-all: $(OBJS) $(LIBC)
+all: $(OBJ_LIST)
-$(LIBC): ar-target
-
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/statfs/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -44,4 +43,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/syslog/Makefile b/libc/misc/syslog/Makefile
index 8eb583c51..35e755e40 100644
--- a/libc/misc/syslog/Makefile
+++ b/libc/misc/syslog/Makefile
@@ -28,12 +28,12 @@ CSRC=syslog.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.syslog
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/syslog/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -41,4 +41,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/sysvipc/Makefile b/libc/misc/sysvipc/Makefile
index eaf5dd1ec..11aba5758 100644
--- a/libc/misc/sysvipc/Makefile
+++ b/libc/misc/sysvipc/Makefile
@@ -40,13 +40,12 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJS)
+OBJ_LIST=../../obj.misc.sysvipc
-all: $(OBJS) $(LIBC)
+all: $(OBJ_LIST)
-$(LIBC): ar-target subdirs
-
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/sysvipc/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -77,4 +76,3 @@ $(patsubst %, _dirclean_%, $(DIRS)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
.PHONY: dummy
-
diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile
index 2247b2b92..236a160bf 100644
--- a/libc/misc/time/Makefile
+++ b/libc/misc/time/Makefile
@@ -50,12 +50,12 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS) $(MOBJ) $(MOBJx)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.time
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/time/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -71,4 +71,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/ttyent/Makefile b/libc/misc/ttyent/Makefile
index 1b814089e..8aaf8e8e8 100644
--- a/libc/misc/ttyent/Makefile
+++ b/libc/misc/ttyent/Makefile
@@ -23,12 +23,12 @@ CSRC=getttyent.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.ttyent
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/ttyent/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -36,4 +36,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/utmp/Makefile b/libc/misc/utmp/Makefile
index 7a506a45d..c4cab9e9b 100644
--- a/libc/misc/utmp/Makefile
+++ b/libc/misc/utmp/Makefile
@@ -28,12 +28,12 @@ CSRC=utent.c wtent.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(LIBC)
+OBJ_LIST=../../obj.misc.utmp
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/utmp/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
diff --git a/libc/misc/wchar/Makefile b/libc/misc/wchar/Makefile
index b1db37293..62b49f2ee 100644
--- a/libc/misc/wchar/Makefile
+++ b/libc/misc/wchar/Makefile
@@ -45,12 +45,12 @@ endif
OBJS=$(MOBJ1)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.wchar
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/wchar/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ1): $(MSRC1)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -62,4 +62,3 @@ $(MOBJ2): $(MSRC2)
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/wctype/Makefile b/libc/misc/wctype/Makefile
index 291036451..8a842dce7 100644
--- a/libc/misc/wctype/Makefile
+++ b/libc/misc/wctype/Makefile
@@ -41,12 +41,12 @@ ifeq ($(UCLIBC_HAS_XLOCALE),y)
OBJS += $(MOBJx)
endif
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.wctype
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/wctype/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -58,4 +58,3 @@ $(MOBJx): $(MSRC)
clean:
$(RM) *.[oa] *~ core
-
diff --git a/libc/misc/wordexp/Makefile b/libc/misc/wordexp/Makefile
index 5e29f4704..6126be8bf 100644
--- a/libc/misc/wordexp/Makefile
+++ b/libc/misc/wordexp/Makefile
@@ -23,12 +23,12 @@ CSRC=wordexp.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: $(OBJS) $(LIBC)
+OBJ_LIST=../../obj.misc.wordexp
-$(LIBC): ar-target
+all: $(OBJ_LIST)
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, misc/wordexp/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -36,4 +36,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-