root/floppyfw-3.0/makefiles/ucarp.mk

Revision 263, 1.3 KB (checked in by root, 3 years ago)

New kernel version, aka new floppyfw minor release.

Line 
1#############################################################
2#
3# ucarp
4#
5#############################################################
6
7# 1.5.1 is the newest one but it wonÃ't configure
8UCARP_VER=1.5
9UCARP_SOURCE_URL=ftp://ftp.ucarp.org/pub/ucarp/old/
10UCARP_SOURCE=ucarp-$(UCARP_VER).tar.bz2
11UCARP_DIR=$(BUILD_DIR)/ucarp-$(UCARP_VER)
12UCARP_PKG_DIR=$(PACKAGES_DIR)/ucarp
13
14$(DL_DIR)/$(UCARP_SOURCE):
15         $(WGET) -P $(DL_DIR) $(UCARP_SOURCE_URL)$(UCARP_SOURCE)
16
17ucarp-source: $(DL_DIR)/$(UCARP_SOURCE)
18
19$(UCARP_DIR)/.unpacked: $(DL_DIR)/$(UCARP_SOURCE)
20        bzcat $(DL_DIR)/$(UCARP_SOURCE) | \
21                tar $(TAR_VERBOSE) -C $(BUILD_DIR) -xf -
22        touch $(UCARP_DIR)/.unpacked
23
24$(UCARP_DIR)/.configured: $(UCARP_DIR)/.unpacked
25        (cd $(UCARP_DIR); $(RM) -r config.cache; \
26                ./configure --prefix=$(UCARP_PKG_DIR)/usr \
27                CFLAGS="$(TARGET_CFLAGS)" \
28                CC=$(TARGET_CC) \
29        );
30        touch $(UCARP_DIR)/.configured
31
32$(UCARP_DIR)/src/ucarp: $(UCARP_DIR)/.configured
33        $(MAKE) -C $(UCARP_DIR)
34
35$(UCARP_PKG_DIR)/usr/sbin/ucarp: $(UCARP_DIR)/src/ucarp
36        $(MAKE) -C $(UCARP_DIR) install
37        -$(SSTRIP) $(UCARP_PKG_DIR)/usr/sbin/ucarp
38
39$(PACKAGES_DIR)/ucarp.ffw: $(UCARP_PKG_DIR)/usr/sbin/ucarp
40        (cd $(PACKAGES_DIR); sh mkpack ucarp)
41
42ucarp: $(PACKAGES_DIR)/ucarp.ffw
43
44ucarp-clean:
45        -$(RM) $(UCARP_PKG_DIR)/identd
46        $(MAKE) -C $(UCARP_DIR) clean
47
48ucarp-dirclean:
49        -$(RM) -r $(UCARP_DIR)
50        -$(RM) $(UCARP_PKG_DIR)/identd
51
Note: See TracBrowser for help on using the browser.