Makefile 653 B

123456789101112131415161718192021222324252627282930313233
  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. SRCS+= \
  5. src/ib_open.c \
  6. src/ib_close.c \
  7. src/ib_read.c \
  8. src/ib_alloc.c \
  9. src/ib_free.c \
  10. src/ib_getlin.c \
  11. src/sfile.c \
  12. src/gmatch.c
  13. SRCS+= \
  14. src/version.c \
  15. src/blast.c \
  16. src/crc32.c \
  17. src/expand.c \
  18. src/explode.c \
  19. src/flags.c \
  20. src/inflate.c \
  21. src/unshrink.c \
  22. src/nonpax.c \
  23. src/cpio.c
  24. ${STAGING_TOOLS}/bin/cpio: ${SRCS}
  25. ${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^
  26. install: ${STAGING_TOOLS}/bin/cpio
  27. include $(TOPDIR)/mk/tools.mk