Makefile 717 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 $(CC)
  6. -@ echo "-------"
  7. -@ echo " "
  8. -@ echo "Compiling vs uClibc: "
  9. -@ echo " "
  10. $(CC) $(CFLAGS) -c $< -o $@.o
  11. $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
  12. $(STRIPTOOL) -x -R .note -R .comment $@
  13. -ldd $@
  14. ls -l $@
  15. -./$@
  16. -@ echo " "
  17. termios_glibc: termios.c Makefile
  18. -@ echo "-------"
  19. -@ echo " "
  20. -@ echo "Compiling vs GNU libc: "
  21. -@ echo " "
  22. $(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
  23. $(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
  24. $(STRIPTOOL) -x -R .note -R .comment $@
  25. -ldd $@
  26. ls -l $@
  27. -./$@
  28. -@ echo " "
  29. clean:
  30. rm -f *.[oa] *~ core $(TARGETS)