1#-*-makefile-*- ; force emacs to enter makefile-mode 2 3# %CopyrightBegin% 4# 5# Copyright Ericsson AB 2010-2016. All Rights Reserved. 6# 7# Licensed under the Apache License, Version 2.0 (the "License"); 8# you may not use this file except in compliance with the License. 9# You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, software 14# distributed under the License is distributed on an "AS IS" BASIS, 15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16# See the License for the specific language governing permissions and 17# limitations under the License. 18# 19# %CopyrightEnd% 20 21ifeq ($(INETS_TRACE), io) 22ERL_COMPILE_FLAGS += -Dinets_trace_io 23endif 24 25ifeq ($(INETS_DEBUG), true) 26ERL_COMPILE_FLAGS += -Dinets_debug 27endif 28 29ifeq ($(WARN_UNUSED_WARS), true) 30ERL_COMPILE_FLAGS += +warn_unused_vars 31endif 32 33INETS_APP_VSN_COMPILE_FLAGS = \ 34 +'{parse_transform,sys_pre_attributes}' \ 35 +'{attribute,insert,app_vsn,$(APP_VSN)}' 36 37INETS_ERL_COMPILE_FLAGS += \ 38 -pa $(ERL_TOP)/lib/inets/ebin \ 39 $(INETS_APP_VSN_COMPILE_FLAGS) 40 41