freewrt_1_0
freewrt_2_0
|
Last change
on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago |
- whitespace cleanup, while here
- move WRKDIR and DISTFILES definition into PKG_template
- define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
- use a sub-directory as WRKDIR, like BSD
- rename PKG_BUILD_DIR into WRKBUILD
- define WRKBUILD relative via WRKDIR
- rename PKG_INSTALL_DIR into WRKINST
- fix a few dependencies
- make use of common cases in the definition of WRKBUILD and
WRKINST, removing many redundant lines
- use WRKDIR instead of BUILD_DIR in places where the latter
was used previously
- while here, remove PKG_CAT stuff
this only affects packages, for now
git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | # $Id: Makefile 3622 2006-04-12 00:34:26Z nico $
|
|---|
| 2 |
|
|---|
| 3 | include $(TOPDIR)/rules.mk
|
|---|
| 4 |
|
|---|
| 5 | PKG_NAME:=sipp
|
|---|
| 6 | PKG_VERSION:=1.0
|
|---|
| 7 | PKG_RELEASE:=1
|
|---|
| 8 | PKG_MD5SUM:=8866e9af0d3bc29e91ebb6eab89a7f1f
|
|---|
| 9 |
|
|---|
| 10 | PKG_SOURCE_URL:=@SF/sipp
|
|---|
| 11 | PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
|
|---|
| 12 |
|
|---|
| 13 | WRKBUILD:=${WRKDIR}/$(PKG_NAME)
|
|---|
| 14 |
|
|---|
| 15 | include $(TOPDIR)/package/rules.mk
|
|---|
| 16 |
|
|---|
| 17 | $(eval $(call PKG_template,SIPP,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|---|
| 18 |
|
|---|
| 19 | $(WRKBUILD)/.configured:
|
|---|
| 20 | touch $@
|
|---|
| 21 |
|
|---|
| 22 | $(WRKBUILD)/.built:
|
|---|
| 23 | $(MAKE) -C $(WRKBUILD) \
|
|---|
| 24 | CC=$(TARGET_CC) \
|
|---|
| 25 | CC_linux=$(TARGET_CC) \
|
|---|
| 26 | CPP_linux=$(TARGET_CC) \
|
|---|
| 27 | CCLINK_linux=$(TARGET_CC) \
|
|---|
| 28 | CFLAGS="$(TARGET_CFLAGS)" \
|
|---|
| 29 | CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
|
|---|
| 30 | LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
|---|
| 31 | LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
|
|---|
| 32 | STAGING_DIR=$(STAGING_DIR) \
|
|---|
| 33 | all
|
|---|
| 34 | touch $@
|
|---|
| 35 |
|
|---|
| 36 | $(IPKG_SIPP):
|
|---|
| 37 | mkdir -p $(IDIR_SIPP)/usr/sbin
|
|---|
| 38 | $(CP) $(WRKBUILD)/$(PKG_NAME) $(IDIR_SIPP)/usr/sbin/
|
|---|
| 39 | $(STRIP) $(IDIR_SIPP)/usr/sbin/*
|
|---|
| 40 | $(IPKG_BUILD) $(IDIR_SIPP) $(PACKAGE_DIR)
|
|---|
| 41 |
|
|---|
| 42 | mostlyclean:
|
|---|
| 43 | $(MAKE) -C $(WRKBUILD) clean
|
|---|
| 44 | rm -f $(WRKBUILD)/.built
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.