1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 # Main makefile for the packages
6 include $(TOPDIR
)/rules.mk
7 include $(TOPDIR
)/package
/Depends.mk
9 ifeq (${ADK_TARGET_LIB_GLIBC},y
)
10 package-
$(ADK_PACKAGE_GLIBC
) += glibc
12 ifeq (${ADK_TARGET_LIB_EGLIBC},y
)
13 package-
$(ADK_PACKAGE_EGLIBC
) += eglibc
15 ifeq (${ADK_NATIVE},y
)
16 package-
$(ADK_PACKAGE_LIBC
) += libc
18 ifneq (${ADK_NATIVE},y
)
19 package-
$(ADK_PACKAGE_LIBPTHREAD
) += libpthread
22 ifneq (${ADK_TARGET_LIB_GLIBC},y
)
23 ifneq (${ADK_NATIVE},y
)
24 package-
$(ADK_PACKAGE_UCLIBC
) += uclibc
26 package-
$(ADK_PACKAGE_UCLIBCXX
) += uclibc
++
29 DOWNLOAD
:=$(patsubst %,%-download
,$(package-y
) $(package-m
))
30 COMPILE_PACKAGES
:=$(patsubst %,%-compile
,$(package-y
) $(package-m
))
31 INSTALL_PACKAGES
:=$(patsubst %,%-install,$(package-y
))
35 clean: $(patsubst %,%-clean,$(package-
) $(package-y
) $(package-m
) base-files
)
36 ifeq ($(ADK_TOOLCHAIN_ONLY
),y
)
37 compile
: $(COMPILE_PACKAGES
)
38 install: $(INSTALL_PACKAGES
)
40 compile
: base-files-compile
$(COMPILE_PACKAGES
)
41 install: base-files-install
$(INSTALL_PACKAGES
)
45 mkdir
-p
$(TARGET_DIR
)
48 $(START_TRACE
) "package/$(patsubst %-download,%,$@)-download: "
49 $(MAKE
) -C
$(patsubst %-download
,%,$@
) fetch
54 $(START_TRACE
) "package/$(patsubst %-compile,%,$@)-compile: "
55 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) fake build-all-pkgs
60 @
$(START_TRACE
) "package/$(patsubst %-install,%,$@)-install: "
61 @
$(MAKE
) -C
$(patsubst %-install,%,$@
) install
66 @
$(START_TRACE
) "package/$(patsubst %-clean,%,$@)-clean: "
67 @
$(MAKE
) -C
$(patsubst %-clean,%,$@
) clean