Skip to content
Snippets Groups Projects
Makefile.am 760 B
Newer Older
  • Learn to ignore specific revisions
  • Daniel Stenberg's avatar
    Daniel Stenberg committed
    #
    # $Id$
    #
    
    # Some flags needed when trying to cause warnings ;-)
    # CFLAGS = -Wall -pedantic
    
    #CPPFLAGS = -DGLOBURL -DCURL_SEPARATORS
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    
    INCLUDES = -I$(top_srcdir)/include
    
    bin_PROGRAMS = curl
    
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    curl_SOURCES = main.c hugehelp.c urlglob.c writeout.c
    
    curl_LDADD = $(top_srcdir)/lib/libcurl.la
    curl_DEPENDENCIES = $(top_srcdir)/lib/libcurl.la
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    BUILT_SOURCES = hugehelp.c
    CLEANFILES = hugehelp.c
    NROFF=@NROFF@
    
    EXTRA_DIST = mkhelp.pl Makefile.vc6
    
    AUTOMAKE_OPTIONS = foreign no-dependencies
    
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    MANPAGE=$(top_srcdir)/docs/curl.1
    README=$(top_srcdir)/docs/README.curl
    MKHELP=$(top_srcdir)/src/mkhelp.pl
    
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    # This generates the hugehelp.c file
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    hugehelp.c: $(README) $(MANPAGE)  mkhelp.pl
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    	rm -f hugehelp.c
    
    Daniel Stenberg's avatar
    Daniel Stenberg committed
    	$(NROFF) -man $(MANPAGE) | $(PERL) $(MKHELP)  $(README) > hugehelp.c