2
# <year>1996-2007</year>
3
# <holder>Ericsson AB, All Rights Reserved</holder>
6
# The contents of this file are subject to the Erlang Public License,
7
# Version 1.1, (the "License"); you may not use this file except in
8
# compliance with the License. You should have received a copy of the
9
# Erlang Public License along with this software. If not, it can be
10
# retrieved online at http://www.erlang.org/.
12
# Software distributed under the License is distributed on an "AS IS"
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
# the License for the specific language governing rights and limitations
17
# The Initial Developer of the Original Code is Ericsson AB.
20
include $(ERL_TOP)/make/target.mk
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
23
# ----------------------------------------------------
25
# ----------------------------------------------------
28
VSN = $(PUBLIC_KEY_VSN)
29
APP_VSN = "public_key-$(VSN)"
32
# ----------------------------------------------------
33
# Release directory specification
34
# ----------------------------------------------------
35
RELSYSDIR = $(RELEASE_PATH)/lib/public_key-$(VSN)
37
# ----------------------------------------------------
39
# ----------------------------------------------------
47
HRL_FILES = $(INCLUDE)/public_key.hrl
51
ERL_FILES = $(MODULES:%=%.erl)
53
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
56
# ----------------------------------------------------
58
# ----------------------------------------------------
61
# ----------------------------------------------------
63
# ----------------------------------------------------
64
PUB_KEY_ERL_FLAGS += -I $(INCLUDE) -I ../asn1/
66
ERL_COMPILE_FLAGS += $(PUB_KEY_ERL_FLAGS) \
68
+'{parse_transform,sys_pre_attributes}' \
69
+'{attribute,insert,app_vsn,$(APP_VSN)}'
71
# ----------------------------------------------------
73
# ----------------------------------------------------
75
debug opt: $(TARGET_FILES) $(HRL_FILES)
83
# ----------------------------------------------------
85
# ----------------------------------------------------
86
include $(ERL_TOP)/make/otp_release_targets.mk
89
$(INSTALL_DIR) $(RELSYSDIR)/src
90
$(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) $(RELSYSDIR)/src
91
$(INSTALL_DIR) $(RELSYSDIR)/include
92
$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include
93
$(INSTALL_DIR) $(RELSYSDIR)/ebin
94
$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin