1 #############################################################
5 #############################################################
8 NETCAT_SOURCE
=netcat-
$(NETCAT_VERSION
).
tar.gz
10 NETCAT_SITE
=http
://$(BR2_SOURCEFORGE_MIRROR
).dl.sourceforge.net
/sourceforge
/netcat
11 NETCAT_DIR
:=$(BUILD_DIR
)/netcat-
$(NETCAT_VERSION
)
12 NETCAT_BINARY
:=src
/netcat
13 NETCAT_TARGET_BINARY
:=sbin
/netcat
15 $(DL_DIR
)/$(NETCAT_SOURCE
):
16 $(WGET
) -P
$(DL_DIR
) $(NETCAT_SITE
)/$(NETCAT_SOURCE
)
18 netcat-source
: $(DL_DIR
)/$(NETCAT_SOURCE
)
20 $(NETCAT_DIR
)/.unpacked
: $(DL_DIR
)/$(NETCAT_SOURCE
)
21 $(NETCAT_CAT
) $(DL_DIR
)/$(NETCAT_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 $(NETCAT_DIR
)/.configured
: $(NETCAT_DIR
)/.unpacked
25 (cd
$(NETCAT_DIR
); rm -rf config.cache
; \
26 $(TARGET_CONFIGURE_OPTS
) \
27 $(TARGET_CONFIGURE_ARGS
) \
29 --target
=$(GNU_TARGET_NAME
) \
30 --host
=$(GNU_TARGET_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 $(NETCAT_DIR
)/$(NETCAT_BINARY
): $(NETCAT_DIR
)/.configured
38 $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(NETCAT_DIR
)
40 $(TARGET_DIR
)/$(NETCAT_TARGET_BINARY
): $(NETCAT_DIR
)/$(NETCAT_BINARY
)
41 install -D
$(NETCAT_DIR
)/$(NETCAT_BINARY
) $(TARGET_DIR
)/$(NETCAT_TARGET_BINARY
)
42 $(STRIPCMD
) $(STRIP_STRIP_ALL
) $@
44 netcat
: uclibc
$(TARGET_DIR
)/$(NETCAT_TARGET_BINARY
)
47 rm -f
$(TARGET_DIR
)/$(NETCAT_TARGET_BINARY
)
48 -$(MAKE
) -C
$(NETCAT_DIR
) clean
51 #############################################################
53 # Toplevel Makefile options
55 #############################################################
56 ifeq ($(strip $(BR2_PACKAGE_NETCAT
)),y
)