source: freewrt/package/rrs/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 was c04ece1, checked in by Thorsten Glaser <tg@…>, 19 years ago

as discussed with wbx@ some 2-3 weeks ago, change
the BR2_ prefix to FWRT_

tested with a standard build (only the squashfs
image since the jffs2 didn't get built)

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

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# $Id: Makefile 2749 2005-12-21 13:35:15Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=rrs
6PKG_VERSION:=1.70
7PKG_RELEASE:=1
8PKG_MD5SUM:=b400d03c0e39e3e78a7327ba78f789f0
9
10PKG_SOURCE_URL:=http://www.cycom.se/uploads/36/19
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,RRS,rrs,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17$(eval $(call PKG_template,RRS_NOSSL,rrs-nossl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 touch $@
21
22$(WRKBUILD)/.built: $(WRKBUILD)/.configured
23ifneq ($(FWRT_PACKAGE_RRS),)
24 $(MAKE) -C $(WRKBUILD) \
25 CC="$(TARGET_CC)" \
26 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
27 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lutil -lssl -lcrypto" \
28 generic
29 ( cd $(WRKBUILD); mv rrs rrs-ssl; )
30 -$(MAKE) -C $(WRKBUILD) \
31 clean
32endif
33ifneq ($(FWRT_PACKAGE_RRS_NOSSL),)
34 $(MAKE) -C $(WRKBUILD) \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -fno-rtti -nostdinc++" \
37 LDFLAGSNOSSL="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -luClibc++ -lc -lm -lutil" \
38 generic-nossl
39 ( cd $(WRKBUILD); mv rrs rrs-nossl; )
40endif
41 touch $@
42
43$(IPKG_RRS):
44 install -d -m0755 $(IDIR_RRS)/usr/bin
45 install -m0755 $(WRKBUILD)/rrs-ssl $(IDIR_RRS)/usr/bin/rrs
46 $(RSTRIP) $(IDIR_RRS)
47 $(IPKG_BUILD) $(IDIR_RRS) $(PACKAGE_DIR)
48
49$(IPKG_RRS_NOSSL):
50 install -d -m0755 $(IDIR_RRS_NOSSL)/usr/bin
51 install -m0755 $(WRKBUILD)/rrs-nossl $(IDIR_RRS_NOSSL)/usr/bin/rrs
52 $(RSTRIP) $(IDIR_RRS_NOSSL)
53 $(IPKG_BUILD) $(IDIR_RRS_NOSSL) $(PACKAGE_DIR)
54
55mostlyclean:
56 -$(MAKE) -C $(WRKBUILD) clean
57 rm -f $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.