Brad corrected the include path (again)
[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 # 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
28 curl_LDADD = ../lib/libcurl.la
29 curl_DEPENDENCIES = ../lib/libcurl.la
30 BUILT_SOURCES = hugehelp.c
31 CLEANFILES = hugehelp.c
32 NROFF=@NROFF@
33
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
40
41 MANPAGE=$(top_srcdir)/docs/curl.1
42 README=$(top_srcdir)/docs/MANUAL
43 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