5 AUTOMAKE_OPTIONS = foreign
7 EXTRA_DIST = CHANGES COPYING maketgz UPGRADE reconf Makefile.dist \
8 curl-config.in build_vms.com curl-mode.el
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 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
31 # must contain the following line:
32 # %_topdir /home/loic/local/rpm
33 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
35 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
37 # If additional configure flags are needed to build the package, add the
38 # following in ~/.rpmmacros
39 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
40 # and run make rpm in the following way:
41 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
45 $(MAKE) RPMDIST=curl rpm
46 $(MAKE) RPMDIST=curl-ssl rpm
49 RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
50 cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
51 cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
52 rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
53 mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
54 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
57 # Build a Solaris pkkgadd format file
58 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
59 # file (which ends up back in this directory).
60 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
61 # pkgadd -d ./HAXXcurl-*
64 # gak - libtool requires an absoulte directory, hence the pwd below...
67 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
68 cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
69 cd $(srcdir)/packages/Solaris && $(MAKE) package
72 # Build a cygwin binary tarball installation file
73 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
75 $(MAKE) -C packages/Win32/cygwin cygwinbin