f79ed891e45ae98374fb3a91617f4949755e365c
[openwrt.git] / toolchain / utils / Makefile
1 include $(TOPDIR)/rules.mk
2
3 TARGETS:=sstrip
4 UTILS_BUILD_DIR:=$(TOOL_BUILD_DIR)/utils
5
6 OS:=$(shell uname)
7 ifeq ($(OS),Darwin)
8 CFLAGS += -I./include
9 endif
10
11 source:
12 prepare: $(UTILS_BUILD_DIR)
13 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
14 install: compile
15 mkdir -p $(STAGING_DIR)/bin
16 $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
17 package:
18 clean: FORCE
19 rm -rf $(UTILS_BUILD_DIR)
20
21 $(UTILS_BUILD_DIR):
22 mkdir -p $(UTILS_BUILD_DIR)
23
24 $(UTILS_BUILD_DIR)/%: src/%.c
25 $(CC) $(CFLAGS) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
26 chmod 755 $@
27
This page took 0.040994 seconds and 3 git commands to generate.