# Build the verite-gl example programs against the in-tree libGL CC ?= cc CFLAGS ?= -O2 -mcpu=603e -fsigned-char -fno-strict-aliasing -ffast-math TOP = .. GLINC = -I$(TOP)/include LIBGL = $(TOP)/lib/libGL.a LIBS = -lm PROGS = cube rave teapot .PHONY: all clean all: $(PROGS) $(PROGS): %: %.c $(LIBGL) $(CC) $(CFLAGS) $(GLINC) $< $(LIBGL) $(LIBS) -o $@ teapot: teapot_data.inc clean: rm -f $(PROGS)