disable delayed branch optimization for kernel - seems to improve stability on v1...
[openwrt.git] / package / shat / Makefile
1 #############################################################
2 #
3 # shat
4 #
5 #############################################################
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=shat
9 PKG_VERSION:=0.9.3
10 PKG_RELEASE:=1
11 PKG_MD5SUM:=9784cbee03529e6dab5fda683233dc32
12 PKG_SOURCE_URL:=http://world.maxina.de/src/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/src
15 PKG_CAT:=zcat
16 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg
18
19 $(DL_DIR)/$(PKG_SOURCE):
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
21
22 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE)
23 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 touch $(PKG_BUILD_DIR)/.unpacked
25
26 $(PKG_BUILD_DIR)/shatd: $(PKG_BUILD_DIR)/.unpacked
27 $(MAKE) -C $(PKG_BUILD_DIR) \
28 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
29 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DVERSION=\\\"$(PKG_VERSION)\\\" -DDROP_NETBIOS"
30
31 $(PKG_IPK): $(PKG_BUILD_DIR)/shatd
32 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
33 mkdir -p $(PKG_IPK_DIR)/usr/sbin
34 cp $(PKG_BUILD_DIR)/shatd $(PKG_IPK_DIR)/usr/sbin/
35 cp $(PKG_BUILD_DIR)/shatc $(PKG_IPK_DIR)/usr/sbin/
36 $(STRIP) $(PKG_IPK_DIR)/usr/sbin/*
37 mkdir -p $(PACKAGE_DIR)
38 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
39
40 $(IPKG_STATE_DIR)/info/shat.list: $(PKG_IPK)
41 $(IPKG) install $(PKG_IPK)
42
43 source: $(DL_DIR)/$(PKG_SOURCE)
44 prepare: $(PKG_BUILD_DIR)/.unpacked
45 compile: $(PKG_IPK)
46 install: $(IPKG_STATE_DIR)/info/shat.list
47
48 clean:
49 rm -rf $(PKG_BUILD_DIR)
50 rm -f $(PKG_IPK)
This page took 0.038709 seconds and 5 git commands to generate.