Makefile 778 B

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