~ubuntu-branches/ubuntu/warty/curl/warty-security

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# $Id: Makefile.am,v 1.20 2002/03/06 22:19:16 bagder Exp $
3
 
#
4
 
 
 
1
#***************************************************************************
 
2
#                                  _   _ ____  _
 
3
#  Project                     ___| | | |  _ \| |
 
4
#                             / __| | | | |_) | |
 
5
#                            | (__| |_| |  _ <| |___
 
6
#                             \___|\___/|_| \_\_____|
 
7
#
 
8
# Copyright (C) 1998 - 2004, 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
# $Id: Makefile.am,v 1.48 2004/04/25 08:13:07 bagder Exp $
 
22
###########################################################################
5
23
AUTOMAKE_OPTIONS = foreign nostdinc
6
24
 
 
25
# we use srcdir/src for "private" includes
7
26
# we use srcdir/include for the static global include files
8
 
# we use builddir/src for the generated src/config.h file to get found
9
 
# we use srcdir/lib for the client-private header files
10
 
INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src -I$(top_srcdir)/src
11
 
 
12
 
bin_PROGRAMS = curl #memtest
13
 
 
14
 
#memtest_SOURCES = memtest.c
15
 
#memtest_LDADD = $(top_srcdir)/lib/libcurl.la
16
 
 
17
 
curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c setup.h \
18
 
        config-win32.h \
19
 
        config-mac.h \
20
 
        config-vms.h \
21
 
        urlglob.h \
22
 
        version.h \
23
 
        writeout.h \
24
 
        config-win32.h \
25
 
        config-mac.h \
26
 
        config-vms.h    
 
27
# we use builddir/src for the generated include files to get found
 
28
# we use srcdir/lib for the header files we "borrow" from the lib
 
29
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src \
 
30
        -I$(top_srcdir)/lib
 
31
 
 
32
bin_PROGRAMS = curl
 
33
 
 
34
# libcurl has sources that provide functions named curlx_* that aren't part of
 
35
# the official API, but we re-use the code here to avoid duplication.
 
36
curlx_ones =  $(top_srcdir)/lib/strtoofft.c $(top_srcdir)/lib/timeval.c
 
37
 
 
38
curl_SOURCES = main.c hugehelp.c hugehelp.h urlglob.c writeout.c setup.h   \
 
39
        config-win32.h config-mac.h config-vms.h config-riscos.h urlglob.h \
 
40
        version.h writeout.h writeenv.c writeenv.h getpass.c getpass.h     \
 
41
        homedir.c homedir.h $(curlx_ones)
27
42
 
28
43
curl_LDADD = ../lib/libcurl.la
29
44
curl_DEPENDENCIES = ../lib/libcurl.la
30
45
BUILT_SOURCES = hugehelp.c
31
46
CLEANFILES = hugehelp.c
32
 
NROFF=@NROFF@
 
47
NROFF=@NROFF@ @MANOPT@ # figured out by the configure script
33
48
 
34
 
EXTRA_DIST = mkhelp.pl curlmsg.msg \
35
 
        Makefile.vc6 Makefile.b32 Makefile.m32 config.h.in \
36
 
        macos/curl.mcp.xml.sit.hqx \
37
 
        macos/MACINSTALL.TXT \
38
 
        macos/src/curl_GUSIConfig.cpp \
39
 
        macos/src/macos_main.cpp
 
49
EXTRA_DIST = mkhelp.pl makefile.dj Makefile.vc6 Makefile.b32 Makefile.m32 \
 
50
        Makefile.riscos config.h.in macos/curl.mcp.xml.sit.hqx            \
 
51
        macos/MACINSTALL.TXT macos/src/curl_GUSIConfig.cpp                \
 
52
        macos/src/macos_main.cpp config-amigaos.h makefile.amiga curl.rc  \
 
53
        Makefile.netware config-netware.h
40
54
 
41
55
MANPAGE=$(top_srcdir)/docs/curl.1
42
56
README=$(top_srcdir)/docs/MANUAL
43
57
MKHELP=$(top_srcdir)/src/mkhelp.pl
44
 
 
45
 
# This generates the hugehelp.c file
46
 
hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
47
 
        rm -f hugehelp.c
48
 
        $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c
 
58
HUGE=hugehelp.c
 
59
 
 
60
if USE_MANUAL
 
61
# Here are the stuff to create a built-in manual
 
62
 
 
63
if HAVE_LIBZ
 
64
# This generates the hugehelp.c file in both uncompressed and compressed formats
 
65
$(HUGE): $(README) $(MANPAGE)  mkhelp.pl
 
66
        echo '#ifdef HAVE_CONFIG_H' > $(HUGE)
 
67
        echo '#include "config.h"' >> $(HUGE)
 
68
        echo '#endif' >> $(HUGE)
 
69
        echo '#ifndef HAVE_LIBZ' >> $(HUGE)
 
70
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
 
71
        echo '#else' >> $(HUGE)
 
72
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
 
73
        echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
 
74
else # HAVE_LIBZ
 
75
# This generates the hugehelp.c file uncompressed only
 
76
$(HUGE): $(README) $(MANPAGE)  mkhelp.pl
 
77
        echo '#ifdef HAVE_CONFIG_H' > $(HUGE)
 
78
        echo '#include "config.h"' >> $(HUGE)
 
79
        echo '#endif' >> $(HUGE)
 
80
        $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
 
81
endif
 
82
 
 
83
else # USE_MANUAL
 
84
# built-in manual has been disabled, make a blank file
 
85
$(HUGE):
 
86
        echo "/* built-in manual is disabled, blank function */" > $(HUGE)
 
87
        echo '#include "hugehelp.h"' >> $(HUGE)
 
88
        echo "void hugehelp(void) {}" >>$(HUGE)
 
89
endif