1# 2# %CopyrightBegin% 3# 4# Copyright Ericsson AB 2010-2016. All Rights Reserved. 5# 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18# %CopyrightEnd% 19 20include $(ERL_TOP)/make/target.mk 21 22EBIN = . 23 24include $(ERL_TOP)/make/$(TARGET)/otp.mk 25 26# ---------------------------------------------------- 27# Application version 28# ---------------------------------------------------- 29include ../../vsn.mk 30 31VSN=$(INETS_VSN) 32 33 34# ---------------------------------------------------- 35# Release directory specification 36# ---------------------------------------------------- 37RELSYSDIR = $(RELEASE_PATH)/lib/inets-$(VSN) 38EXAMPLE_RELSYSDIR = "$(RELSYSDIR)/examples" 39HDLT_RELSYSDIR = $(EXAMPLE_RELSYSDIR)/httpd_load_test 40 41 42# ---------------------------------------------------- 43# Target Specs 44# ---------------------------------------------------- 45 46include modules.mk 47 48ERL_FILES = $(MODULES:%=%.erl) 49 50SOURCE = $(ERL_FILES) $(INTERNAL_HRL_FILES) 51 52TARGET_FILES = \ 53 $(ERL_FILES:%.erl=$(EBIN)/%.$(EMULATOR)) 54 55ifeq ($(TYPE),debug) 56ERL_COMPILE_FLAGS += -Ddebug -W 57endif 58 59 60# ---------------------------------------------------- 61# FLAGS 62# ---------------------------------------------------- 63 64include ../../src/inets_app/inets.mk 65 66ERL_COMPILE_FLAGS += \ 67 $(INETS_FLAGS) \ 68 $(INETS_ERL_COMPILE_FLAGS) \ 69 -I../../include 70 71 72# ---------------------------------------------------- 73# Special Build Targets 74# ---------------------------------------------------- 75 76 77# ---------------------------------------------------- 78# Targets 79# ---------------------------------------------------- 80debug: 81 @${MAKE} TYPE=debug opt 82 83opt: $(TARGET_FILES) 84 85clean: 86 rm -f $(TARGET_FILES) 87 rm -f errs core *~ 88 89docs: 90 91 92# ---------------------------------------------------- 93# Release Target 94# ---------------------------------------------------- 95include $(ERL_TOP)/make/otp_release_targets.mk 96 97 98release_spec: opt 99 $(INSTALL_DIR) $(EXAMPLE_RELSYSDIR) 100 $(INSTALL_DIR) $(HDLT_RELSYSDIR) 101 $(INSTALL_DATA) $(SCRIPT_SKELETONS) $(HDLT_RELSYSDIR) 102 $(INSTALL_DATA) $(CONF_SKELETONS) $(HDLT_RELSYSDIR) 103 $(INSTALL_DATA) $(CERT_FILES) $(HDLT_RELSYSDIR) 104 $(INSTALL_DATA) $(TARGET_FILES) $(HDLT_RELSYSDIR) 105 $(INSTALL_DATA) $(ERL_FILES) $(HDLT_RELSYSDIR) 106 107 108release_docs_spec: 109 110 111# ---------------------------------------------------- 112# Include dependencies 113# ---------------------------------------------------- 114 115megaco_codec_transform.$(EMULATOR): megaco_codec_transform.erl 116 117megaco_codec_meas.$(EMULATOR): megaco_codec_meas.erl 118 119megaco_codec_mstone1.$(EMULATOR): megaco_codec_mstone1.erl 120 121megaco_codec_mstone2.$(EMULATOR): megaco_codec_mstone2.erl 122 123megaco_codec_mstone_lib.$(EMULATOR): megaco_codec_mstone_lib.erl 124 125