move busybox init scripts from base-files into the busybox package and make them...
[openwrt.git] / target / utils / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 TARGETS := addpattern trx motorola-bin dgfirmware trx2usr
10
11 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
12
13 download:
14 prepare: $(UTILS_BUILD_DIR)
15 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
16 mkdir -p $(STAGING_DIR)/bin
17 $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
18 install: compile
19 package:
20 clean: FORCE
21 rm -rf $(UTILS_BUILD_DIR)
22 for f in $(TARGETS); do \
23 rm -f $(STAGING_DIR)/bin/$$f ; \
24 done
25
26 $(UTILS_BUILD_DIR):
27 mkdir -p $(UTILS_BUILD_DIR)
28
29 $(UTILS_BUILD_DIR)/%: src/%.c
30 $(CC) -O2 -I $(STAGING_DIR)/include-host -include endian.h -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
31 chmod 755 $@
32
This page took 0.039783 seconds and 5 git commands to generate.