Makefile.am 1.19 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-2005 Emmanuel Bertin.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3
4
5
6
AUTOMAKE_OPTIONS	= foreign no-dependencies
SUBDIRS			= man src
EXTRA_DIST		= config doc AUTHORS BUGS ChangeLog COPYING HISTORY \
			  INSTALL README THANKS \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
7
8
			  acx_prog_cc_optim.m4
RPM_ROOTDIR		= /usr/src/RPM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
9
10
11
12
13
14
15
RPM_SRCDIR		= $(RPM_ROOTDIR)/SOURCES
rpm:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
	rpmbuild -ba --clean $(PACKAGE_NAME).spec $(PACKAGE_NAME)-mp.spec

rpm-opteron:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
16
	GCCFLAGS="-O -g -funroll-loops -fomit-frame-pointer -Wall \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
17
18
19
20
21
		-march=opteron" rpmbuild -ba --target=x86_64 \
		--clean $(PACKAGE_NAME).spec                                                             

rpm-athlon:	dist
	cp -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz $(RPM_SRCDIR)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
22
	GCCFLAGS="-O -g -funroll-loops -fomit-frame-pointer -Wall -m32 \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
23
24
25
26
27
28
29
		-march=i686 -msse -mfpmath=sse -mtune=athlon" rpmbuild \
		-ba --target=i686 --clean $(PACKAGE_NAME).spec
athlon:
	$(MAKE) CFLAGS="-O -g -funroll-loops -fomit-frame-pointer -Wall -m32 -march=i686 -msse -mfpmath=sse -mtune=athlon" LIBS="-lm"

debug:
	$(MAKE) CFLAGS="-O3 -funroll-loops -fomit-frame-pointer -Wall -m32 -g"