source: freewrt/tools/Makefile@ 915015d

freewrt_1_0 freewrt_2_0
Last change on this file since 915015d was 915015d, checked in by Thorsten Glaser <tg@…>, 19 years ago

remove historic raisins

git-svn-id: svn://www.freewrt.org/trunk/freewrt@230 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# $Id$
2
3include $(TOPDIR)/rules.mk
4
5TARGETS:= paxmirabilis sed ipkg-utils brcm-utils lzma
6
7TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
8TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
9
10all: install
11install: check-pax $(TARGETS_INSTALL)
12clean: $(TARGETS_CLEAN)
13
14check-pax:
15 @[ -e ${TOPDIR}/lbin/pax ] || \
16 rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install
17
18$(STAGING_DIR):
19 @mkdir -p $(STAGING_DIR)/lib
20 @mkdir -p $(STAGING_DIR)/include
21
22$(TOOLS_STAMP_DIR):
23 @mkdir -p $(TOOLS_STAMP_DIR)
24
25$(TOOLS_BUILD_DIR):
26 @mkdir -p $(TOOLS_BUILD_DIR)
27
28%-prepare: $(TOOLS_BUILD_DIR) $(TOOLS_STAMP_DIR)
29 @[ -f $(TOOLS_STAMP_DIR)/.tools_$@ ] || { \
30 $(TRACE) tools/$(patsubst %-prepare,%,$@)/prepare; \
31 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare \
32 CC='$(HOSTCC)' CFLAGS='$(HOSTCFLAGS)' \
33 $(MAKE_TRACE); \
34 }
35 @touch $(TOOLS_STAMP_DIR)/.tools_$@
36
37%-compile: %-prepare
38 @[ -f $(TOOLS_STAMP_DIR)/.tools_$@ ] || { \
39 $(TRACE) tools/$(patsubst %-compile,%,$@)/compile; \
40 $(MAKE) -C $(patsubst %-compile,%,$@) compile \
41 CC='$(HOSTCC)' CFLAGS='$(HOSTCFLAGS)' \
42 $(MAKE_TRACE); \
43 }
44 @touch $(TOOLS_STAMP_DIR)/.tools_$@
45
46%-install: %-compile
47 @[ -f $(TOOLS_STAMP_DIR)/.tools_$@ ] || { \
48 $(TRACE) tools/$(patsubst %-install,%,$@)/install; \
49 $(MAKE) -C $(patsubst %-install,%,$@) install \
50 CC='$(HOSTCC)' CFLAGS='$(HOSTCFLAGS)' \
51 $(MAKE_TRACE); \
52 }
53 @touch $(TOOLS_STAMP_DIR)/.tools_$@
54
55%-clean:
56 $(TRACE) tools/$(patsubst %-clean,%,$@)/clean
57 @$(MAKE) -C $(patsubst %-clean,%,$@) clean $(MAKE_TRACE)
58 @rm -f $(TOOLS_STAMP_DIR)/.tools_$(patsubst %-clean,%,$@)-*
Note: See TracBrowser for help on using the repository browser.