aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile65
1 files changed, 58 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 481dfb94..38a8f60e 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,45 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-SUBDIRS=bsc bsc-nat bts ccid gbproxy ggsn_tests hlr mgw mme msc pcu pgw remsim \
- sccp selftest sgsn simtrace sip stp sysinfo smlc
+SUBDIRS= \
+ asterisk \
+ bsc \
+ bsc-nat \
+ bts \
+ cbc \
+ ccid \
+ dia2gsup \
+ eim \
+ fr \
+ fr-net \
+ epdg \
+ gbproxy \
+ ggsn_tests \
+ hlr \
+ hnbgw \
+ hnodeb \
+ hss \
+ ipad \
+ mgw \
+ mme \
+ msc \
+ ns \
+ pcap-client \
+ pcu \
+ pcrf \
+ pgw \
+ remsim \
+ s1gw \
+ sccp \
+ selftest \
+ sgsn \
+ simtrace \
+ sip \
+ smlc \
+ stp \
+ sysinfo \
+ upf \
+ $(NULL)
NPROC=$(shell nproc 2>/dev/null)
ifeq ($(NPROC),)
@@ -36,21 +73,25 @@ PARALLEL_MAKE ?= -j$(NPROC)
default: deps all
+# Eclipse GitLab has rate limiting and sometimes to many concurrent conns fail.
+# If -jN fails, retry with -j1.
+.make.deps: deps/Makefile
+ ($(MAKE) $(PARALLEL_MAKE) -C deps || $(MAKE) -j1 -C deps)
+ touch $@
+
.PHONY: deps
-deps:
- $(MAKE) -C deps
+deps: .make.deps
# deps-update target for backwards compat; now does the same as 'make deps'
.PHONY: deps-update
-deps-update:
- $(MAKE) -C deps
+deps-update: .make.deps
compile: $(foreach dir,$(SUBDIRS),$(dir)/compile)
clean: $(foreach dir,$(SUBDIRS),$(dir)/clean)
all: $(foreach dir,$(SUBDIRS),$(dir)/all)
define DIR_Makefile_template
-$(1)/Makefile:
+$(1)/Makefile: $(1)/gen_links.sh $(1)/regen_makefile.sh
(cd $(1) && ./gen_links.sh && ./regen_makefile.sh)
endef
@@ -81,3 +122,13 @@ $(foreach dir,$(SUBDIRS), \
$(eval $(call DIR_clean_template,$(dir))) \
$(eval $(call DIR_all_template,$(dir))) \
)
+
+.PHONY: tags regen-diameter-types-ttcn
+tags:
+ find $(shell pwd) \
+ -type f -name "*.ttcn" -o \
+ -type f -name "*.ttcnpp" | \
+ xargs ctags
+
+regen-diameter-types-ttcn:
+ (cd library/ && ./regen-DIAMETER_Types_ttcn.sh)