head	1.13;
access;
symbols
	start:1.1.1.1 gvermeul:1.1.1;
locks; strict;
comment	@# @;


1.13
date	2006.09.14.05.40.48;	author gvermeul;	state dead;
branches;
next	1.12;

1.12
date	2006.02.18.09.39.58;	author gvermeul;	state Exp;
branches;
next	1.11;

1.11
date	2005.02.27.09.16.51;	author gvermeul;	state Exp;
branches;
next	1.10;

1.10
date	2005.02.20.05.16.10;	author gvermeul;	state Exp;
branches;
next	1.9;

1.9
date	2004.12.01.07.01.09;	author gvermeul;	state Exp;
branches;
next	1.8;

1.8
date	2004.11.30.07.07.03;	author gvermeul;	state Exp;
branches;
next	1.7;

1.7
date	2004.11.25.16.39.46;	author gvermeul;	state Exp;
branches;
next	1.6;

1.6
date	2004.11.24.05.34.48;	author gvermeul;	state Exp;
branches;
next	1.5;

1.5
date	2004.11.20.07.13.20;	author gvermeul;	state Exp;
branches;
next	1.4;

1.4
date	2004.11.20.01.52.02;	author gvermeul;	state Exp;
branches;
next	1.3;

1.3
date	2004.11.18.20.56.18;	author gvermeul;	state Exp;
branches;
next	1.2;

1.2
date	2004.11.17.06.22.48;	author gvermeul;	state Exp;
branches;
next	1.1;

1.1
date	2004.11.14.06.58.30;	author gvermeul;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.14.06.58.30;	author gvermeul;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Rename Makefile to GNUmakefile.

----------------------------------------------------------------------
@
text
@# GNU-Makefile for PyQwt3D
#
# There are at least two options to log the output of make:
#
# (1) Invoke make and tie stderr to stdout and redirect stdout to LOG.txt:
#       make all-static 2&>1 >LOG.txt
#     However, you do not see what is going on.
#
# (2) Use script to capture all screen output of make to LOG.txt:
#       script -c 'make all-static' LOG.txt
#     The script command appeared in 3.0BSD and is part of util-linux.
#
#
# Edit INCDIR and LIBDIR to suit your QwtPlot3D installation.
INCDIR := /usr/include/qwtplot3d
LIBDIR := /usr/lib

# To compile and link the QwtPlot3D sources statically into PyQwt3D.
QWT3DDIR := $(shell pwd)/qwtplot3d-0.2.4-beta-patched
QWT3DDIR := $(shell pwd)/qwtplot3d-0.2.6
# QWT3DDIR := /home/packer/RPM/BUILD/qwtplot3d

# To compile and link the zlib sources statically into PyQwt3D.
ZLIBDIR := $(shell pwd)/zlib-1.2.3
# ZLIBDIR := /home/packer/RPM/BUILD/zlib-1.2.1

# Do not edit below this line, unless you know what you are doing.
JOBS := $(shell getconf _NPROCESSORS_ONLN)

.PHONY: dist

# Build and link PyQwt3D against a shared Qwt3D library.
all: symlinks
	(cd configure \
	&& python configure.py -j $(JOBS) -I $(INCDIR) -L $(LIBDIR) \
	&& $(MAKE) -j $(JOBS))

install:
	(cd configure && make install)

# Build and link PyQwt3D including the local source tree of Qwt3D.
all-static: symlinks
	(cd configure \
	&& python configure.py -Q $(QWT3DDIR) -Z $(ZLIBDIR) \
	&& $(MAKE))

debug: symlinks
	(cd configure \
	&& python configure.py \
		-Q $(QWT3DDIR) -D PYQWT3D_DEBUG --debug --tracing \
	&& $(MAKE))

symlinks:
	(ln -sf configure/Qwt3D)
	(cd examples && ln -sf ../configure/Qwt3D)

doc:
	(cd Doc && make doc && make htdoc)

clean:
	rm -f *~ */*~ */*/*~

distclean: clean
	rm -rf configure/Makefile configure/Qwt3D configure/tmp-Qwt3D
	rm -f Qwt3D examples/Qwt3D 

dist: doc
	python setup.py sdist

# EOF
@


1.12
log
@Prepare release 0.1.1.
@
text
@@


1.11
log
@Add forgotten 'symlinks' dependencies.
Add parallel build to the 'all' target for multiprocessor systems.
@
text
@d20 1
d24 1
a24 1
ZLIBDIR := $(shell pwd)/zlib-1.2.1
a27 2
CXX  := $(shell which ccache) $(CXX)
CC   := $(shell which ccache) $(CC)
d36 1
a36 1
	&& $(MAKE) -j $(JOBS) CC="$(CC)" CXX="$(CXX)")
d45 1
a45 1
	&& $(MAKE) CC="$(CC)" CXX="$(CXX)")
d51 1
a51 1
	&& $(MAKE) CC="$(CC)" CXX="$(CXX)")
@


1.10
log
@Add support for ccache.
Add tips to log the output of make (for debugging).
@
text
@d27 3
a29 2
CXX := $(shell which ccache) $(CXX)
CC := $(shell which ccache) $(CC)
d36 2
a37 2
	&& python configure.py -I $(INCDIR) -L $(LIBDIR) \
	&& $(MAKE) CC="$(CC)" CXX="$(CXX)")
d43 1
a43 1
all-static:
d48 1
a48 1
debug:
@


1.9
log
@Use the -Z option in the 'static' target.
@
text
@d2 12
a13 1

d26 3
d32 5
a36 5
all:
	(cd configure; python configure.py -I $(INCDIR) -L $(LIBDIR))
	(cd configure; $(MAKE))
	(ln -sf configure/Qwt3D)
	(cd examples; ln -sf ../configure/Qwt3D)
d39 1
a39 1
	(cd configure; make install)
d41 5
a45 5
static:
	(cd configure; python configure.py -Q $(QWT3DDIR) -Z $(ZLIBDIR))
	(cd configure; $(MAKE))
	(ln -sf configure/Qwt3D)
	(cd examples; ln -sf ../configure/Qwt3D)
d48 4
a51 5
	(cd configure; \
         python configure.py -Q $(QWT3DDIR) -D PYQWT3D_DEBUG --debug --tracing)
	(cd configure; $(MAKE))
	(ln -sf configure/Qwt3D)
	(cd examples; ln -sf ../configure/Qwt3D)
d53 1
a53 1
links:
d55 1
a55 1
	(cd examples; ln -sf ../configure/Qwt3D)
d58 1
a58 1
	(cd Doc; make doc; make htdoc)
d69 2
@


1.8
log
@Add qwtplot3d-0.2.4-beta-patched.
@
text
@d6 1
d11 4
d28 1
a28 1
	(cd configure; python configure.py -Q $(QWT3DDIR))
@


1.7
log
@Add install target
@
text
@d7 2
a8 1
QWT3DDIR := /home/packer/RPM/BUILD/qwtplot3d
a9 1
PKG := $(shell basename $$(pwd))
@


1.6
log
@Facilitate debugging and tracing
@
text
@d19 3
@


1.5
log
@Update documentation before a source distribution
@
text
@d25 11
@


1.4
log
@Make "make dist" more developer friendly
@
text
@d25 3
d35 1
a35 1
dist:
@


1.3
log
@Add an option to compile and link QwtPlot3D statically into PyQwt3D
@
text
@d6 1
a6 1
# To compile and link QwtPlot3D statically into PyQwt3D
d32 1
a32 1
dist: distclean
a33 3

pack: distclean
	(cd ..; tar cvfzh $(PKG).tar.gz $(PKG))
@


1.2
log
@Use of 'python configure.py' imports the correct 'pyqtconfig'.
@
text
@d6 2
d19 6
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
	(cd configure; ./configure.py -I $(INCDIR) -L $(LIBDIR))
@


1.1.1.1
log
@Initial import.
@
text
@@
