Makefile 688 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. 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. src/sigset.c \
  14. src/memalign.c
  15. SRCS+= \
  16. src/version.c \
  17. src/blast.c \
  18. src/crc32.c \
  19. src/expand.c \
  20. src/explode.c \
  21. src/flags.c \
  22. src/inflate.c \
  23. src/unshrink.c \
  24. src/nonpax.c \
  25. src/cpio.c
  26. ${TOPDIR}/bin/tools/cpio: ${SRCS}
  27. @${HOSTCC} ${HOSTCFLAGS} -D_GNU_SOURCE -Isrc -o $@ $^
  28. install: ${TOPDIR}/bin/tools/cpio
  29. include $(TOPDIR)/mk/tools.mk