Makefile 684 B

12345678910111213141516171819202122232425262728293031323334
  1. TESTDIR=../
  2. include $(TESTDIR)/Rules.mak
  3. TARGETS=fork fork_glibc
  4. all: $(TARGETS)
  5. fork: fork.c ../testsuite.h Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(TESTCC)
  6. -@ echo "-------"
  7. -@ echo " "
  8. -@ echo "Compiling vs uClibc: "
  9. -@ echo " "
  10. $(TESTCC) $(TEST_CFLAGS) -c $< -o $@.o
  11. $(TESTCC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
  12. $(STRIPTOOL) -x -R .note -R .comment $@
  13. ./$@
  14. -@ echo " "
  15. fork_glibc: fork.c ../testsuite.h 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)