diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-11 23:54:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-11 23:54:37 +0000 |
commit | a99617fe8fdb56b3e877558bfd6572ce65ad39de (patch) | |
tree | 26c3182125188cb7681885830ea7e32e179c7565 /libc/inet/Makefile | |
parent | d1c3ee2a075fc4e855e352e5a5cf10371f2e77aa (diff) |
Finish reorganizing things. At least I think I've finished.
Diffstat (limited to 'libc/inet/Makefile')
-rw-r--r-- | libc/inet/Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile index 07d84d6eb..572263eb1 100644 --- a/libc/inet/Makefile +++ b/libc/inet/Makefile @@ -24,6 +24,8 @@ TOPDIR=../ include $(TOPDIR)Rules.make LIBC=$(TOPDIR)libc.a +DIRS = #rpc + MSRC=addr.c MOBJ=inet_aton.o inet_addr.o inet_ntoa.o @@ -34,9 +36,11 @@ MOBJ2=encodeh.o decodeh.o encoded.o decoded.o lengthd.o encodeq.o \ opennameservers.o closenameservers.o resolvename.o gethostbyname.o\ gethostbyaddr.o OBJS=$(MOBJ) $(MOBJ2) + + all: $(OBJS) $(LIBC) -$(LIBC): ar-target +$(LIBC): ar-target subdirs ar-target: $(OBJS) $(AR) $(ARFLAGS) $(LIBC) $(OBJS) @@ -49,6 +53,17 @@ $(MOBJ2): $(MSRC2) $(OBJS): Makefile -clean: - rm -f *.[oa] *~ core +clean: subdirs_clean + rm -f libc.a + +subdirs: $(patsubst %, _dir_%, $(DIRS)) +subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS)) + +$(patsubst %, _dir_%, $(DIRS)) : dummy + $(MAKE) -C $(patsubst _dir_%, %, $@) + +$(patsubst %, _dirclean_%, $(DIRS)) : dummy + $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean + +.PHONY: dummy |