summaryrefslogtreecommitdiff
path: root/libc/misc/time
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/time')
-rw-r--r--libc/misc/time/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/libc/misc/time/Makefile b/libc/misc/time/Makefile
index 252a67e09..14ccf5933 100644
--- a/libc/misc/time/Makefile
+++ b/libc/misc/time/Makefile
@@ -24,13 +24,16 @@ TOPDIR=../
include $(TOPDIR)Rules.make
LIBC=$(TOPDIR)libc.a
-OBJ=localtime.o gmtime.o asctime.o ctime.o asc_conv.o tm_conv.o mktime.o \
- localtime_r.o gmtime_r.o asctime_r.o ctime_r.o
+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))
-all: $(OBJ) $(LIBC)
+all: $(COBJS) $(LIBC)
-$(LIBC): $(OBJ)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJ)
+$(LIBC): $(COBJS)
+ $(AR) $(ARFLAGS) $(LIBC) $(COBJS)
+
+$(COBJS): Makefile
clean:
rm -f *.[oa] *~ core