Makefile 911 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2005 Erik Andersen <andersen@uclibc.org>
  4. include ../Rules.mak
  5. # getrpcent_r_diff
  6. TARGETS = getrpcent getrpcent_glibc getrpcent_diff
  7. all: $(TARGETS)
  8. getrpcent: getrpcent.c Makefile $(TESTDIR)/Rules.mak
  9. -@ echo "-------"
  10. -@ echo " "
  11. -@ echo "Compiling $@ vs uClibc: "
  12. -@ echo " "
  13. $(CC) $(CFLAGS) -c $< -o $@.o
  14. $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
  15. $(STRIPTOOL) -x -R .note -R .comment $@
  16. ./$@ > getrpcent.out
  17. -@ echo " "
  18. getrpcent_glibc: getrpcent.c Makefile $(TESTDIR)/Rules.mak
  19. -@ echo "-------"
  20. -@ echo " "
  21. -@ echo "Compiling $@ vs glibc: "
  22. -@ echo " "
  23. $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
  24. $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
  25. $(STRIPTOOL) -x -R .note -R .comment $@
  26. ./$@ > getrpcent_glibc.out
  27. -@ echo " "
  28. getrpcent_diff: getrpcent getrpcent_glibc
  29. diff -u getrpcent_glibc.out getrpcent.out
  30. clean:
  31. $(RM) *.[oa] *~ core $(TARGETS) *.out