diff options
Diffstat (limited to 'libc/inet/Makefile')
-rw-r--r-- | libc/inet/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/inet/Makefile b/libc/inet/Makefile index 519501180..07d84d6eb 100644 --- a/libc/inet/Makefile +++ b/libc/inet/Makefile @@ -33,11 +33,13 @@ MOBJ2=encodeh.o decodeh.o encoded.o decoded.o lengthd.o encodeq.o \ formquery.o dnslookup.o resolveaddress.o resolvemailbox.o \ opennameservers.o closenameservers.o resolvename.o gethostbyname.o\ gethostbyaddr.o +OBJS=$(MOBJ) $(MOBJ2) +all: $(OBJS) $(LIBC) -all: $(MOBJ) $(MOBJ2) $(LIBC) +$(LIBC): ar-target -$(LIBC): $(MOBJ) $(MOBJ2) - $(AR) $(ARFLAGS) $(LIBC) $(MOBJ) $(MOBJ2) +ar-target: $(OBJS) + $(AR) $(ARFLAGS) $(LIBC) $(OBJS) $(MOBJ): $(MSRC) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o @@ -45,6 +47,8 @@ $(MOBJ): $(MSRC) $(MOBJ2): $(MSRC2) $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o +$(OBJS): Makefile + clean: rm -f *.[oa] *~ core |