1
#-*-makefile-*- ; force emacs to enter makefile-mode
5
# Copyright Ericsson AB 2010. All Rights Reserved.
7
# The contents of this file are subject to the Erlang Public License,
8
# Version 1.1, (the "License"); you may not use this file except in
9
# compliance with the License. You should have received a copy of the
10
# Erlang Public License along with this software. If not, it can be
11
# retrieved online at http://www.erlang.org/.
13
# Software distributed under the License is distributed on an "AS IS"
14
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15
# the License for the specific language governing rights and limitations
20
ifeq ($(INETS_TRACE), io)
21
ERL_COMPILE_FLAGS += -Dinets_trace_io
24
ifeq ($(INETS_DEBUG), true)
25
ERL_COMPILE_FLAGS += -Dinets_debug
28
ifeq ($(USE_INETS_HIPE), true)
29
ERL_COMPILE_FLAGS += +native
32
ifeq ($(WARN_UNUSED_WARS), true)
33
ERL_COMPILE_FLAGS += +warn_unused_vars
36
INETS_APP_VSN_COMPILE_FLAGS = \
37
+'{parse_transform,sys_pre_attributes}' \
38
+'{attribute,insert,app_vsn,$(APP_VSN)}'
40
INETS_FLAGS = -D'SERVER_SOFTWARE="$(APPLICATION)/$(VSN)"'
42
INETS_ERL_COMPILE_FLAGS += \
43
-pa $(ERL_TOP)/lib/inets/ebin \
44
$(INETS_APP_VSN_COMPILE_FLAGS)