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

« back to all changes in this revision

Viewing changes to lib/inets/src/http_lib/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:
 
1
# ``The contents of this file are subject to the Erlang Public License,
 
2
# Version 1.1, (the "License"); you may not use this file except in
 
3
# compliance with the License. You should have received a copy of the
 
4
# Erlang Public License along with this software. If not, it can be
 
5
# retrieved via the world wide web at http://www.erlang.org/.
 
6
 
7
# Software distributed under the License is distributed on an "AS IS"
 
8
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
9
# the License for the specific language governing rights and limitations
 
10
# under the License.
 
11
 
12
# The Initial Developer of the Original Code is Ericsson Utvecklings AB.
 
13
# Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
 
14
# AB. All Rights Reserved.''
 
15
 
16
#     $Id$
 
17
#
 
18
 
 
19
include $(ERL_TOP)/make/target.mk
 
20
EBIN = ../../ebin
 
21
include $(ERL_TOP)/make/$(TARGET)/otp.mk
 
22
 
 
23
# ----------------------------------------------------
 
24
# Application version
 
25
# ----------------------------------------------------
 
26
include ../../vsn.mk
 
27
 
 
28
VSN     = $(INETS_VSN)
 
29
APP_VSN = "inets-$(VSN)"
 
30
# ----------------------------------------------------
 
31
# Release directory specification
 
32
# ----------------------------------------------------
 
33
RELSYSDIR = $(RELEASE_PATH)/lib/inets-$(VSN)
 
34
 
 
35
# ----------------------------------------------------
 
36
# Target Specs
 
37
# ----------------------------------------------------
 
38
MODULES = \
 
39
        http_base_64 \
 
40
        http_chunk \
 
41
        http_transport\
 
42
        http_util \
 
43
        http_request \
 
44
        http_response
 
45
 
 
46
HRL_FILES = http_internal.hrl
 
47
 
 
48
ERL_FILES = $(MODULES:%=%.erl)
 
49
 
 
50
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) 
 
51
 
 
52
# ----------------------------------------------------
 
53
# INETS FLAGS
 
54
# ----------------------------------------------------
 
55
INETS_FLAGS = -D'SERVER_SOFTWARE="inets/$(VSN)"' \
 
56
 
 
57
# ----------------------------------------------------
 
58
# FLAGS
 
59
# ----------------------------------------------------
 
60
ERL_FLAGS +=  -I ../inets_app
 
61
 
 
62
ifeq ($(WARN_UNUSED_WARS),true)
 
63
ERL_COMPILE_FLAGS += +warn_unused_vars
 
64
endif
 
65
 
 
66
ERL_COMPILE_FLAGS += $(INETS_FLAGS) \
 
67
                     +'{parse_transform,sys_pre_attributes}' \
 
68
                     +'{attribute,insert,app_vsn,$(APP_VSN)}'
 
69
 
 
70
 
 
71
# ----------------------------------------------------
 
72
# Targets
 
73
# ----------------------------------------------------
 
74
 
 
75
debug opt: $(TARGET_FILES)
 
76
 
 
77
clean:
 
78
        rm -f $(TARGET_FILES)
 
79
        rm -f core
 
80
 
 
81
docs:
 
82
 
 
83
# ----------------------------------------------------
 
84
# Release Target
 
85
# ---------------------------------------------------- 
 
86
include $(ERL_TOP)/make/otp_release_targets.mk
 
87
 
 
88
release_spec: opt
 
89
        $(INSTALL_DIR) $(RELSYSDIR)/src
 
90
        $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) $(RELSYSDIR)/src
 
91
        $(INSTALL_DIR) $(RELSYSDIR)/ebin
 
92
        $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin
 
93
 
 
94
release_docs_spec:
 
95
 
 
96
info:
 
97
        @echo "INETS_DEBUG       = $(INETS_DEBUG)"
 
98
        @echo "INETS_FLAGS       = $(INETS_FLAGS)"
 
99
        @echo "ERL_COMPILE_FLAGS = $(ERL_COMPILE_FLAGS)"