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.''
19
include $(ERL_TOP)/make/target.mk
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
22
# ----------------------------------------------------
24
# ----------------------------------------------------
28
# ----------------------------------------------------
29
# Release directory specification
30
# ----------------------------------------------------
31
RELSYSDIR = $(RELEASE_PATH)/lib/public_key-$(VSN)
33
# ----------------------------------------------------
35
# ----------------------------------------------------
41
ASN_MODULES = PKIX1Explicit88 PKIX1Implicit88 PKIX1Algorithms88 \
42
PKIXAttributeCertificate OTP-PKIX
43
ASN_ASNS = $(ASN_MODULES:%=%.asn1)
44
ASN_ERLS = $(ASN_TOP).erl
45
ASN_HRLS = $(ASN_TOP).hrl
46
ASN_CONFIGS = OTP-PUB-KEY.asn1config
47
ASN_DBS = $(ASN_MODULES:%=%.asn1db) OTP-PUB-KEY.asn1db
48
ASN_TABLES = $(ASN_MODULES:%=%.table)
51
GEN_ERLS = $(GEN_MODULES:%=%.erl)
52
ERL_MODULES = $(ASN_TOP) $(GEN_MODULES)
54
TARGET_FILES= $(ERL_MODULES:%=$(EBIN)/%.$(EMULATOR))
56
HRL_FILES = $(ASN_HRLS:%=$(INCLUDE)/%)
61
# ----------------------------------------------------
63
# ----------------------------------------------------
65
ERL_COMPILE_FLAGS += $(EXTRA_ERLC_FLAGS)
67
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline
69
# ----------------------------------------------------
71
# ----------------------------------------------------
73
debug opt: $(TARGET_FILES) $(HRL_FILES)
76
-rm -f $(ASN_ERLS) $(GEN_ERLS) $(ASN_HRLS) $(HRL_FILES) $(ASN_DBS) \
77
$(ASN_TABLES) $(TARGET_FILES) *.beam *~
84
$(HRL_FILES): $(ASN_HRLS)
85
cp -p $(ASN_HRLS) $(INCLUDE)
87
# ----------------------------------------------------
89
# ----------------------------------------------------
90
include $(ERL_TOP)/make/otp_release_targets.mk
93
$(INSTALL_DIR) $(RELSYSDIR)/include
94
$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include
95
$(INSTALL_DIR) $(RELSYSDIR)/asn1
96
$(INSTALL_DATA) $(ASN_ASNS) $(ASN_ERLS) $(ASN_HRLS) $(ASN_CONFIGS) \
97
$(GEN_ERLS) $(RELSYSDIR)/asn1
98
$(INSTALL_DIR) $(RELSYSDIR)/ebin
99
$(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
106
$(EBIN)/OTP-PUB-KEY.beam: OTP-PUB-KEY.erl OTP-PUB-KEY.hrl
107
OTP-PUB-KEY.erl OTP-PUB-KEY.hrl: OTP-PUB-KEY.asn1db
108
OTP-PUB-KEY.asn1db: PKIX1Algorithms88.asn1 \
109
PKIX1Explicit88.asn1 \
110
PKIX1Implicit88.asn1 \
111
PKIXAttributeCertificate.asn1 \