~ubuntu-branches/ubuntu/quantal/curl/quantal

« back to all changes in this revision

Viewing changes to .pc/99_nss.patch/src/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-05-28 12:21:13 UTC
  • mfrom: (3.4.29 sid)
  • Revision ID: package-import@ubuntu.com-20120528122113-i5f42lajprljoudn
Tags: 7.26.0-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Adjust udeb configure flags handling to something easier to merge in
  future.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#***************************************************************************
 
2
#                                  _   _ ____  _
 
3
#  Project                     ___| | | |  _ \| |
 
4
#                             / __| | | | |_) | |
 
5
#                            | (__| |_| |  _ <| |___
 
6
#                             \___|\___/|_| \_\_____|
 
7
#
 
8
# Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
 
9
#
 
10
# This software is licensed as described in the file COPYING, which
 
11
# you should have received as part of this distribution. The terms
 
12
# are also available at http://curl.haxx.se/docs/copyright.html.
 
13
#
 
14
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
 
15
# copies of the Software, and permit persons to whom the Software is
 
16
# furnished to do so, under the terms of the COPYING file.
 
17
#
 
18
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
19
# KIND, either express or implied.
 
20
#
 
21
###########################################################################
 
22
AUTOMAKE_OPTIONS = foreign nostdinc
 
23
 
 
24
# Specify our include paths here, and do it relative to $(top_srcdir) and
 
25
# $(top_builddir), to ensure that these paths which belong to the library
 
26
# being currently built and tested are searched before the library which
 
27
# might possibly already be installed in the system.
 
28
#
 
29
# $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
 
30
# $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
 
31
# $(top_srcdir)/include is for libcurl's external include files
 
32
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
 
33
# $(top_builddir)/src is for curl's generated src/curl_config.h file
 
34
# $(top_srcdir)/lib is for libcurl's lib/setup.h and other "borrowed" files
 
35
# $(top_srcdir)/src is for curl's src/tool_setup.h and "curl-private" files
 
36
 
 
37
INCLUDES = -I$(top_builddir)/include/curl \
 
38
           -I$(top_builddir)/include      \
 
39
           -I$(top_srcdir)/include        \
 
40
           -I$(top_builddir)/lib          \
 
41
           -I$(top_builddir)/src          \
 
42
           -I$(top_srcdir)/lib            \
 
43
           -I$(top_srcdir)/src
 
44
 
 
45
bin_PROGRAMS = curl
 
46
 
 
47
# Mostly for Windows build targets, when using static libcurl
 
48
if USE_CPPFLAG_CURL_STATICLIB
 
49
AM_CPPFLAGS = -DCURL_STATICLIB
 
50
endif
 
51
 
 
52
include Makefile.inc
 
53
 
 
54
# This might hold -Werror
 
55
CFLAGS += @CURL_CFLAG_EXTRAS@
 
56
 
 
57
curl_LDADD = $(top_builddir)/lib/libcurl-gnutls.la @CURL_LIBS@
 
58
curl_DEPENDENCIES = $(top_builddir)/lib/libcurl-gnutls.la
 
59
BUILT_SOURCES = hugehelp.c
 
60
CLEANFILES = hugehelp.c
 
61
# Use the C locale to ensure that only ASCII characters appear in the
 
62
# embedded text.
 
63
NROFF=env LC_ALL=C @NROFF@ @MANOPT@ # figured out by the configure script
 
64
 
 
65
EXTRA_DIST = mkhelp.pl makefile.dj Makefile.vc6 Makefile.b32 Makefile.m32 \
 
66
        macos/curl.mcp.xml.sit.hqx                                        \
 
67
        macos/MACINSTALL.TXT macos/src/curl_GUSIConfig.cpp vc6curlsrc.dsp \
 
68
        macos/src/macos_main.cpp makefile.amiga curl.rc                   \
 
69
        Makefile.netware Makefile.inc Makefile.Watcom vc6curlsrc.dsw      \
 
70
        CMakeLists.txt
 
71
 
 
72
MANPAGE=$(top_srcdir)/docs/curl.1
 
73
README=$(top_srcdir)/docs/MANUAL
 
74
MKHELP=$(top_srcdir)/src/mkhelp.pl
 
75
HUGE=hugehelp.c
 
76
 
 
77
if USE_MANUAL
 
78
# Here are the stuff to create a built-in manual
 
79
 
 
80
if HAVE_LIBZ
 
81
# This generates the hugehelp.c file in both uncompressed and compressed formats
 
82
$(HUGE): $(README) $(MANPAGE)  mkhelp.pl
 
83
        echo '#include "tool_setup.h"' > $(HUGE)
 
84
        echo '#ifndef HAVE_LIBZ' >> $(HUGE)
 
85
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
 
86
        echo '#else' >> $(HUGE)
 
87
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
 
88
        echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
 
89
else # HAVE_LIBZ
 
90
# This generates the hugehelp.c file uncompressed only
 
91
$(HUGE): $(README) $(MANPAGE)  mkhelp.pl
 
92
        echo '#include "tool_setup.h"' > $(HUGE)
 
93
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
 
94
endif
 
95
 
 
96
else # USE_MANUAL
 
97
# built-in manual has been disabled, make a blank file
 
98
$(HUGE):
 
99
        echo "/* built-in manual is disabled, blank function */" > $(HUGE)
 
100
        echo '#include "hugehelp.h"' >> $(HUGE)
 
101
        echo "void hugehelp(void) {}" >>$(HUGE)
 
102
endif
 
103
 
 
104
# ignore hugehelp.c since it is generated source code and it plays by slightly
 
105
# different rules!
 
106
checksrc:
 
107
        @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/src -Whugehelp.c $(curl_SOURCES)
 
108
 
 
109
if CURLDEBUG
 
110
# for debug builds, we scan the sources on all regular make invokes
 
111
all-local: checksrc
 
112
endif