1 # progs/samples/Makefile
4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
8 LIB_DEP
= $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
10 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLEW_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
12 PROGS
= accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
13 font line logo nurb olympic overlay point prim rgbtoppm quad select \
14 shape sphere star stencil stretch texture tri wave
23 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
31 sphere
: sphere.o readtex.o
32 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) sphere.o readtex.o
$(LIBS
) -o
$@
34 sphere.o
: sphere.c readtex.h
35 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) sphere.c
37 readtex.c
: $(TOP
)/progs
/util
/readtex.c
40 readtex.h
: $(TOP
)/progs
/util
/readtex.h
43 readtex.o
: readtex.c readtex.h
44 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) $< -o
$@
50 -rm -f readtex.c readtex.h