5 AUTOMAKE_OPTIONS = foreign
7 EXTRA_DIST = CHANGES COPYING maketgz SSLCERTS reconf Makefile.dist \
8 curl-config.in build_vms.com curl-style.el sample.emacs testcurl.sh
10 bin_SCRIPTS = curl-config
12 SUBDIRS = docs lib src include tests packages
14 # create a root makefile in the distribution:
16 cp $(srcdir)/Makefile.dist $(distdir)/Makefile
27 @(cd tests; $(MAKE) quiet-test)
30 @(cd tests; $(MAKE) full-test)
33 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
34 # must contain the following line:
35 # %_topdir /home/loic/local/rpm
36 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
38 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
40 # If additional configure flags are needed to build the package, add the
41 # following in ~/.rpmmacros
42 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
43 # and run make rpm in the following way:
44 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
48 $(MAKE) RPMDIST=curl rpm
49 $(MAKE) RPMDIST=curl-ssl rpm
52 RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
53 cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
54 cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
55 rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
56 mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
57 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
60 # Build a Solaris pkkgadd format file
61 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
62 # file (which ends up back in this directory).
63 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
64 # pkgadd -d ./HAXXcurl-*
67 # gak - libtool requires an absoulte directory, hence the pwd below...
70 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
71 cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
72 cd $(srcdir)/packages/Solaris && $(MAKE) package
75 # Build a cygwin binary tarball installation file
76 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
78 $(MAKE) -C packages/Win32/cygwin cygwinbin