5 AUTOMAKE_OPTIONS = foreign
8 CHANGES LEGAL maketgz MITX.txt MPL-1.1.txt \
9 reconf Makefile.dist curl-config.in build_vms.com curl-mode.el
11 bin_SCRIPTS = curl-config
13 SUBDIRS = docs lib src include tests packages multi
15 # create a root makefile in the distribution:
17 cp $(srcdir)/Makefile.dist $(distdir)/Makefile
25 @(cd tests; $(MAKE) quiet-test)
28 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
29 # must contain the following line:
30 # %_topdir /home/loic/local/rpm
31 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
33 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
35 # If additional configure flags are needed to build the package, add the
36 # following in ~/.rpmmacros
37 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
38 # and run make rpm in the following way:
39 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
43 $(MAKE) RPMDIST=curl rpm
44 $(MAKE) RPMDIST=curl-ssl rpm
47 RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
48 cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
49 cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
50 rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
51 mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
52 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
55 # Build a Solaris pkkgadd format file
56 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
57 # file (which ends up back in this directory).
58 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
59 # pkgadd -d ./HAXXcurl-*
62 # gak - libtool requires an absoulte directory, hence the pwd below...
65 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
66 cat LEGAL MITX.txt MPL-1.1.txt > $(srcdir)/packages/Solaris/copyright ; \
67 cd $(srcdir)/packages/Solaris && $(MAKE) package
70 # Build a cygwin binary tarball installation file
71 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
73 $(MAKE) -C packages/Win32/cygwin cygwinbin