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

« back to all changes in this revision

Viewing changes to lib/inets/test/rules.mk

  • 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:
1
 
#-*-makefile-*-   ; force emacs to enter makefile-mode
2
 
# ----------------------------------------------------
3
 
# Make include file for otp
4
 
#
5
 
# Copyright (C) 1996, Ericsson Telecommunications
6
 
# Author: Lars Thorsen
7
 
# ----------------------------------------------------
8
 
.SUFFIXES: .hrl .erl .jam .beam 
9
 
 
10
 
 
11
 
# ----------------------------------------------------
12
 
#       Common macros
13
 
# ----------------------------------------------------
14
 
DEFAULT_TARGETS =  opt debug instr release release_docs clean docs
15
 
 
16
 
# ----------------------------------------------------
17
 
#       Erlang language section
18
 
# ----------------------------------------------------
19
 
EMULATOR = beam
20
 
ifeq ($(findstring vxworks,$(TARGET)),vxworks)
21
 
# VxWorks object files should be compressed.
22
 
# Other object files should have debug_info.
23
 
ERL_COMPILE_FLAGS += +compressed
24
 
else
25
 
ifdef BOOTSTRAP
26
 
ERL_COMPILE_FLAGS += +slim
27
 
else
28
 
ERL_COMPILE_FLAGS += +debug_info
29
 
endif
30
 
endif
31
 
ERLC_WFLAGS = -W
32
 
ERLC = erlc $(ERLC_WFLAGS) $(ERLC_FLAGS)
33
 
ERL.beam =  erl.beam -boot start_clean
34
 
ERL.jam = erl -boot start_clean
35
 
ERL = $(ERL.$(EMULATOR))
36
 
 
37
 
ifeq ($(EBIN),)
38
 
EBIN = .
39
 
endif
40
 
 
41
 
ESRC = .
42
 
 
43
 
 
44
 
$(EBIN)/%.jam: $(ESRC)/%.erl
45
 
        $(ERLC) -bjam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
46
 
 
47
 
$(EBIN)/%.beam: $(ESRC)/%.erl
48
 
        $(ERLC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<
49
 
 
50
 
.erl.jam:
51
 
        $(ERLC) -bjam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(dir $@) $<
52
 
 
53
 
.erl.beam:
54
 
        $(ERLC) -bbeam $(ERL_FLAGS) $(ERL_COMPILE_FLAGS) -o$(dir $@) $<
55
 
 
56
 
 
57
 
 
58
 
 
59