summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
Diffstat (limited to 'progs')
-rw-r--r--progs/Makefile27
-rw-r--r--progs/demos/Makefile92
-rw-r--r--progs/miniglx/Makefile58
-rw-r--r--progs/redbook/Makefile41
-rw-r--r--progs/samples/Makefile34
-rw-r--r--progs/xdemos/Makefile79
6 files changed, 331 insertions, 0 deletions
diff --git a/progs/Makefile b/progs/Makefile
new file mode 100644
index 0000000000..f925de5860
--- /dev/null
+++ b/progs/Makefile
@@ -0,0 +1,27 @@
+# progs/Makefile
+
+TOP = ..
+
+include $(TOP)/configs/current
+
+SUBDIRS = $(PROGRAM_DIRS)
+
+
+default: $(TOP)/configs/current
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make ; \
+ popd ; \
+ fi \
+ done
+
+
+clean:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ pushd $$dir ; \
+ make clean; \
+ popd ; \
+ fi \
+ done
diff --git a/progs/demos/Makefile b/progs/demos/Makefile
new file mode 100644
index 0000000000..85cde5b916
--- /dev/null
+++ b/progs/demos/Makefile
@@ -0,0 +1,92 @@
+# progs/demos/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+INCDIR = $(TOP)/include
+
+OSMESA_LIBS = -L$(LIB_DIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
+
+LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB) $(LIB_DIR)/$(GLUT_LIB)
+
+PROGS = \
+ arbfplight \
+ arbocclude \
+ bounce \
+ clearspd \
+ cubemap \
+ drawpix \
+ fire \
+ fplight \
+ gamma \
+ gears \
+ geartrain \
+ glinfo \
+ gloss \
+ gltestperf \
+ glutfx \
+ isosurf \
+ ipers \
+ lodbias \
+ morph3d \
+ multiarb \
+ occlude \
+ osdemo \
+ paltex \
+ pixeltex \
+ pointblast \
+ ray \
+ readpix \
+ reflect \
+ renormal \
+ shadowtex \
+ spectex \
+ spriteblast \
+ stex3d \
+ teapot \
+ terrain \
+ tessdemo \
+ texcyl \
+ texdown \
+ texenv \
+ texobj \
+ trispd \
+ tunnel \
+ tunnel2 \
+ winpos
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+
+# make executable from .c file:
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+
+##### TARGETS #####
+
+default: readtex.c readtex.h $(PROGS)
+
+
+clean:
+ -rm -f *.o *~
+
+realclean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
+ -rm -f readtex.[ch]
+
+
+readtex.c:
+ cp $(TOP)/progs/util/readtex.c .
+
+readtex.h:
+ cp $(TOP)/progs/util/readtex.h .
+
+# special case: need the -lOSMesa library:
+osdemo: osdemo.c
+ $(CC) -I$(INCDIR) $(CFLAGS) osdemo.c $(OSMESA_LIBS) -o $@
diff --git a/progs/miniglx/Makefile b/progs/miniglx/Makefile
new file mode 100644
index 0000000000..6e6b0a8548
--- /dev/null
+++ b/progs/miniglx/Makefile
@@ -0,0 +1,58 @@
+# Makefile for miniglx demo programs
+
+TOP = ../..
+
+include $(TOP)/configs/current
+
+
+SOURCES = miniglxtest.c \
+ miniglxsample.c \
+ sample_server.c \
+ sample_server2.c \
+ manytex.c \
+ texline.c
+
+OBJECTS = $(SOURCES:.c=.o)
+
+PROGS = $(SOURCES:%.c=%)
+
+INCLUDES = \
+ -I. \
+ -I$(TOP)/include
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c:
+ $(CC) $(INCLUDES) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+.c.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
+
+.S.o:
+ $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
+
+
+##### TARGETS #####
+
+default: depend $(PROGS)
+
+clean:
+ rm -f $(PROGS)
+ rm -f *.o
+
+
+depend: $(SOURCES)
+ touch depend
+ makedepend -fdepend -Y $(INCLUDES) $(SOURCES) >& /dev/null
+
+
+# Emacs tags
+tags:
+ etags `find . -name \*.[ch]` `find ../include`
+
+
+include depend
diff --git a/progs/redbook/Makefile b/progs/redbook/Makefile
new file mode 100644
index 0000000000..f423108188
--- /dev/null
+++ b/progs/redbook/Makefile
@@ -0,0 +1,41 @@
+# progs/redbook/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+INCDIR = $(TOP)/include
+
+LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB) $(LIB_DIR)/$(GLUT_LIB)
+
+PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
+ bezcurve bezmesh checker clip colormat cube depthcue dof \
+ double drawf feedback fog fogindex font hello image light \
+ lines list material mipmap model movelight nurbs pickdepth \
+ picksquare plane planet polyoff polys quadric robot sccolorlight \
+ scene scenebamb sceneflat select smooth stencil stroke surface \
+ teaambient teapots tess tesswind texbind texgen texprox texsub \
+ texturesurf torus trim unproject varray wrap
+
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+
+
+##### TARGETS ######
+
+default: $(PROGS)
+
+clean:
+ -rm -f *.o *~
+
+realclean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
+
diff --git a/progs/samples/Makefile b/progs/samples/Makefile
new file mode 100644
index 0000000000..464492de73
--- /dev/null
+++ b/progs/samples/Makefile
@@ -0,0 +1,34 @@
+# progs/samples/Makefile
+
+TOP = ../..
+include $(TOP)/configs/current
+
+INCDIR = $(TOP)/include
+
+LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB) $(LIB_DIR)/$(GLUT_LIB)
+
+PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
+ font line logo nurb oglinfo olympic overlay point prim quad select \
+ shape sphere star stencil stretch texture tri wave
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
+
+
+
+##### TARGETS #####
+
+default: $(PROGS)
+
+clean:
+ -rm -f *.o *~
+
+realclean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
diff --git a/progs/xdemos/Makefile b/progs/xdemos/Makefile
new file mode 100644
index 0000000000..0904ee3445
--- /dev/null
+++ b/progs/xdemos/Makefile
@@ -0,0 +1,79 @@
+# progs/xdemos/Makefile
+
+TOP = ../../
+include $(TOP)/configs/current
+
+
+INCDIR = $(TOP)/include
+
+LIBS = -L$(LIB_DIR) $(APP_LIB_DEPS)
+
+LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB)
+
+PROGS = glthreads \
+ glxdemo \
+ glxgears \
+ glxheads \
+ glxinfo \
+ glxpixmap \
+ glxpbdemo \
+ glxswapcontrol \
+ manywin \
+ offset \
+ pbinfo \
+ pbdemo \
+ wincopy \
+ xdemo \
+ xfont \
+ xrotfontdemo
+
+
+
+##### RULES #####
+
+.SUFFIXES:
+.SUFFIXES: .c
+
+.c: $(LIB_DEP)
+ $(CC) -I$(INCDIR) $(CFLAGS) $< $(LIBS) -o $@
+
+
+##### TARGETS #####
+
+default: $(PROGS)
+
+
+clean:
+ -rm -f *.o *~
+
+realclean:
+ -rm -f $(PROGS)
+ -rm -f *.o *~
+
+
+# special cases
+pbinfo: pbinfo.o pbutil.o
+ $(CC) pbinfo.o pbutil.o $(LIBS) -o $@
+
+pbdemo: pbdemo.o pbutil.o
+ $(CC) pbdemo.o pbutil.o $(LIBS) -o $@
+
+pbinfo.o: pbinfo.c pbutil.h
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
+
+pbdemo.o: pbdemo.c pbutil.h
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
+
+pbutil.o: pbutil.c pbutil.h
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
+
+
+xrotfontdemo: xrotfontdemo.o xuserotfont.o
+ $(CC) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
+
+xuserotfont.o: xuserotfont.c xuserotfont.h
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c
+
+xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
+ $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xrotfontdemo.c
+