~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/snmp/src/misc/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/.
 
6
 
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
 
10
# under the License.
 
11
 
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.''
 
15
 
16
#     $Id$
 
17
#
 
18
include $(ERL_TOP)/make/target.mk
 
19
 
 
20
EBIN = ../../ebin
 
21
 
 
22
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
23
 
 
24
# ----------------------------------------------------
 
25
# Application version
 
26
# ----------------------------------------------------
 
27
include ../../vsn.mk
 
28
 
 
29
VSN = $(SNMP_VSN)
 
30
 
 
31
# ----------------------------------------------------
 
32
# Release directory specification
 
33
# ----------------------------------------------------
 
34
RELSYSDIR = $(RELEASE_PATH)/lib/snmp-$(VSN)
 
35
 
 
36
 
 
37
# ----------------------------------------------------
 
38
# Target Specs
 
39
# ----------------------------------------------------
 
40
 
 
41
include modules.mk
 
42
 
 
43
ERL_FILES = $(MODULES:%=%.erl)
 
44
 
 
45
HRL_FILES = $(HRLS:%=%.hrl)
 
46
 
 
47
TARGET_FILES = $(MODULES:%=$(EBIN)/%.$(EMULATOR))
 
48
 
 
49
 
 
50
# ----------------------------------------------------
 
51
# SNMP FLAGS
 
52
# ----------------------------------------------------
 
53
ifeq ($(SNMP_DEFAULT_VERBOSITY),)
 
54
  SNMP_FLAGS = -Ddefault_verbosity=silence
 
55
else
 
56
  SNMP_FLAGS = -Ddefault_verbosity=$(SNMP_DEFAULT_VERBOSITY)
 
57
endif
 
58
 
 
59
# SNMP_DEBUG=d
 
60
ifeq ($(SNMP_DEBUG),d)
 
61
  SNMP_FLAGS += -Dsnmp_debug
 
62
endif
 
63
 
 
64
 
 
65
# ----------------------------------------------------
 
66
# FLAGS
 
67
# ----------------------------------------------------
 
68
 
 
69
ERL_FLAGS += -pa $(ERL_TOP)/lib/snmp/ebin
 
70
 
 
71
ifeq ($(WARN_UNUSED_VARS),true)
 
72
ERL_COMPILE_FLAGS += +warn_unused_vars
 
73
endif
 
74
 
 
75
ERL_COMPILE_FLAGS += -I../../include \
 
76
                     -I../compile \
 
77
                     -Dversion=\"$(VSN)$(PRE_VSN)\" \
 
78
                     +'{parse_transform,sys_pre_attributes}' \
 
79
                     +'{attribute,insert,app_vsn,$(APP_VSN)}' \
 
80
                     -I$(ERL_TOP)/lib/stdlib \
 
81
                     $(SNMP_FLAGS)
 
82
 
 
83
# ----------------------------------------------------
 
84
# Targets
 
85
# ----------------------------------------------------
 
86
 
 
87
debug:
 
88
        @$(MAKE) TYPE=debug opt
 
89
 
 
90
opt: $(TARGET_FILES)
 
91
 
 
92
 
 
93
clean:
 
94
        rm -f $(TARGET_FILES) 
 
95
        rm -f core *~
 
96
 
 
97
docs:
 
98
 
 
99
info:
 
100
        @echo "TARGET_FILES: $(TARGET_FILES)"
 
101
        @echo ""
 
102
 
 
103
 
 
104
# ----------------------------------------------------
 
105
# Release Target
 
106
# ---------------------------------------------------- 
 
107
include $(ERL_TOP)/make/otp_release_targets.mk
 
108
 
 
109
release_spec: opt
 
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
 
117
 
 
118
release_docs_spec:
 
119
 
 
120
include depend.mk