GL_LIBS = generic.o 
LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
PROGS = chess cone_ball material tea teapots texgen nurbs surface\
	checker checker2 texturesurf sphere cone font model disk

all: generic.o $(PROGS)

generic.o:
	$(CC) -c $(CFLAGS) $< -o $@

.c: $(LIB_DEP) generic.o
	$(CC) $(CFLAGS) $< $(GL_LIBS) -framework AppKit -framework GL -o $@

clean:
	rm -f $(PROGS) generic.o
