convert arpwatch to new packaging style
[openwrt.git] / openwrt / target / utils / Makefile
1 include $(TOPDIR)/rules.mk
2
3 TARGETS := addpattern trx
4 ifeq ($(BR2_TARGET_BELKIN),y)
5 TARGETS += belkin-bin
6 endif
7 ifeq ($(BR2_TARGET_MOTOROLA),y)
8 TARGETS += motorola-bin
9 endif
10
11 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
12
13 prepare: $(UTILS_BUILD_DIR)
14 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
15 mkdir -p $(STAGING_DIR)/bin
16 cp -a $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
17 install: compile
18 package:
19 clean:
20 rm -rf $(UTILS_BUILD_DIR)
21
22 $(UTILS_BUILD_DIR):
23 mkdir -p $(UTILS_BUILD_DIR)
24
25 $(UTILS_BUILD_DIR)/%: src/%.c
26 $(CC) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
27 chmod 755 $@
28
This page took 0.040415 seconds and 5 git commands to generate.