Makefile 879 B

123456789101112131415161718192021222324252627282930313233343536
  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. TSRC=termios.c
  10. TOBJ=tcsetattr.o tcgetattr.o tcdrain.o tcflow.o tcflush.o tcsendbreak.o \
  11. tcsetpgrp.o tcgetpgrp.o isatty.o \
  12. cfgetospeed.o cfgetispeed.o cfsetospeed.o cfsetispeed.o cfmakeraw.o
  13. # cfgetospeedn.o cfgetispeedn.o cfsetospeedn.o cfsetispeedn.o tcspeed.o
  14. OBJ=$(TOBJ) ttyname.o
  15. # unlike everything else, this does not compile out of the box...
  16. # ttyname.o
  17. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  18. all: $(LIBC)
  19. @$(RM) $(OBJ)
  20. $(LIBC): $(LIBC)($(OBJ))
  21. $(LIBC)($(TOBJ)): $(TSRC)
  22. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  23. $(AR) $(ARFLAGS) $@ $*.o
  24. clean:
  25. rm -f *.o libc.a