b5c2a2203d00673115469a608c0e39c6e34325e2
2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(INCLUDE_DIR
)/host.mk
9 include $(INCLUDE_DIR
)/unpack.mk
10 include $(INCLUDE_DIR
)/depends.mk
12 STAMP_PREPARED
:=$(PKG_BUILD_DIR
)/.prepared_
$(shell find
${CURDIR} $(PKG_FILE_DEPEND
) $(DEP_FINDPARAMS
) | md5s
)
13 STAMP_CONFIGURED
:=$(PKG_BUILD_DIR
)/.configured
14 STAMP_BUILT
:=$(PKG_BUILD_DIR
)/.built
16 include $(INCLUDE_DIR
)/quilt.mk
18 Build
/Patch
:=$(Build
/Patch
/Default
)
19 ifneq ($(strip $(PKG_UNPACK
)),)
20 define Build
/Prepare
/Default
27 $(call Build
/Prepare
/Default
)
30 define Build
/Configure
/Default
31 @
(cd
$(PKG_BUILD_DIR
)/$(3); \
34 CPPFLAGS
="-I$(STAGING_DIR)/host/include" \
35 LDFLAGS
="-L$(STAGING_DIR)/host/lib" \
37 --target
=$(GNU_TARGET_NAME
) \
38 --host
=$(GNU_TARGET_NAME
) \
39 --build
=$(GNU_HOST_NAME
) \
46 --libexecdir
=/usr
/lib \
48 --datadir=/usr
/share \
49 --localstatedir
=/var \
58 define Build
/Configure
59 $(call Build
/Configure
/Default
)
62 define Build
/Compile
/Default
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(1)
67 $(call Build
/Compile
/Default
)
71 ifneq ($(strip $(PKG_SOURCE
)),)
72 download
: $(DL_DIR
)/$(PKG_SOURCE
)
74 $(DL_DIR
)/$(PKG_SOURCE
):
76 $(SCRIPT_DIR
)/download.pl
"$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL
)
78 $(STAMP_PREPARED
): $(DL_DIR
)/$(PKG_SOURCE
)
81 ifneq ($(CONFIG_AUTOREBUILD
),)
82 define HostBuild
/Autoclean
83 $(PKG_BUILD_DIR
)/.dep_files
: $(STAMP_PREPARED
)
84 $(call rdep
,${CURDIR} $(PKG_FILE_DEPEND
),$(STAMP_PREPARED
))
85 $(call rdep
,$(PKG_BUILD_DIR
),$(STAMP_BUILT
),$(PKG_BUILD_DIR
)/.dep_files
, -and
-not
-path
"/.*" -and
-not
-path
"*/ipkg*")
91 $(call HostBuild
/Autoclean
)
95 @
-rm -rf
$(PKG_BUILD_DIR
)
96 @mkdir
-p
$(PKG_BUILD_DIR
)
100 $(STAMP_CONFIGURED
): $(STAMP_PREPARED
)
101 $(call Build
/Configure
)
104 $(STAMP_BUILT
): $(STAMP_CONFIGURED
)
105 $(call Build
/Compile
)
106 @
$(NO_TRACE_MAKE
) $(PKG_BUILD_DIR
)/.dep_files
109 $(STAGING_DIR
)/stampfiles
/.host_
$(PKG_NAME
)-installed
: $(STAMP_BUILT
)
110 $(call Build
/Install
)
111 mkdir
-p
$$(shell dirname
$$@
)
115 install: $(STAGING_DIR
)/stampfiles
/.host_
$(PKG_NAME
)-installed
120 $(call Build
/Uninstall
)
121 rm -f
$(STAGING_DIR
)/stampfiles
/.host_
$(PKG_NAME
)-installed
124 prepare
: $(STAMP_PREPARED
)
125 configure
: $(STAMP_CONFIGURED
)
126 compile
: $(STAMP_BUILT
)
130 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.042273 seconds and 3 git commands to generate.