added the new amiga files to the dist
[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 if HAVE_LIBZ
15 # libz available, attempt to compress the help data
16 MKHELPOPT=-c
17 else
18 # no libz, don't try to compress
19 MKHELPOPT=
20 endif
21
22 #memtest_SOURCES = memtest.c
23 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
24
25 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c setup.h \
26         config-win32.h config-mac.h config-vms.h config-riscos.h \
27         urlglob.h version.h writeout.h writeenv.c writeenv.h \
28         getpass.c getpass.h homedir.c homedir.h
29
30 curl_LDADD = ../lib/libcurl.la
31 curl_DEPENDENCIES = ../lib/libcurl.la
32 BUILT_SOURCES = hugehelp.c
33 CLEANFILES = hugehelp.c
34 NROFF=@NROFF@
35
36 EXTRA_DIST = mkhelp.pl curlmsg.msg makefile.dj \
37         Makefile.vc6 Makefile.b32 Makefile.m32 Makefile.riscos config.h.in \
38         macos/curl.mcp.xml.sit.hqx \
39         macos/MACINSTALL.TXT \
40         macos/src/curl_GUSIConfig.cpp \
41         macos/src/macos_main.cpp curlmsg.h curlmsg.sdl curlmsg_vms.h \
42         config-amiga.h makefile.amiga
43
44 MANPAGE=$(top_srcdir)/docs/curl.1
45 README=$(top_srcdir)/docs/MANUAL
46 MKHELP=$(top_srcdir)/src/mkhelp.pl
47
48 # This generates the hugehelp.c file
49 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
50         rm -f hugehelp.c
51         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(MKHELPOPT) $(README) > hugehelp.c
52
53 # for distribution, generate an uncompressed help file!
54 dist-hook:
55         chmod 0644 $(distdir)/hugehelp.c
56         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP) $(README) > $(distdir)/hugehelp.c