1 # progs/samples/Makefile
4 include $(TOP)/configs/current
6 INCDIR = $(TOP)/include
8 LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(GLU_LIB_NAME) $(LIB_DIR)/$(GLUT_LIB_NAME)
10 PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
11 font line logo nurb olympic overlay point prim quad select \
12 shape sphere star stencil stretch texture tri wave
21 $(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@
29 sphere: sphere.o readtex.o
30 $(CC) -I$(INCDIR) $(CFLAGS) sphere.o readtex.o $(APP_LIB_DEPS) -o $@
32 sphere.o: sphere.c readtex.h
33 $(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
35 readtex.c: ../util/readtex.c
36 cp ../util/readtex.c .
38 readtex.h: ../util/readtex.h
39 cp ../util/readtex.h .
41 readtex.o: readtex.c readtex.h
42 $(CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@