XDIR != if [ -d /usr/X11R7 ]; then echo /usr/X11R7; else echo /usr/X11R6; fi CC_ADD = -g -I$(XDIR)/include BUILDMAIN = basic-light cube dice icosa maze2 maze3 rainbow-d20 visdump BUILDBINS = $(BUILDMAIN) mesh-flat mesh-anneal 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_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-flat = mesh-flat.o OBJ_mesh-anneal = 3darith.o mathutils.o mesh-anneal.o OBJ_rainbow-d20 = 3darith.o findvis.o mathutils.o rainbow-d20.o LIBS = -L$(XDIR)/lib -Wl,-rpath,$(XDIR)/lib -lGL -lX11 -lm .MAIN: $(BUILDMAIN) all: .PHONY $(BUILDBINS) .include