12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- TOPDIR=../../
- include $(TOPDIR)Rules.mak
- 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 utimes.c adjtime.c \
- strftime.c clock.c times.c difftime.c
- COBJS=$(patsubst %.c,%.o, $(CSRC))
- OBJS=$(COBJS)
- all: $(OBJS) $(LIBC)
- $(LIBC): ar-target
- ar-target: $(OBJS)
- $(AR) $(ARFLAGS) $(LIBC) $(OBJS)
- $(COBJS):
- $(CC) $(CFLAGS) $< -c $*.c -o $*.o
- $(STRIPTOOL) -x -R .note -R .comment $*.o
- clean:
- rm -f *.[oa] *~ core
|