Makefile 661 B

123456789101112131415161718192021222324252627282930313233
  1. TESTDIR=../
  2. include $(TESTDIR)/Rules.mak
  3. TARGETS=signal signal_glibc
  4. all: $(TARGETS)
  5. signal: signal.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. -./$@
  14. -@ echo " "
  15. signal_glibc: signal.c Makefile
  16. -@ echo "-------"
  17. -@ echo " "
  18. -@ echo "Compiling vs GNU libc: "
  19. -@ echo " "
  20. $(CC) $(CFLAGS) -c $< -o $@.o
  21. $(CC) $(LDFLAGS) $@.o -o $@
  22. $(STRIPTOOL) -x -R .note -R .comment $@
  23. -./$@
  24. -@ echo " "
  25. clean:
  26. rm -f *.[oa] *~ core $(TARGETS)