This repository has been archived by the owner on Jun 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
43 lines (34 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-include configs/$(TARGET_PLATFORM_NAME)-variables.mk
PACKAGES= zlib libffi glib libogg libvorbis bzip2 \
gstreamer gst-plugins-base gst-libav \
libxml2 sqlite libtasn1 p11-kit gmp nettle gnutls glib-networking libsoup \
libpng gst-plugins-good \
libcurl gst-plugins-bad \
gst-plugins-ugly
all: env host target
env:
@echo "checking environment variables."
ifeq ($(TARGET_ARCH)x, x)
@echo "user-specified variables required."
@echo "to set variables, please follow next steps."
@$(SHELL) configs/build_variables.sh
@echo "please, re-run building process...."
@exit 1
else
@echo "building libraries for [$(TARGET_ARCH)]"
endif
host: $(HOST_STAGING_DIR)/.completed
$(HOST_STAGING_DIR)/.completed:
@echo "preparing to host libraries";
make -f packages/libffi/libffi-host.mk;
make -f packages/glib/glib-host.mk;
@echo -e "\033[32m============================================ "
@echo -e " please, set PATH to build target libaries "
@echo -e " export PATH=$(HOST_STAGING_DIR)/bin:""$$""PATH "
@echo -e "============================================\033[0m "
@touch $(HOST_STAGING_DIR)/.completed
@exit 1;
target: $(PACKAGES)
$(PACKAGES):
@mkdir -p unpack
@make -f packages/$@/[email protected]