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
)
43 # make executable from .c file:
45 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
54 ##### Extra dependencies
56 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
60 readtex.c
: $(TOP
)/progs
/util
/readtex.c
63 readtex.h
: $(TOP
)/progs
/util
/readtex.h
66 readtex.o
: readtex.c readtex.h
67 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
70 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
73 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
76 shaderutil.o
: shaderutil.c shaderutil.h
77 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
81 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
82 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
84 bitmap
: bitmap.o shaderutil.o
85 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
88 brick.o
: brick.c extfuncs.h shaderutil.h
89 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
91 brick
: brick.o shaderutil.o
92 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
95 bump.o
: bump.c extfuncs.h shaderutil.h
96 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
98 bump
: bump.o shaderutil.o
99 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
102 convolutions.o
: convolutions.c readtex.h
103 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
105 convolutions
: convolutions.o readtex.o
106 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
109 deriv.o
: deriv.c extfuncs.h shaderutil.h
110 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
112 deriv
: deriv.o shaderutil.o
113 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
116 identity.o
: identity.c extfuncs.h shaderutil.h
117 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) identity.c
119 identity
: identity.o shaderutil.o
120 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) identity.o shaderutil.o
$(LIBS
) -o
$@
123 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
124 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
126 fragcoord
: fragcoord.o shaderutil.o
127 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
130 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
131 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
133 mandelbrot
: mandelbrot.o shaderutil.o
134 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
136 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
137 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
139 multitex
: multitex.o readtex.o shaderutil.o
140 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
143 noise.o
: noise.c extfuncs.h shaderutil.h
144 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
146 noise
: noise.o shaderutil.o
147 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
150 points.o
: points.c extfuncs.h shaderutil.h
151 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
153 points
: points.o shaderutil.o
154 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
157 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
158 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
160 pointcoord
: pointcoord.o readtex.o shaderutil.o
161 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
164 samplers.o
: samplers.c readtex.h extfuncs.h shaderutil.h
165 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) samplers.c
167 samplers
: samplers.o readtex.o shaderutil.o
168 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) samplers.o readtex.o shaderutil.o
$(LIBS
) -o
$@
170 samplers_array.o
: samplers.c readtex.h extfuncs.h shaderutil.h
171 $(APP_CC
) -c
-DSAMPLERS_ARRAY
-I
$(INCDIR
) $(CFLAGS
) samplers.c
-o samplers_array.o
173 samplers_array
: samplers_array.o readtex.o shaderutil.o
174 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) samplers_array.o readtex.o shaderutil.o
$(LIBS
) -o
$@
176 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
177 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
179 skinning
: skinning.o readtex.o shaderutil.o
180 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
183 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
184 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
186 texdemo1
: texdemo1.o readtex.o shaderutil.o
187 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
190 toyball.o
: toyball.c extfuncs.h shaderutil.h
191 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
193 toyball
: toyball.o shaderutil.o
194 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
197 twoside.o
: twoside.c extfuncs.h shaderutil.h
198 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
200 twoside
: twoside.o shaderutil.o
201 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
204 trirast.o
: trirast.c extfuncs.h shaderutil.h
205 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
207 trirast
: trirast.o shaderutil.o
208 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@
211 vert-or-frag-only.o
: vert-or-frag-only.c extfuncs.h shaderutil.h
212 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-or-frag-only.c
214 vert-or-frag-only
: vert-or-frag-only.o shaderutil.o
215 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-or-frag-only.o shaderutil.o
$(LIBS
) -o
$@
218 vert-tex.o
: vert-tex.c extfuncs.h shaderutil.h
219 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-tex.c
221 vert-tex
: vert-tex.o shaderutil.o
222 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-tex.o shaderutil.o
$(LIBS
) -o
$@