Makefile 684 B

1234567891011121314151617181920212223242526272829303132333435
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. install: ${TOOLS_DIR}/cpio
  5. SRCS+= \
  6. src/ib_open.c \
  7. src/ib_close.c \
  8. src/ib_read.c \
  9. src/ib_alloc.c \
  10. src/ib_free.c \
  11. src/ib_getlin.c \
  12. src/sfile.c \
  13. src/gmatch.c \
  14. src/sigset.c \
  15. src/memalign.c
  16. SRCS+= \
  17. src/version.c \
  18. src/blast.c \
  19. src/crc32.c \
  20. src/expand.c \
  21. src/explode.c \
  22. src/flags.c \
  23. src/inflate.c \
  24. src/unshrink.c \
  25. src/nonpax.c \
  26. src/cpio.c
  27. ${TOOLS_DIR}/cpio: ${SRCS}
  28. ${CC_FOR_BUILD} ${FLAGS_FOR_BUILD} -D_GNU_SOURCE -Isrc -o $@ $^
  29. include $(TOPDIR)/mk/tools.mk