xref: /aoo41x/ext_libraries/serf/makefile.mk (revision f4d5be35)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22PRJ=.
23
24PRJNAME=serf
25TARGET=so_serf
26
27# --- Settings -----------------------------------------------------
28
29.INCLUDE :	settings.mk
30.INCLUDE :	serf_version.mk
31
32# --- Files --------------------------------------------------------
33
34# Assemble the full version number from the parts defined in serf_version.mk
35LIBSERFVERSION=$(SERF_MAJOR).$(SERF_MINOR).$(SERF_MICRO)
36
37TARFILE_NAME=$(PRJNAME)-$(LIBSERFVERSION)
38TARFILE_MD5=3b179ed18f65c43141528aa6d2440db4
39
40# disable default used Transfer-Encoding = chunked for sending requests.
41PATCH_FILES=$(TARFILE_NAME).nochunkedtransferencoding.patch
42
43.IF "$(OS)"=="WNT"
44
45ADDITIONAL_FILES=Makefile Module_serf.mk Library_serf.mk Package_inc.mk
46
47PATCH_FILES+=$(TARFILE_NAME).makewin32.patch
48
49CONFIGURE_DIR=
50CONFIGURE_ACTION=
51CONFIGURE_FLAGS=
52
53BUILD_DIR=$(CONFIGURE_DIR)
54BUILD_ACTION=$(GNUMAKE)
55BUILD_FLAGS+= -j$(EXTMAXPROCESS)
56
57.ELSE
58
59.IF "$(OS)"=="MACOSX" || "$(OS)"=="FREEBSD"
60# Do not link against expat.  It is not necessary (apr-util is already linked against it)
61# and does not work (we use a different expat library schema.)
62PATCH_FILES+=$(TARFILE_NAME).mac.patch
63.ELSE
64# Add -ldl as last library so that the linker has no trouble resolving dependencies.
65PATCH_FILES+=$(TARFILE_NAME).ldl.patch
66.ENDIF
67
68CONFIGURE_DIR=
69CONFIGURE_ACTION=autoconf && .$/configure
70.IF "$(OS)"=="MACOSX"
71# On Mac we need the content of CDEFS in CFLAGS so that the ssl headers are searched for
72# in a directory that corresponds to the directory that is searched for the ssl library.
73CONFIGURE_FLAGS='CFLAGS=$(CDEFS)'
74.ENDIF
75
76BUILD_DIR=$(CONFIGURE_DIR)
77BUILD_ACTION=$(GNUMAKE)
78BUILD_FLAGS+= -j$(EXTMAXPROCESS)
79
80OUT2INC+=serf*.h
81OUT2INC_SUBDIR=serf
82
83.IF "$(OS)"=="MACOSX"
84OUT2LIB+=.libs/libserf-1.*dylib
85.ELSE
86OUT2LIB=.libs/libserf-1.so*
87.ENDIF
88
89.ENDIF
90
91# --- Targets ------------------------------------------------------
92
93.INCLUDE : set_ext.mk
94.INCLUDE : target.mk
95.INCLUDE : tg_ext.mk
96