Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:= aiccu
  7. PKG_VERSION:= 20070115
  8. PKG_RELEASE:= 7
  9. PKG_MD5SUM:= c9bcc83644ed788e22a7c3f3d4021350
  10. MASTER_SITES:= http://www.sixxs.net/archive/sixxs/aiccu/unix/
  11. DISTFILES:= $(PKG_NAME)_$(PKG_VERSION).tar.gz
  12. WRKDIST= ${WRKDIR}/$(PKG_NAME)
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,AICCU,aiccu,$(PKG_VERSION)-$(PKG_RELEASE)))
  15. TCFLAGS+= -D_REENTRANT -D_GNU_SOURCE -DAICCU_CONSOLE \
  16. -D_LINUX -DHAS_IFHEAD -DAICCU_TYPE=\"linux\"
  17. TLDFLAGS+= -lpthread -lresolv
  18. BUILD_STYLE= auto
  19. MAKE_FLAGS+= CC='${TARGET_CC}' CFLAGS='${TCFLAGS}' LDFLAGS='${TLDFLAGS}'
  20. do-install:
  21. $(INSTALL_DIR) $(IDIR_AICCU)/usr/sbin
  22. $(INSTALL_DIR) $(IDIR_AICCU)/etc/init.d
  23. $(INSTALL_BIN) $(WRKBUILD)/unix-console/aiccu $(IDIR_AICCU)/usr/sbin/
  24. $(INSTALL_BIN) ./files/aiccu.init \
  25. $(IDIR_AICCU)/etc/init.d/aiccu
  26. $(INSTALL_DATA) $(WRKBUILD)/doc/aiccu.conf $(IDIR_AICCU)/etc/aiccu.conf
  27. include ${TOPDIR}/mk/pkg-bottom.mk