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 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
) $(LDFLAGS
) $< $(APP_LIB_DEPS
) -o
$@
29 sphere
: sphere.o readtex.o
30 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) 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
: $(TOP
)/progs
/util
/readtex.c
38 readtex.h
: $(TOP
)/progs
/util
/readtex.h
41 readtex.o
: readtex.c readtex.h
42 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) $< -o
$@
48 -rm -f readtex.c readtex.h