head	1.12;
access;
symbols
	PyQwt3D-0-1-6:1.12
	PyQwt3D-0-1-5:1.12;
locks; strict;
comment	@# @;


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

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

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

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

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

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

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

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

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

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

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

1.1
date	2006.09.14.05.40.48;	author gvermeul;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Add a target to get libpng.
Fix typo.
@
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 QWT3DOPTIONS first.

# To compile and link the QwtPlot3D sources statically into PyQwt3D.
QWT3DDIR := $(shell pwd)/qwtplot3d-0.2.7

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

# To compile and link the libpng sources statically into PyQwt3D.
PNGVER := 1.2.18
PNGDIR := $(shell pwd)/libpng-$(PNGVER)

# Edit QWT3DOPTIONS first (DarwinPorts install in /opt/local).
#QWT3DOPTIONS := -Q $(QWT3DDIR) -Z $(ZLIBDIR) -D HAVE_LIBPNG -l png
QWT3DOPTIONS := -Q $(QWT3DDIR) -D HAVE_ZLIB -l z -D HAVE_LIBPNG  -I /opt/local/include -L /opt/local/lib -l png

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

ifeq ($(UNAME),Linux)
JOBS := $(shell getconf _NPROCESSORS_ONLN)
endif

ifeq ($(UNAME),Darwin)
JOBS := $(shell sysctl -n hw.ncpu)
endif

.PHONY: dist qwtplot-0.2.7

# Build and link PyQwt3D including the local source tree of Qwt3D.
all: 3 4

debug: 3d 4d

trace: 3t 4t

3:
	cd configure \
	&& python configure.py -3 $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

4:
	cd configure \
	&& python configure.py -4 $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

3d:
	cd configure \
	&& python configure.py --debug $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

4d:
	cd configure \
	&& python configure.py --debug -4 $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

3t:
	cd configure \
	&& python configure.py --debug --trace -3 $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

4t:
	cd configure \
	&& python configure.py --debug --trace -4 $(QWT3DOPTIONS) -j $(JOBS) \
	&& $(MAKE) -j $(JOBS)

# Installation.
install-3: 3
	make -C configure install

install-4: 4
	make -C configure install

install: install-3 install-4

install-3d: 3d
	make -C configure install

install-4d: 4d
	make -C configure install

install-debug: install-3d install-4d

install-3t: 3t
	make -C configure install

install-4t: 4t
	make -C configure install

install-trace: install-3t install-4t

# QwtPlot3D code.
qwtplot3d-doc.zip:
	wget http://qwtplot3d.sourceforge.net/qwtplot3d-doc.zip

qwtplot3d-0.2.7.tgz:
	wget http://prdownloads.sourceforge.net/qwtplot3d/qwtplot3d-0.2.7.tgz

qwtplot3d-0.2.7: qwtplot3d-doc.zip qwtplot3d-0.2.7.tgz
	rm -rf qwtplot3d qwtplot3d-doc qwtplot3d-0.2.7
	(unzip qwtplot3d-doc.zip; mv qwtplot3d qwtplot3d-doc)
	(tar xfz qwtplot3d-0.2.7.tgz; mv qwtplot3d qwtplot3d-0.2.7)
	./unbieber.py qwtplot3d-0.2.7 .c .cpp .h
	patch -p0 --fuzz=10 -b -z .pyqwt3d <pyqwt3d-0.2.7.patch
	cp -r qwtplot3d-doc/doc/doxygenimages qwtplot3d-0.2.7/doc/doxygenimages
	(cd qwtplot3d-0.2.7/doc; \
         mv Doxyfile.doxygen Doxyfile.doxygen.in; \
	 egrep -iv '(c|v):' Doxyfile.doxygen.in >Doxyfile.doxygen; \
	 doxygen -u Doxyfile.doxygen; \
	 doxygen Doxyfile.doxygen)

LIBPNG_TAR_GZ := libpng-1.2.18-no-config.tar.gz

libpng-$(PNGVER)-no-config.tar.gz:
	wget http://prdownloads.sourceforge.net/libpng/$@@

libpng: libpng-$(PNGVER)-no-config.tar.gz
	tar xfz $<

diff:
	./gendiff qwtplot3d-0.2.7 .pyqwt3d >pyqwt3d-0.2.7.patch

# PyQwt3D documentation.
doc:
	(cd Doc && make doc && make htdoc)

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

distclean: clean
	find . -name '.#*' -o -name '*.pyc' | xargs rm -f
	rm -rf configure/Makefile
	rm -rf configure/OpenGL_Qt3 configure/tmp-OpenGL_Qt3
	rm -rf configure/OpenGL_Qt4 configure/tmp-OpenGL_Qt4
	rm -rf configure/Qwt3D_Qt3 configure/tmp-Qwt3D_Qt3
	rm -rf configure/Qwt3D_Qt4 configure/tmp-Qwt3D_Qt4

dist: all distclean doc
	python setup.py sdist

# EOF
@


1.11
log
@Fix QWT3DOPTIONS for Mac OS X.
@
text
@d21 4
d75 1
a78 1
4t:
d125 8
@


1.10
log
@Fix typo (-j).
@
text
@d21 1
a21 1
# Edit QWT3DOPTIONS first.
d23 1
a23 1
QWT3DOPTIONS := -Q $(QWT3DDIR) -D HAVE_ZLIB -l z -D HAVE_LIBPNG -l png
@


1.9
log
@Generate a QwtPlot3D source tree with documentation.
Cleanup.
@
text
@d48 1
a48 1
	&& python configure.py -3 $(QWT3DOPTIONS) $(JOBS) \
@


1.8
log
@Switch to qwtplot3d-0.2.7 and tools to patch it and to remove its the \r's and \t's.
@
text
@d13 1
a13 4
#
# Edit INCDIR and LIBDIR to suit your QwtPlot3D installation.
INCDIR := /usr/include/qwtplot3d
LIBDIR := /usr/lib
d21 4
d48 1
a48 1
	&& python configure.py -3 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d53 1
a53 1
	&& python configure.py -4 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d58 1
a58 1
	&& python configure.py --debug -3 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d63 1
a63 1
	&& python configure.py --debug -4 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d68 1
a68 1
	&& python configure.py --debug --trace -3 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d72 1
a72 1
	&& python configure.py --debug --trace -4 -Q $(QWT3DDIR) -Z $(ZLIBDIR) -j $(JOBS) \
d76 1
a76 1
# Installation
d101 4
d108 4
a111 4
qwtplot3d-0.2.7: qwtplot3d-0.2.7.tgz
	rm -rf qwtplot3d qwtplot3d-0.2.7
	tar xfz qwtplot3d-0.2.7.tgz
	mv qwtplot3d qwtplot3d-0.2.7
d114 9
d124 1
a124 1
# Documentation
@


1.7
log
@Distclean '.#*' files.
Build and clean before making a distribution.
@
text
@d19 1
a19 1
QWT3DDIR := $(shell pwd)/qwtplot3d-0.2.6
d36 1
a36 1
.PHONY: dist
d41 4
d55 20
d84 26
@


1.6
log
@Fixes for Mac OSX.  PyQwt3D does not yet build with Qt-4.2.0, because the
AGL framework is missing from the Makefiles.
@
text
@d68 1
d75 1
a75 1
dist: doc
@


1.5
log
@Remove dead code.
@
text
@d43 2
a44 2
	&& python configure.py -3 -Q $(QWT3DDIR) -Z $(ZLIBDIR) \
	&& $(MAKE)
d48 2
a49 2
	&& python configure.py -4 -Q $(QWT3DDIR) -Z $(ZLIBDIR) \
	&& $(MAKE)
@


1.4
log
@Move the OpenGL interface to a separate module.
@
text
@a19 1
# QWT3DDIR := /home/packer/RPM/BUILD/qwtplot3d
a22 1
# ZLIBDIR := /home/packer/RPM/BUILD/zlib-1.2.1
@


1.3
log
@Fix distclean target.
Remove MSVC indicator.
@
text
@d71 2
@


1.2
log
@Make PyQwt3D build for Qt-3 and Qt-4 with SIP-4.4.5.
The examples do not yet run because of problems with virtual functions.
@
text
@d70 3
a72 2
	rm -rf configure/Makefile configure/Qwt3D configure/tmp-Qwt3D
	rm -f Qwt3D examples/Qwt3D 
@


1.1
log
@Rename Makefile to GNUmakefile.

----------------------------------------------------------------------
@
text
@a18 1
QWT3DDIR := $(shell pwd)/qwtplot3d-0.2.4-beta-patched
d28 9
d40 12
a51 5
# 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))
d53 3
a55 2
install:
	(cd configure && make install)
d57 4
a60 15
# 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)
d62 1
@

