1
# ``The contents of this file are subject to the Erlang Public License,
2
# Version 1.1, (the "License"); you may not use this file except in
3
# compliance with the License. You should have received a copy of the
4
# Erlang Public License along with this software. If not, it can be
5
# retrieved via the world wide web at http://www.erlang.org/.
7
# Software distributed under the License is distributed on an "AS IS"
8
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
# the License for the specific language governing rights and limitations
12
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
# AB. All Rights Reserved.''
18
include $(ERL_TOP)/make/target.mk
22
include $(ERL_TOP)/make/$(TARGET)/otp.mk
24
# ----------------------------------------------------
26
# ----------------------------------------------------
31
# ----------------------------------------------------
32
# Release directory specification
33
# ----------------------------------------------------
34
RELSYSDIR = $(RELEASE_PATH)/lib/snmp-$(VSN)
37
# ----------------------------------------------------
39
# ----------------------------------------------------
43
ERL_FILES = $(MODULES:%=%.erl)
45
HRL_FILES = $(HRLS:%=%.hrl)
47
TARGET_FILES = $(MODULES:%=$(EBIN)/%.$(EMULATOR))
50
# ----------------------------------------------------
52
# ----------------------------------------------------
53
ifeq ($(SNMP_DEFAULT_VERBOSITY),)
54
SNMP_FLAGS = -Ddefault_verbosity=silence
56
SNMP_FLAGS = -Ddefault_verbosity=$(SNMP_DEFAULT_VERBOSITY)
60
ifeq ($(SNMP_DEBUG),d)
61
SNMP_FLAGS += -Dsnmp_debug
65
# ----------------------------------------------------
67
# ----------------------------------------------------
69
ERL_FLAGS += -pa $(ERL_TOP)/lib/snmp/ebin
71
ifeq ($(WARN_UNUSED_VARS),true)
72
ERL_COMPILE_FLAGS += +warn_unused_vars
75
ERL_COMPILE_FLAGS += -I../../include \
77
-Dversion=\"$(VSN)$(PRE_VSN)\" \
78
+'{parse_transform,sys_pre_attributes}' \
79
+'{attribute,insert,app_vsn,$(APP_VSN)}' \
80
-I$(ERL_TOP)/lib/stdlib \
83
# ----------------------------------------------------
85
# ----------------------------------------------------
88
@$(MAKE) TYPE=debug opt
100
@echo "TARGET_FILES: $(TARGET_FILES)"
104
# ----------------------------------------------------
106
# ----------------------------------------------------
107
include $(ERL_TOP)/make/otp_release_targets.mk
110
$(INSTALL_DIR) $(RELSYSDIR)/src
111
$(INSTALL_DIR) $(RELSYSDIR)/src/misc
112
$(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)/src/misc
113
$(INSTALL_DIR) $(RELSYSDIR)/ebin
114
$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
115
# $(INSTALL_DIR) $(RELSYSDIR)/include
116
# $(INSTALL_DATA) $(EXT_HRL_FILES) $(RELSYSDIR)/include