~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/public_key/asn1/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

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
 
 
19
include $(ERL_TOP)/make/target.mk
 
20
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
21
 
 
22
# ----------------------------------------------------
 
23
# Application version
 
24
# ----------------------------------------------------
 
25
include ../vsn.mk
 
26
VSN=$(PUBLIC_KEY_VSN)
 
27
 
 
28
# ----------------------------------------------------
 
29
# Release directory specification
 
30
# ----------------------------------------------------
 
31
RELSYSDIR = $(RELEASE_PATH)/lib/public_key-$(VSN)
 
32
 
 
33
# ----------------------------------------------------
 
34
# Common Macros
 
35
# ----------------------------------------------------
 
36
 
 
37
.SUFFIXES: .asn1
 
38
.PRECIOUS: %.erl
 
39
 
 
40
ASN_TOP = OTP-PUB-KEY
 
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)
 
49
 
 
50
GEN_MODULES = 
 
51
GEN_ERLS    = $(GEN_MODULES:%=%.erl)
 
52
ERL_MODULES = $(ASN_TOP) $(GEN_MODULES)
 
53
 
 
54
TARGET_FILES= $(ERL_MODULES:%=$(EBIN)/%.$(EMULATOR))
 
55
 
 
56
HRL_FILES = $(ASN_HRLS:%=$(INCLUDE)/%)
 
57
 
 
58
INCLUDE = ../include
 
59
EBIN = ../ebin
 
60
 
 
61
# ----------------------------------------------------
 
62
# FLAGS
 
63
# ----------------------------------------------------
 
64
EXTRA_ERLC_FLAGS = 
 
65
ERL_COMPILE_FLAGS += $(EXTRA_ERLC_FLAGS)
 
66
 
 
67
ASN_FLAGS = -bber_bin +der +compact_bit_string +optimize +noobj +asn1config +inline
 
68
 
 
69
# ----------------------------------------------------
 
70
# Targets
 
71
# ----------------------------------------------------
 
72
 
 
73
debug opt: $(TARGET_FILES) $(HRL_FILES)
 
74
 
 
75
clean:
 
76
        -rm -f $(ASN_ERLS) $(GEN_ERLS) $(ASN_HRLS) $(HRL_FILES) $(ASN_DBS) \
 
77
                $(ASN_TABLES)  $(TARGET_FILES) *.beam *~
 
78
 
 
79
docs:
 
80
 
 
81
%.erl: %.set.asn
 
82
        erlc $(ASN_FLAGS) $<
 
83
 
 
84
$(HRL_FILES):   $(ASN_HRLS)
 
85
        cp -p $(ASN_HRLS) $(INCLUDE)
 
86
 
 
87
# ----------------------------------------------------
 
88
# Release Target
 
89
# ---------------------------------------------------- 
 
90
include $(ERL_TOP)/make/otp_release_targets.mk
 
91
 
 
92
release_spec: opt
 
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
 
100
 
 
101
release_docs_spec:
 
102
 
 
103
#
 
104
# Dependencies
 
105
 
 
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 \
 
112
                                OTP-PKIX.asn1