Makefile 989 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. PKG_NAME:= alix-switch
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= daemon listening on button events
  8. PKG_SECTION:= base
  9. PKG_URL:= http://www.openadk.org/
  10. PKG_TARGET_DEPENDS:= alix
  11. PKG_DFLT_ALIX_SWITCH:= y
  12. NO_DISTFILES:= 1
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,ALIX_SWITCH,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. do-build:
  19. ${TARGET_CC} -Wall ${TCPPFLAGS} ${TCFLAGS} \
  20. -o ${WRKBUILD}/alix-switchd ${WRKBUILD}/alix-switchd.c
  21. do-install:
  22. ${INSTALL_DIR} ${IDIR_ALIX_SWITCH}/usr/sbin ${IDIR_ALIX_SWITCH}/etc
  23. ${INSTALL_BIN} ${WRKBUILD}/alix-switchd ${IDIR_ALIX_SWITCH}/usr/sbin
  24. ${INSTALL_BIN} ./files/alix-switch ${IDIR_ALIX_SWITCH}/etc
  25. include ${TOPDIR}/mk/pkg-bottom.mk