source: freewrt/package/sipp/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= sipp
10PKG_VERSION:= 1.0
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 8866e9af0d3bc29e91ebb6eab89a7f1f
13
14PKG_SOURCE_URL:= @SF/sipp
15PKG_SOURCE:= $(PKG_NAME).$(PKG_VERSION).tar.gz
16
17WRKSRC= ${WRKDIR}/$(PKG_NAME)
18
19include $(TOPDIR)/mk/package.mk
20
21$(eval $(call PKG_template,SIPP,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 touch $@
25
26$(WRKBUILD)/.built:
27 $(MAKE) -C $(WRKBUILD) \
28 CC=$(TARGET_CC) \
29 CC_linux=$(TARGET_CC) \
30 CPP_linux=$(TARGET_CC) \
31 CCLINK_linux=$(TARGET_CC) \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
34 LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
35 LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
36 STAGING_DIR=$(STAGING_DIR) \
37 all
38 touch $@
39
40$(IPKG_SIPP):
41 mkdir -p $(IDIR_SIPP)/usr/sbin
42 $(CP) $(WRKBUILD)/$(PKG_NAME) $(IDIR_SIPP)/usr/sbin/
43 $(RSTRIP) $(IDIR_SIPP)
44 $(IPKG_BUILD) $(IDIR_SIPP) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.