Makefile 723 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. TESTDIR=../
  2. include $(TESTDIR)/Rules.mak
  3. TARGETS=termios termios_glibc
  4. all: $(TARGETS)
  5. termios: termios.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
  6. -@ echo "-------"
  7. -@ echo " "
  8. -@ echo "Compiling vs uClibc: "
  9. -@ echo " "
  10. $(TESTCC) $(CFLAGS) -c $< -o $@.o
  11. $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
  12. $(STRIPTOOL) -x -R .note -R .comment $@
  13. -ldd $@
  14. ls $(LSFLAGS) $@
  15. -./$@
  16. -@ echo " "
  17. termios_glibc: termios.c Makefile
  18. -@ echo "-------"
  19. -@ echo " "
  20. -@ echo "Compiling vs GNU libc: "
  21. -@ echo " "
  22. $(CC) $(CFLAGS) -c $< -o $@.o
  23. $(CC) $(LDFLAGS) $@.o -o $@
  24. $(STRIPTOOL) -x -R .note -R .comment $@
  25. -ldd $@
  26. ls $(LSFLAGS) $@
  27. -./$@
  28. -@ echo " "
  29. clean:
  30. rm -f *.[oa] *~ core $(TARGETS)