# # $Id: Makefile.x11,v 1.20 2004/04/18 18:23:31 wes Exp $ # $Revision: 1.20 $ # $Log: Makefile.x11,v $ # Revision 1.20 2004/04/18 18:23:31 wes # Removed some dead build targets. # # Revision 1.19 2004/04/18 17:05:31 wes # Revert to 1.5.1 version of per-demo builds to avoid problems with # brain-dead make's on some systems. # # Revision 1.18 2004/03/10 02:12:26 wes # Beautification # # Revision 1.17 2004/02/23 02:55:42 wes # Added build targets for indexedPrims2D. # # Revision 1.16 2003/11/05 15:04:37 wes # Added build rules for fpsVis3d. # # Revision 1.15 2003/04/13 18:13:48 wes # Add initial build support for using Chromium. # # Revision 1.14 2003/04/12 21:02:58 wes # Minor tweaks. # # Revision 1.13 2003/01/16 22:22:44 wes # Updated all source files to reflect new organization of header files: all # headers that were formerly located in include/rmaux, include/rmv and # include/rmi are now located in include/rm. # # Revision 1.12 2002/09/05 15:09:31 wes # Added build rules for spriteTest.c and textureTest.c # # Revision 1.11 2002/08/19 00:22:30 wes # Added orderTest target. # # Revision 1.10 2002/06/17 00:33:58 wes # Added pickTest, pickListTest targets. # # Revision 1.9 2001/10/15 00:22:10 wes # Added fogtest and imgMirror demos. # # Revision 1.8 2001/06/03 20:15:23 wes # Removed DIOLIB from tmap2d build (it reads a JPEG input file now, # rather than an AVS image), added DIOLIB to LIBS for offscreen demo. # # Revision 1.7 2001/05/26 14:24:10 wes # Added glxinfo, spotlight demos. # # Revision 1.6 2001/03/31 16:55:18 wes # Added procmode.h, which defines an RMpipe processing mode used in # most demonstration programs. The default processing mode is # RM_PIPE_MULTISTAGE_VIEW_PARALLEL. # # Revision 1.5 2000/12/03 23:33:03 wes # t3dstubs.o is now NOT linked in by default. Those using nVidia # OpenGL drivers under Linux must modify Makefile.x11 by hand to # get t3dstubs.o linked in. # # Revision 1.4 2000/12/02 17:24:32 wes # Version 1.4.0-alpha-1 checkin. See the RELEASENOTES file for # a summary of changes. With this checkin, these demo programs # are no longer compatible with versions of the OpenRM API that # are pre-1.4.0. # # Revision 1.3 2000/08/31 02:15:08 wes # Added clipper demo stuff. # # Revision 1.2 2000/04/20 18:04:14 wes # added lines2d.c to build # # Revision 1.1.1.1 2000/02/28 21:55:30 wes # OpenRM 1.2 Release # # Revision 1.10 2000/02/28 17:21:54 wes # RM 1.2, pre-OpenRM # # SHELL=/bin/sh # # the following makeinclude file is generated by the "configure" # script in this directory. that script configures this makefile # so it can find OpenGL, RM Scene Graph and X11. include makeinclude CFLAGS = $(OPENGLCFLAGS) $(ARCHFLAGS) $(RMCFLAGS) $(OPTFLAGS) $(JPEGINC) $(CRINC) LIBS = $(RMLIBS) $(OPENGLLIBS) $(JPEGLIB) $(X11LIBS) $(CRLIBS) # # the following is a very simple data io library used for getting data # into these example programs. # # ideally, you'll want to use the example programs which import the sample # data, substitute in your favorite data io layer (HDF, Khoros PDS, etc) # or hack on the dio library to read in your data. # DIOLIB = libdio.a progs = \ cones \ clipper \ clrball \ dyntmap \ elev \ elev-2vu \ elevImage \ fogtest \ fpsVis3d \ glxinfo \ imgMirror \ indexedPrims2D \ isodrv \ isodrv-mt \ jack \ jballs \ keyfunc\ lines2d \ offscreen \ orderTest \ pickListTest \ pickTest \ pntcld \ pdb \ rm2screen \ spotlight \ spriteTest \ switchtest \ tcube \ text2d \ textureTest \ tfly \ tmap2d \ trans2d \ vis2d \ vis3d \ vector3d \ vrend \ vslicer all: $(progs) cones: cones.c $(CC) $(CFLAGS) cones.c -o $@ $(LIBS) clipper: clipper.c $(CC) $(CFLAGS) clipper.c -o $@ $(LIBS) clrball: clrball.c $(CC) $(CFLAGS) clrball.c -o $@ $(LIBS) dyntmap: dyntmap.c $(DIOLIB) $(CC) $(CFLAGS) dyntmap.c -o $@ $(DIOLIB) $(LIBS) elev: elev.c $(DIOLIB) $(CC) $(CFLAGS) elev.c -o $@ $(DIOLIB) $(LIBS) elev-2vu: elev-2vu.c $(DIOLIB) $(CC) $(CFLAGS) elev-2vu.c -o $@ $(DIOLIB) $(LIBS) elevImage: elevImage.c $(DIOLIB) $(CC) $(CFLAGS) elevImage.c -o $@ $(DIOLIB) $(LIBS) fogtest: fogtest.c $(DIOLIB) $(CC) $(CFLAGS) fogtest.c -o $@ $(DIOLIB) $(LIBS) fpsVis3d: fpsVis3d.c $(DIOLIB) $(CC) $(CFLAGS) fpsVis3d.c -o $@ $(DIOLIB) $(LIBS) glxinfo: glxinfo.c $(CC) $(CFLAGS) glxinfo.c -o $@ $(LIBS) imgMirror: imgMirror.c $(CC) $(CFLAGS) imgMirror.c -o $@ $(LIBS) indexedPrims2D: indexedPrims2D.c $(CC) $(CFLAGS) indexedPrims2D.c -o $@ $(LIBS) isodrv: isodrv.c $(DIOLIB) $(CC) $(CFLAGS) isodrv.c $(DIOLIB) -o $@ $(LIBS) jack: jack.c $(CC) $(CFLAGS) jack.c -o $@ $(LIBS) jballs: jballs.c $(CC) $(CFLAGS) jballs.c -o $@ $(LIBS) keyfunc: keyfunc.c $(CC) $(CFLAGS) keyfunc.c -o $@ $(LIBS) lines2d: lines2d.c $(CC) $(CFLAGS) lines2d.c -o $@ $(LIBS) #markers2d: markers2d.c # $(CC) $(CFLAGS) markers2d.c -o markers2d $(LIBS) offscreen: offscreen.c $(DIOLIB) $(CC) $(CFLAGS) offscreen.c -o $@ $(DIOLIB) $(LIBS) orderTest: orderTest.c $(CC) $(CFLAGS) orderTest.c -o $@ $(LIBS) pickListTest: pickListTest.c $(CC) $(CFLAGS) pickListTest.c -o $@ $(LIBS) pickTest: pickTest.c $(CC) $(CFLAGS) pickTest.c -o $@ $(LIBS) pntcld: pntcld.c $(CC) $(CFLAGS) pntcld.c -o $@ $(LIBS) pdb: pdb.c pdbwork.o $(CC) $(CFLAGS) pdb.c pdbwork.o -o $@ $(LIBS) pdbwork.o: pdbwork.c $(CC) $(CFLAGS) -c pdbwork.c rm2screen: rm2screen.c barrier.o $(CC) $(CFLAGS) rm2screen.c -o $@ barrier.o $(LIBS) spotlight: spotlight.c $(CC) $(CFLAGS) spotlight.c -o $@ $(LIBS) spriteTest: spriteTest.c $(CC) $(CFLAGS) spriteTest.c -o $@ $(LIBS) switchtest: switchtest.c $(CC) $(CFLAGS) switchtest.c -o $@ $(LIBS) tcube: tcube.c $(DIOLIB) $(CC) $(CFLAGS) tcube.c -o $@ $(LIBS) tfly: tfly.c $(DIOLIB) $(CC) $(CFLAGS) tfly.c -o $@ $(DIOLIB) $(LIBS) text2d: text2d.c $(CC) $(CFLAGS) text2d.c -o $@ $(LIBS) textureTest: textureTest.c $(CC) $(CFLAGS) textureTest.c -o $@ $(LIBS) tmap2d: tmap2d.c $(CC) $(CFLAGS) tmap2d.c -o $@ $(LIBS) trans2d: trans2d.c $(DIOLIB) $(CC) $(CFLAGS) trans2d.c -o $@ $(DIOLIB) $(LIBS) vis3d: vis3d.c $(DIOLIB) $(CC) $(CFLAGS) vis3d.c -o $@ $(DIOLIB) $(LIBS) vis2d: vis2d.c $(DIOLIB) $(CC) $(CFLAGS) vis2d.c -o $@ $(DIOLIB) $(LIBS) vector3d: vector3d.c $(DIOLIB) $(CC) $(CFLAGS) vector3d.c -o $@ $(DIOLIB) $(LIBS) vrend: vrend.c $(CC) $(CFLAGS) vrend.c -o $@ $(LIBS) vslicer: vslicer.c $(CC) $(CFLAGS) vslicer.c -o $@ $(LIBS) barrier.o: barrier.c barrier.h $(CC) $(CFLAGS) -c barrier.c isodrv-mt: isodrv-mt.c $(DIOLIB) barrier.o $(CC) $(CFLAGS) isodrv-mt.c $(DIOLIB) -o $@ $(LIBS) libdio.a: libdio.c libdio.h $(CC) -c $(CFLAGS) libdio.c if (rm libdio.a) then :; fi ar crs libdio.a libdio.o clean: if (rm *.o *.a $(progs) *~ TAGS core *.x *.ps *.jpg) then :; fi pristine: if (rm *.o *.a $(progs) *~ TAGS core .pur* *.x *.ps *.jpg) then :; fi