add support for LDFLAGS env var
[mesa.git] / progs / redbook / Makefile
1 # progs/redbook/Makefile
2
3 TOP = ../..
4 include $(TOP)/configs/current
5
6 INCDIR = $(TOP)/include
7
8 LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
9
10 PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
11 bezcurve bezmesh checker clip colormat cube depthcue dof \
12 double drawf feedback fog fogindex font hello image light \
13 lines list material mipmap model movelight nurbs pickdepth \
14 picksquare plane planet polyoff polys quadric robot sccolorlight \
15 scene scenebamb sceneflat select smooth stencil stroke surface \
16 teaambient teapots tess tesswind texbind texgen texprox texsub \
17 texturesurf torus trim unproject varray wrap
18
19
20
21 ##### RULES #####
22
23 .SUFFIXES:
24 .SUFFIXES: .c
25
26 .c: $(LIB_DEP)
27 $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< $(APP_LIB_DEPS) -o $@
28
29
30
31 ##### TARGETS ######
32
33 default: $(PROGS)
34
35
36 clean:
37 -rm -f $(PROGS)
38 -rm -f *.o *~
39