Makefile 893 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. PKG_NAME:= scsi-spin
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= d0c32bfc500e94cc1905d9457a99cdbb
  8. PKG_DESCR:= Utility to spin down scsi disks
  9. PKG_SECTION:= misc
  10. NO_DISTFILES:= 1
  11. include ${TOPDIR}/mk/package.mk
  12. $(eval $(call PKG_template,SCSI_SPIN,scsi-spin,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  13. CONFIG_STYLE:= manual
  14. BUILD_STYLE:= manual
  15. INSTALL_STYLE:= manual
  16. TARGET_CFLAGS+= -Wall
  17. do-build:
  18. ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
  19. -o ${WRKBUILD}/scsi-spin ${WRKBUILD}/scsi-spin.c
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_SCSI_SPIN}/usr/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/scsi-spin ${IDIR_SCSI_SPIN}/usr/sbin/
  23. include ${TOPDIR}/mk/pkg-bottom.mk