1#
2# Copyright (c) ZeroC, Inc. All rights reserved.
3#
4
5top_srcdir      := ..
6lang_srcdir     := $(top_srcdir)/$(notdir $(patsubst %/,%,$(dir $(lastword $(abspath $(MAKEFILE_LIST))))))
7
8ifeq ($(PYTHON),)
9    PYTHON = python
10endif
11
12include $(top_srcdir)/config/Make.rules
13
14#
15# Load C++ dependencies
16#
17#$(eval $(call load-dependencies,$(addprefix $(top_srcdir)/cpp/src/,Ice IceSSL IceLocatorDiscovery IceDiscovery)))
18
19#
20# Load python rules after loading C++ dependencies
21#
22include $(lang_srcdir)/config/Make.rules
23
24ifeq ($(filter all python,$(ICE_BIN_DIST)),)
25
26#
27# Load Makefile.mk fragments
28#
29include $(shell find $(lang_srcdir) -name Makefile.mk)
30
31#
32# Make the projects (this expands all the build configuration and defines rules for all
33# the components).
34#
35$(call make-projects,$(projects))
36
37#
38# We use a separate Makefile for building the python packages because their building
39# requires .NOTPARALLEL
40#
41all generate-srcs clean distclean install::
42	+$(Q)$(MAKE) -C python $@
43
44endif
45