blob: 710f344daa1e3075404ffe8534bd2815881d2e01 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# -*-makefile-*-
#
# Copyright (C) 2002-2008 by The PTXdist Team - See CREDITS for Details
#
# make sure bash is used to execute commands from makefiles
SHELL=bash
export SHELL
all:
@echo "ptxdist: error: please use 'ptxdist' instead of calling make directly."
@exit 1
# ----------------------------------------------------------------------------
# Some directory locations
# ----------------------------------------------------------------------------
include $(PTXDIST_TOPDIR)/scripts/ptxdist_vars.sh
include $(RULESDIR)/other/Definitions.make
include $(PTXDIST_PTXCONFIG)
include $(PTXDIST_PLATFORMCONFIG)
# might be non existent
ifneq ($(wildcard $(PTXDIST_COLLECTIONCONFIG)),)
include $(PTXDIST_COLLECTIONCONFIG)
endif
# ----------------------------------------------------------------------------
# Include all rule files
# ----------------------------------------------------------------------------
include $(RULESDIR)/other/Namespace.make
include $(wildcard $(PRERULESDIR)/*.make)
ifneq ($(wildcard $(PROJECTPRERULESDIR)/*.make),)
include $(wildcard $(PROJECTPRERULESDIR)/*.make)
endif
#include $(PTX_DGEN_DEPS_PRE)
include $(PTX_DGEN_RULESFILES_MAKE)
include $(PTX_DGEN_DEPS_POST)
include $(PTX_MAP_ALL_MAKE)
#
# the extended format is:
# PACKAGES-<ARCH>-<LABEL>
#
# to keep it simple, just add the "-y-y" to "-y"
# (for "-m" and "--" accordingly)
#
PACKAGES-y += $(PACKAGES-y-y)
PACKAGES-m += $(PACKAGES-y-m)
PACKAGES- += $(PACKAGES-y-) $(PACKAGES--y) $(PACKAGES--m) $(PACKAGES--)
PACKAGES := $(PACKAGES-y)
CROSS_PACKAGES := $(CROSS_PACKAGES-y) $(CROSS_PACKAGES-y-y)
HOST_PACKAGES := $(HOST_PACKAGES-y) $(HOST_PACKAGES-y-y)
#ALL_PACKAGES := \
# $(PACKAGES-) $(PACKAGES-y) $(PACKAGES-m) \
# $(CROSS_PACKAGES-) $(CROSS_PACKAGES-y) \
# $(HOST_PACKAGES-) $(HOST_PACKAGES-y)
PTX_PACKAGES_SELECTED := \
$(PACKAGES-y) \
$(CROSS_PACKAGES-y) \
$(HOST_PACKAGES-y)
ifneq ($(wildcard $(POSTRULESDIR)/*.make),)
include $(wildcard $(POSTRULESDIR)/*.make)
endif
ifneq ($(wildcard $(PROJECTPOSTRULESDIR)/*.make),)
include $(wildcard $(PROJECTPOSTRULESDIR)/*.make)
endif
# ----------------------------------------------------------------------------
# just the "print" target
# ----------------------------------------------------------------------------
print-%:
@echo "$($(*))"
# vim600:set foldmethod=marker:
# vim600:set syntax=make:
|