2005-03-06 05:34:52 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
TARGETS:=sstrip
|
|
|
|
UTILS_BUILD_DIR:=$(TOOL_BUILD_DIR)/utils
|
|
|
|
|
2005-04-07 00:39:12 +03:00
|
|
|
OS:=$(shell uname)
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
CFLAGS += -I./include
|
|
|
|
endif
|
|
|
|
|
2005-03-06 05:34:52 +02:00
|
|
|
prepare: $(UTILS_BUILD_DIR)
|
|
|
|
compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
|
|
|
|
install: compile
|
|
|
|
mkdir -p $(STAGING_DIR)/bin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
|
2005-03-06 05:34:52 +02:00
|
|
|
package:
|
2006-06-01 02:29:05 +03:00
|
|
|
clean: FORCE
|
2005-03-06 05:34:52 +02:00
|
|
|
rm -rf $(UTILS_BUILD_DIR)
|
|
|
|
|
|
|
|
$(UTILS_BUILD_DIR):
|
|
|
|
mkdir -p $(UTILS_BUILD_DIR)
|
|
|
|
|
|
|
|
$(UTILS_BUILD_DIR)/%: src/%.c
|
2005-04-07 00:39:12 +03:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
|
2005-03-06 05:34:52 +02:00
|
|
|
chmod 755 $@
|
|
|
|
|