Added curlmsg.msg to the distribution
[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         urlglob.h \
16         version.h \
17         writeout.h
18
19 #memtest_SOURCES = memtest.c
20 #memtest_LDADD = $(top_srcdir)/lib/libcurl.la
21
22 curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
23 curl_LDADD = ../lib/libcurl.la
24 curl_DEPENDENCIES = ../lib/libcurl.la
25 BUILT_SOURCES = hugehelp.c
26 CLEANFILES = hugehelp.c
27 NROFF=@NROFF@
28
29 EXTRA_DIST = mkhelp.pl config-win32.h curlmsg.msg\
30         Makefile.vc6 Makefile.b32 Makefile.m32 config.h.in
31
32 AUTOMAKE_OPTIONS = foreign no-dependencies
33
34 MANPAGE=$(top_srcdir)/docs/curl.1
35 README=$(top_srcdir)/docs/MANUAL
36 MKHELP=$(top_srcdir)/src/mkhelp.pl
37
38 # This generates the hugehelp.c file
39 hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
40         rm -f hugehelp.c
41         $(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c