Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= alix-switch
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 4
  7. PKG_DESCR:= daemon listening on button events
  8. PKG_SECTION:= base/misc
  9. PKG_URL:= http://openadk.org/
  10. PKG_SYSTEM_DEPENDS:= pcengines-alix2d2 pcengines-alix2d13
  11. NO_DISTFILES:= 1
  12. include ${ADK_TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,ALIX_SWITCH,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIG_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. do-build:
  18. ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
  19. -o ${WRKBUILD}/alix-switchd ${WRKBUILD}/alix-switchd.c
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_ALIX_SWITCH}/usr/sbin ${IDIR_ALIX_SWITCH}/etc
  22. ${INSTALL_BIN} ${WRKBUILD}/alix-switchd ${IDIR_ALIX_SWITCH}/usr/sbin
  23. ${INSTALL_BIN} ./files/alix-switch ${IDIR_ALIX_SWITCH}/etc
  24. include ${ADK_TOPDIR}/mk/pkg-bottom.mk