4 include $(TOP
)/configs
/current
6 INCDIR
= $(TOP
)/include
9 $(TOP
)/$(LIB_DIR
)/$(GL_LIB_NAME
) \
10 $(TOP
)/$(LIB_DIR
)/$(GLU_LIB_NAME
) \
11 $(TOP
)/$(LIB_DIR
)/$(GLUT_LIB_NAME
)
13 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
15 INCLUDE_DIRS
= -I
$(TOP
)/progs
/util
54 UTIL_OBJS
= $(UTIL_SOURCES
:.c
=.o
)
57 PROGS
= $(DEMO_SOURCES
:%.c
=%)
63 # make .o file from .c file:
65 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) $< -o
$@
68 # make executable from .o files
70 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(UTIL_OBJS
) $(LIBS
) -o
$@
87 ##### Extra dependencies
89 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
92 readtex.c
: $(TOP
)/progs
/util
/readtex.c
95 readtex.h
: $(TOP
)/progs
/util
/readtex.h
98 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
101 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
106 array.o
: $(UTIL_HEADERS
)
108 array
: array.o
$(UTIL_OBJS
)
111 bitmap.o
: $(UTIL_HEADERS
)
113 bitmap
: bitmap.o
$(UTIL_OBJS
)
116 brick.o
: $(UTIL_HEADERS
)
118 brick
: brick.o
$(UTIL_OBJS
)
121 bump.o
: $(UTIL_HEADERS
)
123 bump
: bump.o
$(UTIL_OBJS
)
126 convolutions.o
: $(UTIL_HEADERS
)
128 convolutions
: convolutions.o
$(UTIL_OBJS
)
131 deriv.o
: deriv.c
$(UTIL_HEADERS
)
133 deriv
: deriv.o
$(UTIL_OBJS
)
136 identity.o
: $(UTIL_HEADERS
)
138 identity
: identity.o
$(UTIL_OBJS
)
141 fragcoord.o
: $(UTIL_HEADERS
)
143 fragcoord
: fragcoord.o
$(UTIL_OBJS
)
146 linktest.o
: $(UTIL_HEADERS
)
148 linktest
: linktest.o
$(UTIL_OBJS
)
151 mandelbrot.o
: $(UTIL_HEADERS
)
153 mandelbrot
: mandelbrot.o
$(UTIL_OBJS
)
156 multinoise.o
: $(UTIL_HEADERS
)
158 multinoise
: multinoise.o
$(UTIL_OBJS
)
161 multitex.o
: $(UTIL_HEADERS
)
163 multitex
: multitex.o
$(UTIL_OBJS
)
166 noise.o
: $(UTIL_HEADERS
)
168 noise
: noise.o
$(UTIL_OBJS
)
171 noise2.o
: $(UTIL_HEADERS
)
173 noise2
: noise2.o
$(UTIL_OBJS
)
176 points.o
: $(UTIL_HEADERS
)
178 points
: points.o
$(UTIL_OBJS
)
181 pointcoord.o
: $(UTIL_HEADERS
)
183 pointcoord
: pointcoord.o
$(UTIL_OBJS
)
186 samplers.o
: $(UTIL_HEADERS
)
188 samplers
: samplers.o
$(UTIL_OBJS
)
191 samplers_array.o
: $(UTIL_HEADERS
)
193 samplers_array
: samplers_array.o
$(UTIL_OBJS
)
196 shadow_sampler.o
: $(UTIL_HEADERS
)
198 shadow_sampler
: shadow_sampler.o
$(UTIL_OBJS
)
201 skinning.o
: $(UTIL_HEADERS
)
203 skinning
: skinning.o
$(UTIL_OBJS
)
206 texaaline.o
: $(UTIL_HEADERS
)
208 texaaline
: texaaline.o
$(UTIL_OBJS
)
211 texdemo1.o
: $(UTIL_HEADERS
)
213 texdemo1
: texdemo1.o
$(UTIL_OBJS
)
216 toyball.o
: $(UTIL_HEADERS
)
218 toyball
: toyball.o
$(UTIL_OBJS
)
221 twoside.o
: $(UTIL_HEADERS
)
223 twoside
: twoside.o
$(UTIL_OBJS
)
226 trirast.o
: $(UTIL_HEADERS
)
228 trirast
: trirast.o
$(UTIL_OBJS
)
231 vert-or-frag-only.o
: $(UTIL_HEADERS
)
233 vert-or-frag-only
: vert-or-frag-only.o
$(UTIL_OBJS
)
236 vert-tex.o
: $(UTIL_HEADERS
)
238 vert-tex
: vert-tex.o
$(UTIL_OBJS
)