Hello folks!
I had Compiled Binary Images for several routers, several times. ( i think the toolchain is up as it schould)
Now i need to Compile a package which is called cntlm.
It is an light weight Authenticator for Microsoft ISA servers.
So here we go:
This is my Makefile located in /home/cyberpunk/build/trunk/package/cntlm
include $(TOPDIR)/rules.mk
PKG_NAME:=cntlm
PKG_RELEASE:=1
PKG_VERSION:=0.35.1
PKG_SOURCES:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://10.8.0.1:81/
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Utilities
TITLE:=A authenticator for Microsoft ISA Server
TITLE:=$(PKG_NAME)
endef
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
CXXFLAGS="$(TARGET_CXXFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
LDFLAGS="$(TARGET_LDFLAGS) $(LDFLAGS)" \
LIBS="$(TARGET_LIBS) -nodefaultlibs -luClibc++ -lm" \
DESTDIR="$(PKG_INSTALL_DIR)"
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) $(PKG_SOURCES)/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS);
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/bin/
endef
$(eval$(callBuildPackage,$(PKG_NAME)))
The http server is there with the file on it. But at first the package isn schown in menuconfig.
Strange:
Package is displayed when i name the Folder /home/cyberpunk/build/trunk/package/helloworld (Makefile lives here) and the PKG_NAME:=helloworld (as i startet through an toturial)
am i stupid?
Does it matter what its named ?
as i noticed the package is only displayed in Menuconfig when i named like this
Ok so far so good. so i named the tar.gz on my httpserver helloworld.tar.gz :]]
Inside the tarball there is a Configure and a make file as i often Compiled packages for my ubuntu laptop.
When i launch :
make package/helloworld/clean V=99
i get:
make[1]: Entering directory `/home/cyberpunk/build/trunk'
make[1]: *** No rule to make target `package/helloworld/clean'. Stop.
make[1]: Leaving directory `/home/cyberpunk/build/trunk'
make: *** [package/helloworld/clean] Fehler 2
whats wrong here ?
Cheers!