disable jamvm for lemote
[openadk.git] / package / Makefile
blob4c8e63b9204647144e4a68e83ba2681f746abadb
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
11 endif
12 ifeq (${ADK_TARGET_LIB_EGLIBC},y)
13 package-$(ADK_PACKAGE_EGLIBC) += eglibc
14 endif
15 ifeq (${ADK_NATIVE},y)
16 package-$(ADK_PACKAGE_LIBC) += libc
17 endif
18 ifneq (${ADK_NATIVE},y)
19 package-$(ADK_PACKAGE_LIBPTHREAD) += libpthread
20 endif
22 ifneq (${ADK_TARGET_LIB_GLIBC},y)
23 ifneq (${ADK_NATIVE},y)
24 package-$(ADK_PACKAGE_UCLIBC) += uclibc
25 endif
26 package-$(ADK_PACKAGE_UCLIBCXX) += uclibc++
27 endif
29 DOWNLOAD:=$(patsubst %,%-download,$(package-y) $(package-m))
30 COMPILE_PACKAGES:=$(patsubst %,%-compile,$(package-y) $(package-m))
31 INSTALL_PACKAGES:=$(patsubst %,%-install,$(package-y))
33 all: compile
34 download: $(DOWNLOAD)
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)
39 else
40 compile: base-files-compile $(COMPILE_PACKAGES)
41 install: base-files-install $(INSTALL_PACKAGES)
42 endif
44 $(TARGET_DIR):
45 mkdir -p $(TARGET_DIR)
47 %-download:
48 $(START_TRACE) "package/$(patsubst %-download,%,$@)-download: "
49 $(MAKE) -C $(patsubst %-download,%,$@) fetch
50 $(CMD_TRACE) " done"
51 $(END_TRACE)
53 %-compile:
54 $(START_TRACE) "package/$(patsubst %-compile,%,$@)-compile: "
55 $(MAKE) -C $(patsubst %-compile,%,$@) fake build-all-pkgs
56 $(CMD_TRACE) " done"
57 $(END_TRACE)
59 %-install:
60 @$(START_TRACE) "package/$(patsubst %-install,%,$@)-install: "
61 @$(MAKE) -C $(patsubst %-install,%,$@) install
62 @$(CMD_TRACE) " done"
63 @$(END_TRACE)
65 %-clean:
66 @$(START_TRACE) "package/$(patsubst %-clean,%,$@)-clean: "
67 @$(MAKE) -C $(patsubst %-clean,%,$@) clean
68 @$(CMD_TRACE) " done"
69 @$(END_TRACE)