Makefile 530 B

123456789101112131415161718192021222324
  1. # Copyright (C) 1996 Robert de Bath <robert@mayday.compulink.co.uk>
  2. # This file is part of the Linux-8086 C library and is distributed
  3. # under the GNU Library General Public License.
  4. LIBC=../libc.a
  5. CC=$(CROSS)gcc
  6. AR=$(CROSS)ar
  7. RANLIB=$(CROSS)ranlib
  8. CCFLAGS= -O2 $(CPUFLAGS) -I../include
  9. OBJ=localtime.o gmtime.o asctime.o ctime.o asc_conv.o tm_conv.o mktime.o \
  10. localtime_r.o gmtime_r.o asctime_r.o ctime_r.o
  11. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  12. all: $(LIBC)
  13. @$(RM) $(OBJ)
  14. $(LIBC): $(LIBC)($(OBJ))
  15. clean:
  16. rm -f *.o libc.a