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
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
44 # make executable from .c file:
46 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
55 ##### Extra dependencies
57 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
61 readtex.c
: $(TOP
)/progs
/util
/readtex.c
64 readtex.h
: $(TOP
)/progs
/util
/readtex.h
67 readtex.o
: readtex.c readtex.h
68 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
71 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
74 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
77 shaderutil.o
: shaderutil.c shaderutil.h
78 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
82 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
83 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
85 bitmap
: bitmap.o shaderutil.o
86 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
89 brick.o
: brick.c extfuncs.h shaderutil.h
90 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
92 brick
: brick.o shaderutil.o
93 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
96 bump.o
: bump.c extfuncs.h shaderutil.h
97 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
99 bump
: bump.o shaderutil.o
100 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
103 convolutions.o
: convolutions.c readtex.h
104 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
106 convolutions
: convolutions.o readtex.o
107 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
110 deriv.o
: deriv.c extfuncs.h shaderutil.h
111 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
113 deriv
: deriv.o shaderutil.o
114 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
117 identity.o
: identity.c extfuncs.h shaderutil.h
118 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) identity.c
120 identity
: identity.o shaderutil.o
121 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) identity.o shaderutil.o
$(LIBS
) -o
$@
124 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
125 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
127 fragcoord
: fragcoord.o shaderutil.o
128 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
131 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
132 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
134 mandelbrot
: mandelbrot.o shaderutil.o
135 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
137 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
138 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
140 multitex
: multitex.o readtex.o shaderutil.o
141 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
144 noise.o
: noise.c extfuncs.h shaderutil.h
145 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
147 noise
: noise.o shaderutil.o
148 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
151 points.o
: points.c extfuncs.h shaderutil.h
152 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
154 points
: points.o shaderutil.o
155 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
158 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
159 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
161 pointcoord
: pointcoord.o readtex.o shaderutil.o
162 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
165 samplers.o
: samplers.c readtex.h extfuncs.h shaderutil.h
166 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) samplers.c
168 samplers
: samplers.o readtex.o shaderutil.o
169 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) samplers.o readtex.o shaderutil.o
$(LIBS
) -o
$@
171 samplers_array.o
: samplers.c readtex.h extfuncs.h shaderutil.h
172 $(APP_CC
) -c
-DSAMPLERS_ARRAY
-I
$(INCDIR
) $(CFLAGS
) samplers.c
-o samplers_array.o
174 samplers_array
: samplers_array.o readtex.o shaderutil.o
175 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) samplers_array.o readtex.o shaderutil.o
$(LIBS
) -o
$@
177 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
178 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
180 skinning
: skinning.o readtex.o shaderutil.o
181 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
184 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
185 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
187 texdemo1
: texdemo1.o readtex.o shaderutil.o
188 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
191 toyball.o
: toyball.c extfuncs.h shaderutil.h
192 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
194 toyball
: toyball.o shaderutil.o
195 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
198 twoside.o
: twoside.c extfuncs.h shaderutil.h
199 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
201 twoside
: twoside.o shaderutil.o
202 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
205 trirast.o
: trirast.c extfuncs.h shaderutil.h
206 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
208 trirast
: trirast.o shaderutil.o
209 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@
212 vert-or-frag-only.o
: vert-or-frag-only.c extfuncs.h shaderutil.h
213 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-or-frag-only.c
215 vert-or-frag-only
: vert-or-frag-only.o shaderutil.o
216 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-or-frag-only.o shaderutil.o
$(LIBS
) -o
$@
219 vert-tex.o
: vert-tex.c extfuncs.h shaderutil.h
220 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-tex.c
222 vert-tex
: vert-tex.o shaderutil.o
223 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-tex.o shaderutil.o
$(LIBS
) -o
$@