2
# Copyright (C) 1997, Ericsson Telecommunications
3
# Author: Kenneth Lundin
5
include $(ERL_TOP)/make/target.mk
6
include $(ERL_TOP)/make/$(TARGET)/otp.mk
8
# ----------------------------------------------------
10
# ----------------------------------------------------
14
# ----------------------------------------------------
15
# Release directory specification
16
# ----------------------------------------------------
17
RELSYSDIR = $(RELEASE_PATH)/lib/asn1-$(VSN)
28
# PARSER_MODULE=$(PARSER_SRC:%.yrl=%)
35
asn1ct_pretty_format \
38
asn1ct_gen_per_rt2ct \
40
asn1ct_constructed_per \
41
asn1ct_constructed_ber \
43
asn1ct_constructed_ber_bin_v2 \
44
asn1ct_gen_ber_bin_v2 \
56
asn1rt_per_bin_rt2ct \
57
asn1rt_driver_handler \
62
# the rt module to use is defined in asn1_records.hrl
63
# and must be updated when an incompatible change is done in the rt modules
66
MODULES= $(CT_MODULES) $(RT_MODULES)
68
ERL_FILES = $(MODULES:%=%.erl)
70
TARGET_FILES = $(MODULES:%=$(EBIN)/%.$(EMULATOR))
72
GENERATED_PARSER = $(PARSER_MODULE:%=%.erl)
75
HRL_FILES = asn1_records.hrl
78
APPUP_FILE = asn1.appup
80
APP_SRC = $(APP_FILE).src
81
APP_TARGET = $(EBIN)/$(APP_FILE)
83
APPUP_SRC = $(APPUP_FILE).src
84
APPUP_TARGET = $(EBIN)/$(APPUP_FILE)
87
../examples/P-Record.asn
89
# ----------------------------------------------------
91
# ----------------------------------------------------
93
ERL_COMPILE_FLAGS += \
94
-I$(ERL_TOP)/lib/stdlib \
97
# ----------------------------------------------------
99
# ----------------------------------------------------
101
debug opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
105
rm -f $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) $(GENERATED_PARSER)
111
# ----------------------------------------------------
112
# Special Build Targets
113
# ----------------------------------------------------
115
$(EBIN)/asn1ct.$(EMULATOR):asn1ct.erl
116
$(ERLC) -b$(EMULATOR) -o$(EBIN) $(ERL_COMPILE_FLAGS) -Dvsn=\"$(VSN)\" $<
118
$(APP_TARGET): $(APP_SRC) ../vsn.mk
119
sed -e 's;%VSN%;$(VSN);' $< > $@
121
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
122
sed -e 's;%VSN%;$(VSN);' $< > $@
125
# ----------------------------------------------------
127
# ----------------------------------------------------
128
include $(ERL_TOP)/make/otp_release_targets.mk
131
$(INSTALL_DIR) $(RELSYSDIR)/ebin
132
$(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) $(RELSYSDIR)/ebin
133
$(INSTALL_DIR) $(RELSYSDIR)/src
134
$(INSTALL_DATA) $(PARSER_SRC) $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) $(RELSYSDIR)/src
135
$(INSTALL_DIR) $(RELSYSDIR)/examples
136
$(INSTALL_DATA) $(EXAMPLES) $(RELSYSDIR)/examples
138
# there are no include files to be used by the user
139
#$(INSTALL_DIR) $(RELSYSDIR)/include
140
#$(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/include