summaryrefslogtreecommitdiff
path: root/libc/misc/time/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/time/Makefile')
-rw-r--r--libc/misc/time/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile
index 14ccf5933..e3c2c26d6 100644
--- a/libc/misc/time/Makefile
+++ b/libc/misc/time/Makefile
@@ -27,13 +27,16 @@ LIBC=$(TOPDIR)libc.a
CSRC=localtime.c gmtime.c asctime.c ctime.c asc_conv.c tm_conv.c mktime.c \
localtime_r.c gmtime_r.c asctime_r.c ctime_r.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
+OBJS=$(COBJS)
-all: $(COBJS) $(LIBC)
+all: $(OBJS) $(LIBC)
-$(LIBC): $(COBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(COBJS)
+$(LIBC): ar-target
-$(COBJS): Makefile
+ar-target: $(OBJS)
+ $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
+
+$(OBJS): Makefile
clean:
rm -f *.[oa] *~ core