Makefile.am 2.54 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
1
# Main Makefile for SExtractor
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2
# Copyright (C) 2002-2008 Emmanuel Bertin.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3
AUTOMAKE_OPTIONS	= foreign no-dependencies
Emmanuel Bertin's avatar
Emmanuel Bertin committed
4
5
SUBDIRS			= man src tests
dist_pkgdata_DATA	= xsl/sextractor.xsl
Emmanuel Bertin's avatar
Emmanuel Bertin committed
6
7
EXTRA_DIST		= config doc AUTHORS BUGS ChangeLog COPYING HISTORY \
			  INSTALL README THANKS \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
8
9
10
			  acx_atlas.m4 acx_prog_cc_optim.m4 \
			  acx_urbi_resolve_dir.m4
RPM_ROOTDIR		= `rpmbuild --nobuild -E %_topdir`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
11
RPM_SRCDIR		= $(RPM_ROOTDIR)/SOURCES
Emmanuel Bertin's avatar
Emmanuel Bertin committed
12
13
14
dist-hook:
	rm -rf `find $(distdir) -name .svn`

Emmanuel Bertin's avatar
Emmanuel Bertin committed
15
16
rpm:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17
18
19
20
21
	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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22
23
24

rpm-opteron:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
25
26
27
28
29
	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
Emmanuel Bertin's avatar
Emmanuel Bertin committed
30
31
32

rpm-athlon:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	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

Emmanuel Bertin's avatar
Emmanuel Bertin committed
55
athlon:
Emmanuel Bertin's avatar
Emmanuel Bertin committed
56
57
58
59
60
61
62
63
64
65
	$(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"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
66

Emmanuel Bertin's avatar
Emmanuel Bertin committed
67
68
icc:
	$(MAKE) CC="icc" CFLAGS="-O3 -g -axWPT -ip -unroll -pthread"