~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/percept/c_src/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-01 10:14:38 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090501101438-6qlr6rsdxgyzrg2z
Tags: 1:13.b-dfsg-2
* Cleaned up patches: removed unneeded patch which helped to support
  different SCTP library versions, made sure that changes for m68k
  architecture applied only when building on this architecture.
* Removed duplicated information from binary packages descriptions.
* Don't require libsctp-dev build-dependency on solaris-i386 architecture
  which allows to build Erlang on Nexenta (thanks to Tim Spriggs for
  the suggestion).

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
 
include $(ERL_TOP)/make/target.mk
19
 
include $(ERL_TOP)/make/$(TARGET)/otp.mk
20
 
 
21
 
# ----------------------------------------------------
22
 
# Application version
23
 
# ----------------------------------------------------
24
 
include ../vsn.mk
25
 
VSN=$(PERCEPT_VSN)
26
 
 
27
 
# ----------------------------------------------------
28
 
# The following variables differ on different systems, we set
29
 
# reasonable defaults, if something different is needed it should
30
 
# be set for that system only.
31
 
# ----------------------------------------------------
32
 
CC = @CC@
33
 
CFLAGS = @DED_CFLAGS@
34
 
LD = @DED_LD@
35
 
SHELL = /bin/sh
36
 
LIBS = @LIBS@
37
 
LDFLAGS = @DED_LDFLAGS@
38
 
ERLANG_OSTYPE = @ERLANG_OSTYPE@
39
 
 
40
 
### GD
41
 
GD_INCLUDE= @GD_INCLUDE@
42
 
GD_LIBDIR = @GD_LIB@
43
 
CC_R_FLAG = @DED_LD_FLAG_RUNTIME_LIBRARY_PATH@
44
 
GD_LINK_LIB=-L$(GD_LIBDIR) -lgd
45
 
CC_R_OPT = $(CC_R_FLAG)$(GD_LIBDIR)
46
 
 
47
 
SYSINCLUDE =    -I$(ERL_TOP)/erts/emulator/beam \
48
 
                -I$(ERL_TOP)/erts/emulator/sys/$(ERLANG_OSTYPE) \
49
 
                -I$(ERL_TOP)/erts/include/internal \
50
 
                -I$(ERL_TOP)/erts/include/internal/$(ERLANG_OSTYPE) \
51
 
                -I$(ERL_TOP)/erts/include \
52
 
                -I$(ERL_TOP)/erts/include/$(ERLANG_OSTYPE)
53
 
ifeq ($(findstring vxworks,$(TARGET)),vxworks)
54
 
        SYSINCLUDE += -I$(ERL_TOP)/erts/etc/vxworks
55
 
endif
56
 
 
57
 
EGD_DRV_INCLUDES = $(SYSINCLUDE)
58
 
 
59
 
ALL_CFLAGS = $(CFLAGS) @DEFS@ $(TYPE_FLAGS) $(EGD_DRV_INCLUDES)
60
 
 
61
 
 
62
 
ifeq ($(TYPE),debug)
63
 
TYPEMARKER = .debug
64
 
TYPE_FLAGS = -g -DDEBUG @DEBUG_FLAGS@
65
 
else
66
 
TYPEMARKER =
67
 
TYPE_FLAGS = -O2
68
 
endif
69
 
 
70
 
ROOTDIR = $(ERL_TOP)/lib
71
 
PRIVDIR = ../priv
72
 
LIBDIR = $(PRIVDIR)/lib/$(TARGET)
73
 
OBJDIR = $(PRIVDIR)/obj/$(TARGET)
74
 
 
75
 
# ----------------------------------------------------
76
 
# Release directory specification
77
 
# ----------------------------------------------------
78
 
RELSYSDIR = $(RELEASE_PATH)/lib/percept-$(VSN)
79
 
 
80
 
# ----------------------------------------------------
81
 
# Misc Macros
82
 
# ----------------------------------------------------
83
 
 
84
 
EGD_DRV_OBJS = \
85
 
        $(OBJDIR)/egd_port_driver.o \
86
 
        $(OBJDIR)/egd_image.o \
87
 
        $(OBJDIR)/egd_coding.o 
88
 
 
89
 
 
90
 
ifeq ($(findstring win32,$(TARGET)), win32)
91
 
SOLIBS = $(LIBDIR)/egd_drv.dll
92
 
LN=cp
93
 
else
94
 
ifeq ($(findstring vxworks,$(TARGET)),vxworks)
95
 
SOLIBS = $(LIBDIR)/egd_drv.eld
96
 
else
97
 
SOLIBS = $(LIBDIR)/egd_drv.so
98
 
endif
99
 
endif
100
 
 
101
 
 
102
 
# ----------------------------------------------------
103
 
# Targets
104
 
# ----------------------------------------------------
105
 
 
106
 
debug opt: $(OBJDIR) $(BINDIR) $(SOLIBS)
107
 
 
108
 
$(OBJDIR):
109
 
        -@mkdir -p $(OBJDIR)
110
 
 
111
 
$(BINDIR):
112
 
        -@mkdir -p $(BINDIR)
113
 
 
114
 
$(OBJDIR)/%.o: %.c
115
 
        $(INSTALL_DIR) $(OBJDIR)
116
 
        $(CC) -c -o $@ $(ALL_CFLAGS) $(GD_INCLUDE) $<
117
 
 
118
 
$(LIBDIR)/egd_drv.so: $(EGD_DRV_OBJS)
119
 
        $(INSTALL_DIR) $(LIBDIR)
120
 
        $(LD) $(CC_R_OPT) $(LDFLAGS) -o $@ $^ $(LIBS) $(GD_LINK_LIB)
121
 
 
122
 
$(LIBDIR)/egd_drv.dll: $(EGD_DRV_OBJS)
123
 
        $(INSTALL_DIR) $(LIBDIR)
124
 
        $(LD) $(CC_R_OPT) $(LDFLAGS) -o $@ $^ $(LIBS) $(GD_LINK_LIB)
125
 
#
126
 
# VxWorks is simply to different from Unix in this sense.
127
 
# Here are the inference rules for VxWorks
128
 
#
129
 
$(LIBDIR)/egd_drv.eld: $(EGD_DRV_OBJS)
130
 
        $(INSTALL_DIR) $(LIBDIR)
131
 
        $(LD) $(CC_R_OPT) $(LDFLAGS) -o $@ $^ $(LIBS) $(GD_LINK_LIB)
132
 
 
133
 
clean:
134
 
        rm -f $(SOLIBS) $(EGD_DRV_OBJS) $(EGD_DRV_OBJS)
135
 
        rm -f core *~
136
 
 
137
 
docs:
138
 
 
139
 
# ----------------------------------------------------
140
 
# Release Target
141
 
# ---------------------------------------------------- 
142
 
include $(ERL_TOP)/make/otp_release_targets.mk
143
 
 
144
 
release_spec: opt
145
 
        $(INSTALL_DIR) $(RELSYSDIR)/priv/lib
146
 
        $(INSTALL_PROGRAM) $(SOLIBS) $(RELSYSDIR)/priv/lib
147
 
 
148
 
release_docs_spec:
149