[Commit] cairo-demo README, NONE, 1.1 Makefile, 1.4, 1.5 xrfreq.c, 1.3, NONE xrknockout.c, 1.10, NONE xrspline.c, 1.10, NONE xrtest.c, 1.9, NONE

Carl Worth commit at keithp.com
Mon Aug 18 12:11:39 PDT 2003


Committed by: cworth

Update of /local/src/CVS/cairo-demo
In directory home.keithp.com:/tmp/cvs-serv20528

Modified Files:
	Makefile 
Added Files:
	README 
Removed Files:
	xrfreq.c xrknockout.c xrspline.c xrtest.c 
Log Message:
Added demos from OLS paper.

--- NEW FILE: README ---
Cairo demonstration programs.

Here are several simple programs intended to demonstrate some of the
features of the CAiro graphics library (http://cairographics.org).

After installing Cairo, it is quite simple to compile these demo
programs. Just type:

	make

The demos in the png each draw to an in memory image, then save that
image as a PNG file. These demos were created for the Cairo (Xr) paper
presented at the 2003 Ottawa Linux Symposium. They were intentionally
designed to showcase individual features of Cairo in a very simple
way. As such, the source code should be very easy to understand and
can make a good introduction to Cairo. More explanation can be had in
the paper which is available online:

	http://cairographics.org/xr_ols2003/

	(Note, the paper was written before Xr was renamed to Cairo,
	but with a simple mental substitution, it should still be easy
	to understand).

The demos in the X11 directory use Cairo's X11 backend to draw to a
window. Some of the examples (eg. cairo-freq and cairo-knockout)
automatically scale the drawing to fit the window. The cairo-spline
demo allows the user to interact with a mouse.

Questions or comments may be directed to the cairo at cairographics.org
mailing list:

	http://cairographics.org/cgi-bin/mailman/listinfo/cairo

Have fun.

	

Index: Makefile
===================================================================
RCS file: /local/src/CVS/cairo-demo/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Makefile	18 Jul 2003 18:35:23 -0000	1.4
+++ Makefile	18 Aug 2003 18:11:37 -0000	1.5
@@ -1,11 +1,10 @@
-CFLAGS=-g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls `pkg-config --cflags cairo`
-LDFLAGS=`pkg-config --libs cairo`
-
-PROGS=xrtest xrspline xrknockout xrfreq
+all: subdirs
 
-all: $(PROGS)
+.PHONY: all subdirs clean
+subdirs:
+	${MAKE} -C X11 ${MAKECMDGOALS}
+	${MAKE} -C png ${MAKECMDGOALS}
 
-clean:
-	rm -f $(PROGS) *.o
+clean: subdirs
 
 

--- xrfreq.c DELETED ---

--- xrknockout.c DELETED ---

--- xrspline.c DELETED ---

--- xrtest.c DELETED ---




More information about the Commit mailing list