1# 2# %CopyrightBegin% 3# 4# Copyright Ericsson AB 1996-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 22 23# ---------------------------------------------------- 24# Configuration info. 25# ---------------------------------------------------- 26include $(ERL_TOP)/make/$(TARGET)/otp.mk 27 28# ---------------------------------------------------- 29# Target Specs 30# ---------------------------------------------------- 31 32EBIN=. 33 34TS_MODULES= \ 35 ts \ 36 ts_run \ 37 ts_lib \ 38 ts_make \ 39 ts_erl_config \ 40 ts_autoconf_win32 \ 41 ts_install \ 42 ts_install_cth \ 43 ts_benchmark 44 45TARGET_MODULES= $(MODULES:%=$(EBIN)/%) 46TS_TARGET_MODULES= $(TS_MODULES:%=$(EBIN)/%) 47 48TS_ERL_FILES = $(TS_MODULES:=.erl) 49TS_HRL_FILES = ts.hrl 50AUTOCONF_FILES = configure.in conf_vars.in 51PROGRAMS = configure config.sub config.guess install-sh 52CONFIG = ts.config ts.unix.config ts.win32.config 53 54TS_TARGET_FILES = $(TS_MODULES:%=$(EBIN)/%.$(EMULATOR)) 55 56TS_TARGETS = $(TS_MODULES:%=$(EBIN)/%.$(EMULATOR)) 57 58# ---------------------------------------------------- 59# FLAGS 60# ---------------------------------------------------- 61ERL_COMPILE_FLAGS += -I../include -Werror 62 63# ---------------------------------------------------- 64# Targets 65# ---------------------------------------------------- 66 67tests debug opt: $(TS_TARGETS) 68 69clean: 70 rm -f $(TS_TARGET_FILES) 71 rm -f core 72 73docs: 74 75configure: configure.in 76 autoconf configure.in > configure 77 78# ---------------------------------------------------- 79# Special Build Targets 80# ---------------------------------------------------- 81 82# ---------------------------------------------------- 83# Release Target 84# ---------------------------------------------------- 85include $(ERL_TOP)/make/otp_release_targets.mk 86 87release_tests_spec: opt 88 $(INSTALL_DIR) "$(RELEASE_PATH)/test_server" 89 $(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \ 90 $(TS_TARGET_FILES) \ 91 $(AUTOCONF_FILES) $(CONFIG) \ 92 "$(RELEASE_PATH)/test_server" 93 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" 94 95release_docs_spec: 96 97