XDIR != if [ -d /usr/X11R7 ]; then echo /usr/X11R7; else echo /usr/X11R6; fi CC_ADD = -g -I$(XDIR)/include -DDC_CTLR BUILDMAIN = 5cube-5colour 5tetra-12colour 5tetra-5colour basic-light\ cube dice dodec-cube icosa maze2 maze3 rainbow-d20 sphere visdump BUILDBINS = $(BUILDMAIN) mesh-flat mesh-anneal OBJ_5cube-5colour = 3darith.o 5cube-5colour.o findvis.o mathutils.o OBJ_5tetra-12colour = 3darith.o 5tetra-12colour.o findvis.o mathutils.o OBJ_5tetra-5colour = 3darith.o 5tetra-5colour.o findvis.o mathutils.o OBJ_basic-light = 3darith.o basic-light.o findvis.o mathutils.o OBJ_cube = 3darith.o cube.o findvis.o mathutils.o OBJ_dice = 3darith.o dice.o findvis.o mathutils.o OBJ_dodec-cube = 3darith.o dodec-cube.o findvis.o mathutils.o OBJ_icosa = 3darith.o findvis.o icosa.o mathutils.o OBJ_maze2 = 3darith.o findvis.o mathutils.o maze2.o OBJ_maze3 = 3darith.o findvis.o mathutils.o maze3.o OBJ_mesh-anneal = 3darith.o mathutils.o mesh-anneal.o OBJ_mesh-flat = mesh-flat.o OBJ_rainbow-d20 = 3darith.o findvis.o mathutils.o rainbow-d20.o OBJ_sphere = 3darith.o findvis.o mathutils.o sphere.o LIBS = -L$(XDIR)/lib -Wl,-rpath,$(XDIR)/lib -lGL -lX11 -lm .MAIN: $(BUILDMAIN) all: .PHONY $(BUILDBINS) .include