# Main Makefile for SExtractor # Copyright (C) 2002-2009 Emmanuel Bertin. AUTOMAKE_OPTIONS = foreign no-dependencies SUBDIRS = man src tests dist_pkgdata_DATA = xsl/sextractor.xsl EXTRA_DIST = config doc AUTHORS BUGS ChangeLog COPYRIGHT HISTORY \ INSTALL README THANKS \ acx_atlas.m4 acx_prog_cc_optim.m4 \ acx_urbi_resolve_dir.m4 RPM_ROOTDIR = `rpmbuild --nobuild -E %_topdir` RPM_SRCDIR = $(RPM_ROOTDIR)/SOURCES dist-hook: rm -rf `find $(distdir) -name .svn` rpm: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) rpmbuild -ba --clean --nodeps $(PACKAGE_NAME).spec rpm-icc: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) USE_ICC="1" rpmbuild -ba --clean --nodeps $(PACKAGE_NAME).spec rpm-opteron: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) TPXCC="gcc" TPXFLAGS="-O -g -funroll-loops -fomit-frame-pointer -Wall \ -march=opteron" \ TPXLDFLAGS="-static -shared-libgcc" \ TPXLIBS="-lfftw3 -llapack -lcblas -latlas -lm" \ rpmbuild -ba --target=x86_64 --clean $(PACKAGE_NAME).spec rpm-athlon: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) TPXCC="gcc" TPXFLAGS="-O -g -funroll-loops -fomit-frame-pointer -Wall \ -m32 -march=i686 -msse -mfpmath=sse -mtune=athlon" \ TPXLDFLAGS="-static -shared-libgcc" \ TPXLIBS="-L/usr/lib/ -lm -L/usr/local/lib/ -lfftw3 \ -llapack -lcblas -latlas -lm" \ rpmbuild -ba --target=i686 --clean $(PACKAGE_NAME).spec rpm-opteron-icc: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) TPXCC="icc" TPXFLAGS="-O3 -g -axWPT -ip -unroll" \ TPXLDFLAGS="-static -shared-libgcc" \ TPXLIBS="-lfftw3 -llapack -lcblas -latlas -lm" \ rpmbuild -ba --target=x86_64 --clean --nodeps $(PACKAGE_NAME).spec rpm-athlon-icc: dist cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR) TPXCC="icc32" TPXFLAGS="-O3 -g -axKWNPT -ip -unroll" \ TPXLDFLAGS="-static -shared-libgcc" \ TPXLIBS="-L/usr/local/lib/ -L/usr/lib/ -lfftw3 \ -llapack -lcblas -latlas -lm" \ rpmbuild -ba --target=i686 --clean $(PACKAGE_NAME).spec athlon: $(MAKE) CFLAGS="-O -g -pthread -funroll-loops -fomit-frame-pointer \ -Wall -m32 -march=i686 -msse -mfpmath=sse -mtune=athlon" \ LIBS="-L/usr/lib/ -lpthread -lm -L/usr/local/lib/ \ -lfftw3 -lfftw3_threads \ -llapack -lcblas -latlas -lm" pentium-icc: $(MAKE) CC="icc32" CFLAGS="-O3 -axKWNPT -ip -unroll -pthread" \ LIBS="-L/usr/lib/ -lpthread -lm -L/usr/local/lib/ -llapack \ -lcblas -latlas -lfftw3 -lfftw3_threads" icc: $(MAKE) CC="icc" CFLAGS="-O3 -g -axWPT -ip -unroll -pthread"