~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/kernel/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
16
16
#     $Id$
17
17
#
 
18
 
 
19
ifdef BOOTSTRAP
 
20
EGEN=$(BOOTSTRAP_TOP)/lib/kernel/egen
 
21
EBIN=$(BOOTSTRAP_TOP)/lib/kernel/ebin
 
22
endif
 
23
 
18
24
include $(ERL_TOP)/make/target.mk
19
25
include $(ERL_TOP)/make/$(TARGET)/otp.mk
20
26
 
23
29
# ----------------------------------------------------
24
30
 
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.
29
35
 
30
36
include ../vsn.mk
31
37
include $(ERL_TOP)/erts/vsn.mk
 
38
include $(ERL_TOP)/lib/hipe/vsn.mk
32
39
 
33
40
include $(ERL_TOP)/erts/epmd/epmd.mk
34
41
 
50
57
        otp_ring0 \
51
58
        erlang
52
59
 
53
 
ifndef HIPE_ENABLED
54
 
HIPE_MODULES =
55
 
else
56
 
HIPE_MODULES = \
57
 
        hipe_sparc_loader \
58
 
        hipe_x86_loader \
59
 
        hipe_unified_loader \
60
 
        hipe_pack_constants
61
 
endif
62
 
 
63
60
MODULES = \
64
61
        application \
65
62
        application_controller \
86
83
        file \
87
84
        file_io_server \
88
85
        file_server \
89
 
        old_file_server \
90
86
        gen_tcp \
91
87
        gen_udp \
92
88
        global \
94
90
        global_search \
95
91
        group \
96
92
        heart \
 
93
        hipe_unified_loader \
97
94
        inet \
98
95
        inet6_tcp \
99
96
        inet6_tcp_dist \
119
116
        ram_file \
120
117
        rpc \
121
118
        seq_trace \
122
 
        socks5 \
123
 
        socks5_auth \
124
 
        socks5_tcp \
125
 
        socks5_udp \
126
119
        user \
127
120
        user_drv \
128
121
        user_sup \
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
137
130
 
138
 
ERL_FILES= $(PRE_LOADED_MODULES:%=%.erl) $(MODULES:%=%.erl) $(HIPE_MODULES:%=%.erl)
 
131
ERL_FILES= $(PRE_LOADED_MODULES:%=%.erl) $(MODULES:%=%.erl)
139
132
 
140
133
NON_PRECIOUS_TARGETS = $(MODULES:%=$(EBIN)/%.$(EMULATOR)) \
141
 
                       $(HIPE_MODULES:%=$(EBIN)/%.$(EMULATOR)) \
142
134
                       $(APP_TARGET) $(APPUP_TARGET)
143
135
 
144
136
TARGET_FILES = $(PRE_LOADED_MODULES:%=$(EBIN)/%.$(EMULATOR)) $(NON_PRECIOUS_TARGETS)
146
138
APP_FILE= kernel.app
147
139
 
148
140
APP_SRC= $(APP_FILE).src
149
 
APP_TARGET= ../ebin/$(APP_FILE)
 
141
APP_TARGET= $(EBIN)/$(APP_FILE)
150
142
 
151
143
APPUP_FILE= kernel.appup
152
144
 
153
145
APPUP_SRC= $(APPUP_FILE).src
154
 
APPUP_TARGET= ../ebin/$(APPUP_FILE)
 
146
APPUP_TARGET= $(EBIN)/$(APPUP_FILE)
155
147
 
156
148
# ----------------------------------------------------
157
149
# FLAGS
179
171
# Special Build Targets
180
172
# ----------------------------------------------------
181
173
 
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
185
176
 
186
 
ifdef HIPE_ENABLED
187
177
$(APP_TARGET): $(APP_SRC) ../vsn.mk
188
178
        sed -e 's;%VSN%;$(KERNEL_VSN);' $< > $@
189
 
else
190
 
$(APP_TARGET): $(APP_SRC) ../vsn.mk
191
 
        sed -e 's;%VSN%;$(KERNEL_VSN);' -e '/hipe/d' $< > $@
192
 
endif
193
179
 
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) \
206
192
                -o$(EBIN) $<
207
193
 
208
 
ifdef HIPE_ENABLED
209
 
HIPE_MKLITERALS=$(ERL_TOP)/bin/$(TARGET)/hipe_mkliterals
210
 
 
211
 
$(HIPE_MKLITERALS):
212
 
        cd $(ERL_TOP)/erts/emulator \
213
 
          && $(MAKE) generate ERL_TOP=$(ERL_TOP) TYPE=$(TYPE)
214
 
 
215
 
../../hipe/rtl/hipe_literals.hrl: $(HIPE_MKLITERALS)
216
 
        $(HIPE_MKLITERALS) -e > $@
217
 
 
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
221
 
endif
222
 
 
223
194
# ----------------------------------------------------
224
195
# Release Target
225
196
# ---------------------------------------------------- 
237
208
release_docs_spec:
238
209
 
239
210
 
 
211
list_preloaded:
 
212
        @echo $(PRE_LOADED_MODULES)
 
213
 
 
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