summaryrefslogtreecommitdiff
path: root/libc/inet/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-27 20:44:19 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-27 20:44:19 +0000
commit7ebd0b18cf73522febdce2c0df08f56cb20c331e (patch)
treedd5596afafe269b51e6fb022cbebe259c50bb265 /libc/inet/Makefile
parent34d315e598c3e2dce6fdf7d9cfec25c3c1f95549 (diff)
Add in getprotobyname, getservicebyname, and related junk
Diffstat (limited to 'libc/inet/Makefile')
-rw-r--r--libc/inet/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile
index c1afea35a..e5f11ee51 100644
--- a/libc/inet/Makefile
+++ b/libc/inet/Makefile
@@ -40,7 +40,11 @@ MSRC3=socketcalls.c
MOBJ3= accept.o bind.o connect.o getpeername.o getsockname.o getsockopt.o \
listen.o recv.o recvfrom.o recvmsg.o send.o sendmsg.o sendto.o \
setsockopt.o shutdown.o socket.o socketpair.o
-OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3)
+
+CSRC =getservice.c getproto.c
+COBJS=$(patsubst %.c,%.o, $(CSRC))
+
+OBJS=$(MOBJ) $(MOBJ2) $(MOBJ3) $(COBJS)
all: $(OBJS) $(LIBC)
@@ -62,7 +66,9 @@ $(MOBJ3): $(MSRC3)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(STRIPTOOL) -x -R .note -R .comment $*.o
-$(OBJS): Makefile
+$(COBJS):
+ $(CC) $(CFLAGS) $< -c $*.c -o $*.o
+ $(STRIPTOOL) -x -R .note -R .comment $*.o
clean: subdirs_clean
rm -f *.[oa] *~ core