1# 2# %CopyrightBegin% 3# 4# Copyright Ericsson AB 2001-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# 20# 21include $(ERL_TOP)/make/target.mk 22include $(ERL_TOP)/make/$(TARGET)/otp.mk 23 24CORBA_TOP=../../.. 25 26# ---------------------------------------------------- 27# Application version 28# ---------------------------------------------------- 29include $(CORBA_TOP)/vsn.mk 30VSN=$(CORBA_VSN) 31 32# ---------------------------------------------------- 33# Release directory specification 34# ---------------------------------------------------- 35RELSYSDIR = $(RELEASE_PATH)/cosEventDomain_test 36 37# ---------------------------------------------------- 38# Target Specs 39# ---------------------------------------------------- 40TEST_SPEC_FILE = cosEventDomain.spec 41COVER_FILE = cosEventDomain.cover 42 43 44MODULES = \ 45 event_domain_SUITE \ 46 generated_SUITE 47 48ERL_FILES = $(MODULES:%=%.erl) 49 50HRL_FILES = 51 52SUITE_TARGET_FILES = $(MODULES:%=%.$(EMULATOR)) 53 54TARGET_FILES = \ 55 $(SUITE_TARGET_FILES) 56 57# ---------------------------------------------------- 58# PROGRAMS 59# ---------------------------------------------------- 60# ---------------------------------------------------- 61# FLAGS 62# ---------------------------------------------------- 63ERL_IDL_FLAGS += -pa $(CORBA_TOP)/lib/orber/ebin -pa $(CORBA_TOP)/lib/ic/ebin 64 65ERL_COMPILE_FLAGS += \ 66 $(ERL_IDL_FLAGS) \ 67 -pa $(CORBA_TOP)/lib/cosEventDomain/ebin \ 68 -pa $(CORBA_TOP)/lib/cosEventDomain/include \ 69 -pa $(CORBA_TOP)/lib/cosNotification/ebin \ 70 -pa $(CORBA_TOP)/lib/cosNotification/include \ 71 -I$(CORBA_TOP)/lib/cosEventDomain/include \ 72 -I$(CORBA_TOP)/lib/cosNotification/include \ 73 -I$(CORBA_TOP)/lib/cosNotification/ebin 74 75# ---------------------------------------------------- 76# Targets 77# ---------------------------------------------------- 78tests debug opt: $(TARGET_FILES) 79 80clean: 81 rm -f $(TARGET_FILES) 82 rm -f errs core *~ 83 84 85docs: 86 87# ---------------------------------------------------- 88# Special Targets 89# ---------------------------------------------------- 90 91# ---------------------------------------------------- 92# Release Targets 93# ---------------------------------------------------- 94# We don't copy generated intermediate erlang and hrl files 95 96include $(ERL_TOP)/make/otp_release_targets.mk 97 98release_spec: 99 100release_docs_spec: 101 102release_tests_spec: tests 103 $(INSTALL_DIR) "$(RELSYSDIR)" 104 $(INSTALL_DATA) $(TEST_SPEC_FILE) \ 105 $(COVER_FILE) $(ERL_FILES) "$(RELSYSDIR)" 106 $(INSTALL_DATA) $(SUITE_TARGET_FILES) "$(RELSYSDIR)" 107 108