1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2012, 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 ###########################################################################
22 AUTOMAKE_OPTIONS = foreign nostdinc
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.
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
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 \
47 # Mostly for Windows build targets, when using static libcurl
48 if USE_CPPFLAG_CURL_STATICLIB
49 AM_CPPFLAGS = -DCURL_STATICLIB
54 include Makefile-metalink.inc
55 endif # HAVE_LIBMETALINK
57 # This might hold -Werror
58 CFLAGS += @CURL_CFLAG_EXTRAS@ @LIBMETALINK_CFLAGS@
60 curl_LDADD = $(top_builddir)/lib/libcurl.la @CURL_LIBS@ @LIBMETALINK_LIBS@
61 curl_LDFLAGS = @LIBMETALINK_LDFLAGS@
62 curl_DEPENDENCIES = $(top_builddir)/lib/libcurl.la
63 BUILT_SOURCES = hugehelp.c
64 CLEANFILES = hugehelp.c
65 # Use the C locale to ensure that only ASCII characters appear in the
67 NROFF=env LC_ALL=C @NROFF@ @MANOPT@ # figured out by the configure script
69 EXTRA_DIST = mkhelp.pl makefile.dj Makefile.vc6 Makefile.b32 Makefile.m32 \
70 macos/curl.mcp.xml.sit.hqx \
71 macos/MACINSTALL.TXT macos/src/curl_GUSIConfig.cpp vc6curlsrc.dsp \
72 macos/src/macos_main.cpp makefile.amiga curl.rc \
73 Makefile.netware Makefile.inc Makefile.Watcom vc6curlsrc.dsw \
76 MANPAGE=$(top_srcdir)/docs/curl.1
77 README=$(top_srcdir)/docs/MANUAL
78 MKHELP=$(top_srcdir)/src/mkhelp.pl
82 # Here are the stuff to create a built-in manual
85 # This generates the hugehelp.c file in both uncompressed and compressed formats
86 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
87 echo '#include "tool_setup.h"' > $(HUGE)
88 echo '#ifndef HAVE_LIBZ' >> $(HUGE)
89 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
90 echo '#else' >> $(HUGE)
91 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) -c $(README) >> $(HUGE)
92 echo '#endif /* HAVE_LIBZ */' >> $(HUGE)
94 # This generates the hugehelp.c file uncompressed only
95 $(HUGE): $(README) $(MANPAGE) mkhelp.pl
96 echo '#include "tool_setup.h"' > $(HUGE)
97 $(NROFF) $(MANPAGE) | $(PERL) $(MKHELP) $(README) >> $(HUGE)
101 # built-in manual has been disabled, make a blank file
103 echo "/* built-in manual is disabled, blank function */" > $(HUGE)
104 echo '#include "hugehelp.h"' >> $(HUGE)
105 echo "void hugehelp(void) {}" >>$(HUGE)
108 # ignore hugehelp.c since it is generated source code and it plays by slightly
111 @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/src -Whugehelp.c $(curl_SOURCES)
114 # for debug builds, we scan the sources on all regular make invokes