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

« back to all changes in this revision

Viewing changes to lib/megaco/src/engine/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-05-01 16:57:10 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070501165710-2sapk0hp2gf3o0ip
Tags: 1:11.b.4-2ubuntu1
* Merge with Debian Unstable. Remaining changes:
  - Add -fno-stack-protector to fix broken crypto_drv.
* DebianMaintainerField update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
TARGET_FILES =  \
47
47
        $(MODULES:%=$(EBIN)/%.$(EMULATOR))
48
48
 
49
 
APP_FILE   = megaco.app
50
 
APP_SRC    = $(APP_FILE).src
51
 
APP_TARGET = $(EBIN)/$(APP_FILE)
52
 
 
53
 
APPUP_FILE   = megaco.appup
54
 
APPUP_SRC    = $(APPUP_FILE).src
55
 
APPUP_TARGET = $(EBIN)/$(APPUP_FILE)
56
49
 
57
50
# ----------------------------------------------------
58
51
# FLAGS
61
54
ERL_COMPILE_FLAGS += -Ddebug
62
55
endif
63
56
 
64
 
ifeq ($(MEGACO_TRACE), io)
65
 
ERL_COMPILE_FLAGS += -Dmegaco_trace_io
66
 
endif
67
 
 
68
 
ifeq ($(MEGACO_EXTENDED_TRACE), true)
69
 
ERL_COMPILE_FLAGS += -Dmegaco_extended_trace
70
 
endif
71
 
 
72
 
ifeq ($(USE_MEGACO_TEST_CODE),true)
73
 
ERL_COMPILE_FLAGS += -DMEGACO_TEST_CODE
74
 
endif
75
 
 
76
 
ifeq ($(MEGACO_DEBUG),true)
77
 
ERL_COMPILE_FLAGS += -Dmegaco_debug
78
 
endif
79
 
 
80
 
ifeq ($(USE_MEGACO_HIPE),true)
81
 
ERL_COMPILE_FLAGS += +native
82
 
endif
83
 
 
84
 
ifeq ($(WARN_UNUSED_WARS),true)
85
 
ERL_COMPILE_FLAGS += +warn_unused_vars
86
 
endif
87
 
 
88
 
ERL_FLAGS += -pa $(ERL_TOP)/lib/et/ebin \
89
 
             -pa $(ERL_TOP)/lib/megaco/ebin
90
 
 
91
 
ERL_COMPILE_FLAGS += -I../../include \
92
 
                     +'{parse_transform,sys_pre_attributes}' \
93
 
                     +'{attribute,insert,app_vsn,$(APP_VSN)}'
 
57
include ../app/megaco.mk
 
58
 
 
59
ERL_FLAGS += $(MEGACO_ERL_FLAGS)
 
60
 
 
61
ERL_COMPILE_FLAGS += -I../../include $(MEGACO_APP_VSN_COMPILE_FLAGS)
94
62
 
95
63
 
96
64
# ----------------------------------------------------
99
67
debug:
100
68
        @${MAKE} TYPE=debug opt
101
69
 
102
 
opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
 
70
opt: $(TARGET_FILES) 
103
71
 
104
72
clean:
105
73
        rm -f $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
113
81
 
114
82
 
115
83
# ----------------------------------------------------
116
 
# Special Build Targets
117
 
# ----------------------------------------------------
118
 
 
119
 
$(APP_TARGET): $(APP_SRC) ../../vsn.mk
120
 
        sed -e 's;%VSN%;$(VSN);' $< > $@
121
 
 
122
 
$(APPUP_TARGET): $(APPUP_SRC) ../../vsn.mk
123
 
        sed -e 's;%VSN%;$(VSN);' $< > $@
124
 
 
125
 
 
126
 
 
127
 
# ----------------------------------------------------
128
84
# Release Target
129
85
# ---------------------------------------------------- 
130
86
include $(ERL_TOP)/make/otp_release_targets.mk
133
89
release_spec: opt
134
90
        $(INSTALL_DIR)  $(RELSYSDIR)/ebin
135
91
        $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
136
 
        $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) $(RELSYSDIR)/ebin
137
92
        $(INSTALL_DIR)  $(RELSYSDIR)/src
138
93
        $(INSTALL_DIR)  $(RELSYSDIR)/src/engine
139
94
        $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(RELSYSDIR)/src/engine
140
95
        $(INSTALL_DIR)  $(RELSYSDIR)/include
141
 
        $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) $(RELSYSDIR)/include
142
96
 
143
97
 
144
98
release_docs_spec: