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

« back to all changes in this revision

Viewing changes to erts/emulator/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# %CopyrightBegin%
3
 
4
 
# Copyright Ericsson AB 1996-2009. All Rights Reserved.
5
 
 
3
#
 
4
# Copyright Ericsson AB 1996-2010. All Rights Reserved.
 
5
#
6
6
# The contents of this file are subject to the Erlang Public License,
7
7
# Version 1.1, (the "License"); you may not use this file except in
8
8
# compliance with the License. You should have received a copy of the
9
9
# Erlang Public License along with this software. If not, it can be
10
10
# retrieved online at http://www.erlang.org/.
11
 
 
11
#
12
12
# Software distributed under the License is distributed on an "AS IS"
13
13
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
# the License for the specific language governing rights and limitations
15
15
# under the License.
16
 
 
16
#
17
17
# %CopyrightEnd%
18
18
#
19
19
 
20
20
include $(ERL_TOP)/make/target.mk
21
21
include ../vsn.mk
 
22
include $(ERL_TOP)/make/$(TARGET)/otp.mk
22
23
 
23
24
ENABLE_ALLOC_TYPE_VARS = @ENABLE_ALLOC_TYPE_VARS@
24
25
HIPE_ENABLED=@HIPE_ENABLED@
166
167
ppcBEAMLDFLAGS=-Wl,-m,elf32ppc
167
168
ppc64BEAMLDFLAGS=-Wl,-m,elf64ppc,-T,hipe/elf64ppc.x
168
169
endif
 
170
ifeq ($(OPSYS),darwin)
 
171
amd64BEAMLDFLAGS=-pagezero_size 0x10000000
 
172
endif
169
173
HIPEBEAMLDFLAGS=$($(ARCH)BEAMLDFLAGS)
170
174
endif
171
175
 
213
217
OPT_LEVEL = -O3
214
218
endif
215
219
 
216
 
ifeq ($(CC), gcc)
 
220
ifeq ($(GCC),yes)
217
221
ifeq ($(NO_INLINE_FUNCTIONS),true)
218
222
GEN_OPT_FLGS = $(OPT_LEVEL) -fno-inline-functions
219
223
else
252
256
                $(subst PURIFY,FAKE_PURIFY, $(TYPE_FLAGS)))
253
257
endif
254
258
CS_CFLAGS_ = $(CS_TYPE_FLAGS) @DEFS@ $(WFLAGS) 
255
 
ifeq ($(CC), gcc)
 
259
ifeq ($(GCC),yes)
256
260
CS_CFLAGS = $(subst -O2, $(GEN_OPT_FLGS) $(UNROLL_FLG), $(CS_CFLAGS_))
257
261
else
258
262
CS_CFLAGS = $(CS_CFLAGS_)
351
355
CS_EXECUTABLE = child_setup$(TYPEMARKER)
352
356
 
353
357
# ----------------------------------------------------------------------
354
 
include $(ERL_TOP)/make/$(TARGET)/otp.mk
355
358
 
356
359
ifeq ($(ERLANG_OSTYPE), unix)
357
360
UNIX_ONLY_BUILDS =      $(BINDIR)/$(CS_EXECUTABLE)
402
405
        $(RM) -f $(TARGET)/*/*/*.c $(TARGET)/*/*/*.h $(TARGET)/*/*/*.S
403
406
        $(RM) -f $(ERL_TOP)/erts/emulator/obj/$(TARGET)/*/*/*.o
404
407
        $(RM) -f $(BINDIR)/beam $(BINDIR)/beam.*
405
 
        $(RM) -f $(BINDIR)/child_setup $(BINDIR)/child_setup.*
 
408
        $(RM) -rf $(BINDIR)/child_setup $(BINDIR)/child_setup.*
406
409
        $(RM) -f $(BINDIR)/hipe_mkliterals $(BINDIR)/hipe_mkliterals.*
407
410
        @set -e ; cd zlib && $(MAKE) clean
408
411
        @set -e ; cd pcre && $(MAKE) clean
416
419
 
417
420
RELSYSDIR = $(RELEASE_PATH)/erts-$(VSN)
418
421
 
419
 
RELEASE_INCLUDES = beam/erl_driver.h sys/$(ERLANG_OSTYPE)/driver_int.h beam/erl_nif.h beam/erl_nif_api_funcs.h
 
422
RELEASE_INCLUDES = beam/erl_driver.h sys/$(ERLANG_OSTYPE)/driver_int.h beam/erl_nif.h beam/erl_nif_api_funcs.h beam/erl_drv_nif.h
420
423
ifeq ($(TARGET),win32)
421
424
RELEASE_INCLUDES += sys/$(ERLANG_OSTYPE)/erl_win_dyn_driver.h
422
425
endif
606
609
 
607
610
ifneq ($(filter tile-%,$(TARGET)),)
608
611
$(OBJDIR)/beam_emu.o: beam/beam_emu.c
609
 
       $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) \
 
612
        $(CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) \
610
613
         -OPT:Olimit=0 -WOPT:lpre=off:spre=off:epre=off \
611
614
         $(INCLUDES) -c $< -o $@
612
615
endif
692
695
$(OBJDIR)/%.nkp.o: sys/common/%.c
693
696
        $(CC) -DERTS_NO_KERNEL_POLL_VERSION $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@
694
697
 
695
 
ifeq ($(CC), gcc)
 
698
ifeq ($(GCC),yes)
696
699
 
697
700
$(OBJDIR)/erl_obsolete.o: beam/erl_obsolete.c
698
701
        $(CC) $(subst -Wstrict-prototypes, , $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS))) $(INCLUDES) -c $< -o $@
1086
1089
# SYS_SRC=$(subst sys/common/erl_poll.c,,$(ALL_SYS_SRC))
1087
1090
 
1088
1091
else # !win32
 
1092
 
 
1093
ifeq ($(findstring tile,$(TARGET)),tile)
 
1094
# tile-gcc doesn't like -MG
 
1095
MG_FLAG=
 
1096
else
 
1097
MG_FLAG=-MG
 
1098
endif
 
1099
 
1089
1100
DEP_CC=$(CC)
1090
 
DEP_FLAGS=-MM -MG $(CFLAGS) $(INCLUDES) -Idrivers/common
 
1101
DEP_FLAGS=-MM $(MG_FLAG) $(CFLAGS) $(INCLUDES) -Idrivers/common
1091
1102
SYS_SRC=$(ALL_SYS_SRC)
1092
1103
endif
1093
1104