added macos files to the distribution archive
[platform/upstream/curl.git] / src / Makefile.am
1 #
2 # $Id$
3 #
4
5 # Some flags needed when trying to cause warnings ;-)
6 # CFLAGS = -g -DMALLOCDEBUG # -Wall -pedantic
7 #CPPFLAGS = -DGLOBURL -DCURL_SEPARATORS
8
9 INCLUDES = -I$(top_srcdir)/include
10
11 bin_PROGRAMS = curl #memtest
12
13 noinst_HEADERS = setup.h \
14         config-win32.h \
15         config-mac.h \
16         urlglob.h \
17         version.h \
18         writeout.h
19
20 #memtest_SOURCES = memtest.c
21 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
22
23 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
24 curl_LDADD = ../lib/libcurl.la
25 curl_DEPENDENCIES = ../lib/libcurl.la
26 BUILT_SOURCES = hugehelp.c
27 CLEANFILES = hugehelp.c
28 NROFF=@NROFF@
29
30 EXTRA_DIST = mkhelp.pl curlmsg.msg \
31         Makefile.vc6 Makefile.b32 Makefile.m32 config.h.in \
32         macos/curl.mcp.xml.sit.hqx \
33         macos/MACINSTALL.TXT \
34         macos/src/curl_GUSIConfig.cpp \
35         macos/src/macos_main.cpp
36
37 AUTOMAKE_OPTIONS = foreign no-dependencies
38
39 MANPAGE=$(top_srcdir)/docs/curl.1
40 README=$(top_srcdir)/docs/MANUAL
41 MKHELP=$(top_srcdir)/src/mkhelp.pl
42
43 # This generates the hugehelp.c file
44 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
45         rm -f hugehelp.c
46         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c