made building outside the source tree work again, Kevin Roth reported
[platform/upstream/curl.git] / src / Makefile.am
1 #
2 # $Id$
3 #
4
5 AUTOMAKE_OPTIONS = foreign nostdinc
6
7 # 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 INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/src
10
11 bin_PROGRAMS = curl #memtest
12
13 #memtest_SOURCES = memtest.c
14 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
15
16 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c setup.h \
17         config-win32.h \
18         config-mac.h \
19         config-vms.h \
20         urlglob.h \
21         version.h \
22         writeout.h \
23         config-win32.h \
24         config-mac.h \
25         config-vms.h    
26
27 curl_LDADD = ../lib/libcurl.la
28 curl_DEPENDENCIES = ../lib/libcurl.la
29 BUILT_SOURCES = hugehelp.c
30 CLEANFILES = hugehelp.c
31 NROFF=@NROFF@
32
33 EXTRA_DIST = mkhelp.pl curlmsg.msg \
34         Makefile.vc6 Makefile.b32 Makefile.m32 config.h.in \
35         macos/curl.mcp.xml.sit.hqx \
36         macos/MACINSTALL.TXT \
37         macos/src/curl_GUSIConfig.cpp \
38         macos/src/macos_main.cpp
39
40 MANPAGE=$(top_srcdir)/docs/curl.1
41 README=$(top_srcdir)/docs/MANUAL
42 MKHELP=$(top_srcdir)/src/mkhelp.pl
43
44 # This generates the hugehelp.c file
45 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
46         rm -f hugehelp.c
47         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c