23
29
# ----------------------------------------------------
25
31
# Include erts/system/vsn.mk to port number for EPMD -- we will
26
# get an unwanted definiton for VSN too. Therefore,
32
# get an unwanted definition for VSN too. Therefore,
27
33
# we'll use KERNEL_VSN directly instead of assigning it to
28
# VSN which is done in other Makefiles.
34
# VSN which is done in other Makefiles. Same with HIPE_VSN.
31
37
include $(ERL_TOP)/erts/vsn.mk
38
include $(ERL_TOP)/lib/hipe/vsn.mk
33
40
include $(ERL_TOP)/erts/epmd/epmd.mk
132
125
HRL_FILES= ../include/file.hrl ../include/inet.hrl
133
126
INTERNAL_HRL_FILES= application_master.hrl disk_log.hrl \
134
127
net_address.hrl inet_dns.hrl inet_res.hrl \
135
socks5.hrl inet_boot.hrl inet_config.hrl inet_int.hrl \
128
inet_boot.hrl inet_config.hrl inet_int.hrl \
136
129
dist.hrl dist_util.hrl
138
ERL_FILES= $(PRE_LOADED_MODULES:%=%.erl) $(MODULES:%=%.erl) $(HIPE_MODULES:%=%.erl)
131
ERL_FILES= $(PRE_LOADED_MODULES:%=%.erl) $(MODULES:%=%.erl)
140
133
NON_PRECIOUS_TARGETS = $(MODULES:%=$(EBIN)/%.$(EMULATOR)) \
141
$(HIPE_MODULES:%=$(EBIN)/%.$(EMULATOR)) \
142
134
$(APP_TARGET) $(APPUP_TARGET)
144
136
TARGET_FILES = $(PRE_LOADED_MODULES:%=$(EBIN)/%.$(EMULATOR)) $(NON_PRECIOUS_TARGETS)
146
138
APP_FILE= kernel.app
148
140
APP_SRC= $(APP_FILE).src
149
APP_TARGET= ../ebin/$(APP_FILE)
141
APP_TARGET= $(EBIN)/$(APP_FILE)
151
143
APPUP_FILE= kernel.appup
153
145
APPUP_SRC= $(APPUP_FILE).src
154
APPUP_TARGET= ../ebin/$(APPUP_FILE)
146
APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
156
148
# ----------------------------------------------------
179
171
# Special Build Targets
180
172
# ----------------------------------------------------
182
$(EBIN)/hipe_sparc_loader.$(EMULATOR): hipe_sparc_loader.erl
183
$(ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) \
184
-I../../hipe/main -I../../hipe/rtl -I../../hipe/sparc $<
174
../../hipe/main/hipe.hrl: ../../hipe/vsn.mk ../../hipe/main/hipe.hrl.src
175
sed -e "s;%VSN%;$(HIPE_VSN);" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl
187
177
$(APP_TARGET): $(APP_SRC) ../vsn.mk
188
178
sed -e 's;%VSN%;$(KERNEL_VSN);' $< > $@
190
$(APP_TARGET): $(APP_SRC) ../vsn.mk
191
sed -e 's;%VSN%;$(KERNEL_VSN);' -e '/hipe/d' $< > $@
194
180
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
195
181
sed -e 's;%VSN%;$(KERNEL_VSN);' $< > $@
205
191
$(ERLC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) $(EPMD_FLAGS) \
209
HIPE_MKLITERALS=$(ERL_TOP)/bin/$(TARGET)/hipe_mkliterals
212
cd $(ERL_TOP)/erts/emulator \
213
&& $(MAKE) generate ERL_TOP=$(ERL_TOP) TYPE=$(TYPE)
215
../../hipe/rtl/hipe_literals.hrl: $(HIPE_MKLITERALS)
216
$(HIPE_MKLITERALS) -e > $@
218
$(EBIN)/hipe_unified_loader.beam: ../../hipe/main/hipe.hrl hipe_ext_format.hrl
219
$(EBIN)/hipe_sparc_loader.beam: ../../hipe/main/hipe.hrl
220
$(EBIN)/hipe_x86_loader.beam: ../../hipe/rtl/hipe_literals.hrl ../../hipe/main/hipe.hrl
223
194
# ----------------------------------------------------
225
196
# ----------------------------------------------------
237
208
release_docs_spec:
212
@echo $(PRE_LOADED_MODULES)
214
# Include dependencies -- list below added by Kostis Sagonas
215
$(EBIN)/application_controller.beam: application_master.hrl
216
$(EBIN)/application_master.beam: application_master.hrl
217
$(EBIN)/auth.beam: ../include/file.hrl
218
$(EBIN)/code.beam: ../include/file.hrl
219
$(EBIN)/code_server.beam: ../include/file.hrl
220
$(EBIN)/disk_log.beam: disk_log.hrl
221
$(EBIN)/disk_log_1.beam: disk_log.hrl ../include/file.hrl
222
$(EBIN)/disk_log_server.beam: disk_log.hrl
223
$(EBIN)/dist_util.beam: dist_util.hrl dist.hrl
224
$(EBIN)/erl_boot_server.beam: inet_boot.hrl
225
$(EBIN)/erl_epmd.beam: inet_int.hrl erl_epmd.hrl
226
$(EBIN)/erl_prim_loader.beam: inet_boot.hrl
227
$(EBIN)/file.beam: ../include/file.hrl
228
$(EBIN)/gen_tcp.beam: inet_int.hrl
229
$(EBIN)/gen_udp.beam: inet_int.hrl
230
$(EBIN)/global.beam: ../../stdlib/include/ms_transform.hrl
231
$(EBIN)/hipe_unified_loader.beam: ../../hipe/main/hipe.hrl hipe_ext_format.hrl
232
$(EBIN)/inet.beam: ../include/inet.hrl inet_int.hrl
233
$(EBIN)/inet6_tcp.beam: inet_int.hrl
234
$(EBIN)/inet6_tcp_dist.beam: net_address.hrl dist.hrl dist_util.hrl
235
$(EBIN)/inet6_udp.beam: inet_int.hrl
236
$(EBIN)/inet_config.beam: inet_config.hrl ../include/inet.hrl
237
$(EBIN)/inet_db.beam: ../include/inet.hrl inet_int.hrl inet_res.hrl inet_dns.hrl inet_config.hrl
238
$(EBIN)/inet_dns.beam: inet_int.hrl inet_dns.hrl
239
$(EBIN)/inet_gethost_native.beam: ../include/inet.hrl
240
$(EBIN)/inet_hosts.beam: ../include/inet.hrl
241
$(EBIN)/inet_parse.beam: ../include/file.hrl
242
$(EBIN)/inet_res.beam: ../include/inet.hrl inet_res.hrl inet_dns.hrl inet_int.hrl
243
$(EBIN)/inet_tcp.beam: inet_int.hrl
244
$(EBIN)/inet_udp_dist.beam: net_address.hrl dist.hrl dist_util.hrl
245
$(EBIN)/inet_udp.beam: inet_int.hrl
246
$(EBIN)/net_kernel.beam: net_address.hrl
247
$(EBIN)/os.beam: ../include/file.hrl
248
$(EBIN)/prim_file.beam: ../include/file.hrl
249
$(EBIN)/prim_inet.beam: inet_int.hrl
250
$(EBIN)/ram_file.beam: ../include/file.hrl
251
$(EBIN)/wrap_log_reader.beam: disk_log.hrl ../include/file.hrl