Makefile 841 B

12345678910111213141516171819202122232425262728293031
  1. TOPDIR=../../
  2. include $(TOPDIR)Rules.mak
  3. all: ldconfig ldd readelf
  4. readsoname.o: readsoname.c readsoname2.c
  5. $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
  6. $(STRIPTOOL) -x -R .note -R .comment $*.o
  7. ldconfig.o: ldconfig.c
  8. $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(DEVEL_PREFIX)\" \
  9. -c $< -o $@
  10. $(STRIPTOOL) -x -R .note -R .comment $*.o
  11. readelf: readelf.c
  12. $(TARGET_CC) $(TARGET_CFLAGS) -static readelf.c -o $@
  13. $(STRIPTOOL) -x -R .note -R .comment $@
  14. ldconfig: ldconfig.o readsoname.o
  15. $(TARGET_CC) $(TARGET_CFLAGS) -static $^ -o $@
  16. $(STRIPTOOL) -x -R .note -R .comment $@
  17. ldd: ldd.c
  18. $(TARGET_CC) $(TARGET_CFLAGS) -DUCLIBC_ROOT_DIR=\"$(DEVEL_PREFIX)\" \
  19. -DUCLIBC_BUILD_DIR=\"$(shell cd $(TOPDIR); pwd)\" \
  20. -static ldd.c -o $@
  21. $(STRIPTOOL) -x -R .note -R .comment $@
  22. clean:
  23. rm -f ldconfig ldd readelf *.o *~ core