summaryrefslogtreecommitdiff
path: root/libc/inet
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/inet
parentdd8d43ce314931a24533715977385d68d1827b4d (diff)
merge parallel build support
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/Makefile10
-rw-r--r--libc/inet/rpc/Makefile9
2 files changed, 8 insertions, 11 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile
index 5ca42ddf2..e7018db7c 100644
--- a/libc/inet/Makefile
+++ b/libc/inet/Makefile
@@ -58,13 +58,12 @@ COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJS)
+OBJ_LIST=../obj.inet
-all: $(OBJS) $(LIBC)
+all: $(OBJ_LIST) subdirs
-$(LIBC): ar-target subdirs
-
-ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, inet/%, $(OBJS)) > $(OBJ_LIST)
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
@@ -95,4 +94,3 @@ $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
.PHONY: dummy
-
diff --git a/libc/inet/rpc/Makefile b/libc/inet/rpc/Makefile
index 5b8975cbf..352e9a28b 100644
--- a/libc/inet/rpc/Makefile
+++ b/libc/inet/rpc/Makefile
@@ -50,12 +50,12 @@ endif
COBJS=$(patsubst %.c,%.o, $(CSRC))
OBJS=$(COBJS)
-all: ar-target
+OBJ_LIST=../../obj.inet.rpc
-$(LIBC): $(OBJS)
+all: $(OBJ_LIST)
-ar-target: $(LIBC)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+$(OBJ_LIST): $(OBJS)
+ echo $(patsubst %, inet/rpc/%, $(OBJS)) > $(OBJ_LIST)
$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
@@ -63,4 +63,3 @@ $(COBJS): %.o : %.c
clean:
$(RM) *.[oa] *~ core
-