1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
21 # $Id: Makefile.am,v 1.1.1.1 2008-09-23 16:32:06 hoffman Exp $
22 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign nostdinc
25 # Specify our include paths here, and do it relative to $(top_srcdir) and
26 # $(top_builddir), to ensure that these paths which belong to the library
27 # being currently built and tested are searched before the library which
28 # might possibly already be installed in the system.
30 # $(top_builddir)/include is for libcurl's generated curl/curlbuild.h file
31 # $(top_srcdir)/include is for libcurl's external include files
32 # $(top_builddir)/lib is for libcurl's generated lib/config.h file
33 # $(top_builddir)/src is for curl's generated src/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/setup.h and "curl-private" files
37 INCLUDES = -I$(top_builddir)/include \
38 -I$(top_srcdir)/include \
39 -I$(top_builddir)/lib \
40 -I$(top_builddir)/src \
48 curl_LDADD = ../lib/libcurl.la @CURL_LIBS@
49 curl_DEPENDENCIES = ../lib/libcurl.la
50 BUILT_SOURCES = hugehelp.c
51 CLEANFILES = hugehelp.c
52 # Use the C locale to ensure that only ASCII characters appear in the
54 NROFF=env LC_ALL=C @NROFF@ @MANOPT@ # figured out by the configure script
56 EXTRA_DIST = mkhelp.pl makefile.dj Makefile.vc6 Makefile.b32 Makefile.m32 \
57 Makefile.riscos config.h.in macos/curl.mcp.xml.sit.hqx \
58 macos/MACINSTALL.TXT macos/src/curl_GUSIConfig.cpp curlsrc.dsp \
59 macos/src/macos_main.cpp config-amigaos.h makefile.amiga curl.rc \
60 Makefile.netware Makefile.inc Makefile.Watcom curlsrc.dsw
62 MANPAGE=$(top_srcdir)/docs/curl.1
63 README=$(top_srcdir)/docs/MANUAL
64 MKHELP=$(top_srcdir)/src/mkhelp.pl
68 # Here are the stuff to create a built-in manual
71 # This generates the hugehelp.c file in both uncompressed and compressed formats
72 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
73 echo '#include "setup.h"' > $(HUGE)
74 echo '#ifndef HAVE_LIBZ' >> $(HUGE)
75 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
76 echo '#else' >> $(HUGE)
77 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
78 echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
80 # This generates the hugehelp.c file uncompressed only
81 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
82 echo '#include "setup.h"' > $(HUGE)
83 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
87 # built-in manual has been disabled, make a blank file
89 echo "/* built-in manual is disabled, blank function */" > $(HUGE)
90 echo '#include "hugehelp.h"' >> $(HUGE)
91 echo "void hugehelp(void) {}" >>$(HUGE)