1#
2# %CopyrightBegin%
3#
4# Copyright Ericsson AB 1997-2016. All Rights Reserved.
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10#     http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# %CopyrightEnd%
19#
20include $(ERL_TOP)/make/target.mk
21include $(ERL_TOP)/make/$(TARGET)/otp.mk
22
23# ----------------------------------------------------
24# Application version
25# ----------------------------------------------------
26include ../vsn.mk
27VSN=$(DEBUGGER_VSN)
28
29# ----------------------------------------------------
30# Release directory specification
31# ----------------------------------------------------
32RELSYSDIR = $(RELEASE_PATH)/lib/debugger-$(VSN)
33
34# ----------------------------------------------------
35# Common Macros
36# ----------------------------------------------------
37
38MODULES= \
39	debugger \
40	i \
41	int \
42	dbg_debugged \
43	dbg_icmd \
44	dbg_idb \
45	dbg_ieval \
46	dbg_iload \
47	dbg_iserver \
48	dbg_istk \
49	dbg_wx_break \
50	dbg_wx_break_win \
51	dbg_wx_code \
52	dbg_wx_filedialog_win \
53	dbg_wx_interpret \
54	dbg_wx_mon \
55	dbg_wx_mon_win \
56	dbg_wx_settings \
57	dbg_wx_src_view \
58	dbg_wx_trace \
59	dbg_wx_trace_win \
60	dbg_wx_view \
61	dbg_wx_win \
62	dbg_wx_winman
63
64
65HRL_FILES=
66
67INTERNAL_HRL_FILES= dbg_ieval.hrl dbg_wx_filedialog_win.hrl
68
69ERL_FILES= $(MODULES:%=%.erl)
70
71TARGET_FILES = $(MODULES:%=$(EBIN)/%.$(EMULATOR)) $(APP_TARGET) $(APPUP_TARGET)
72
73#TOOLBOX_FILES= debugger.tool debugger.gif
74#TARGET_TOOLBOX_FILES= $(EBIN)/debugger.tool $(EBIN)/debugger.gif
75
76APP_FILE =  debugger.app
77APPUP_FILE = debugger.appup
78
79APP_SRC = $(APP_FILE).src
80APPUP_SRC = $(APPUP_FILE).src
81
82APP_TARGET = $(EBIN)/$(APP_FILE)
83APPUP_TARGET = $(EBIN)/$(APPUP_FILE)
84
85# ----------------------------------------------------
86# FLAGS
87# ----------------------------------------------------
88ERL_COMPILE_FLAGS += -Werror
89
90
91# ----------------------------------------------------
92# Targets
93# ----------------------------------------------------
94
95debug opt: $(TARGET_FILES) $(TARGET_TOOLBOX_FILES)
96
97clean:
98	rm -f $(TARGET_FILES) $(TARGET_TOOLBOX_FILES)
99	rm -f errs core *~
100
101$(APP_TARGET): $(APP_SRC) ../vsn.mk
102	$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
103
104$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
105	$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
106
107docs:
108
109# ----------------------------------------------------
110# Special Targets
111# ----------------------------------------------------
112
113# ----------------------------------------------------
114# Release Target
115# ----------------------------------------------------
116include $(ERL_TOP)/make/otp_release_targets.mk
117
118release_spec: opt
119	$(INSTALL_DIR) "$(RELSYSDIR)/src"
120	$(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src"
121	$(INSTALL_DIR) "$(RELSYSDIR)/ebin"
122	$(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin"
123
124release_docs_spec:
125