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
)
41 # make executable from .c file:
43 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
52 ##### Extra dependencies
54 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
58 readtex.c
: $(TOP
)/progs
/util
/readtex.c
61 readtex.h
: $(TOP
)/progs
/util
/readtex.h
64 readtex.o
: readtex.c readtex.h
65 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
68 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
71 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
74 shaderutil.o
: shaderutil.c shaderutil.h
75 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
79 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
80 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
82 bitmap
: bitmap.o shaderutil.o
83 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
86 brick.o
: brick.c extfuncs.h shaderutil.h
87 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
89 brick
: brick.o shaderutil.o
90 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
93 bump.o
: bump.c extfuncs.h shaderutil.h
94 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
96 bump
: bump.o shaderutil.o
97 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
100 convolutions.o
: convolutions.c readtex.h
101 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
103 convolutions
: convolutions.o readtex.o
104 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
107 deriv.o
: deriv.c extfuncs.h shaderutil.h
108 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
110 deriv
: deriv.o shaderutil.o
111 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
114 identity.o
: identity.c extfuncs.h shaderutil.h
115 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) identity.c
117 identity
: identity.o shaderutil.o
118 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) identity.o shaderutil.o
$(LIBS
) -o
$@
121 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
122 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
124 fragcoord
: fragcoord.o shaderutil.o
125 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
128 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
129 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
131 mandelbrot
: mandelbrot.o shaderutil.o
132 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
134 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
135 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
137 multitex
: multitex.o readtex.o shaderutil.o
138 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
141 noise.o
: noise.c extfuncs.h shaderutil.h
142 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
144 noise
: noise.o shaderutil.o
145 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
148 points.o
: points.c extfuncs.h shaderutil.h
149 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
151 points
: points.o shaderutil.o
152 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
155 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
156 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
158 pointcoord
: pointcoord.o readtex.o shaderutil.o
159 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
162 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
163 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
165 skinning
: skinning.o readtex.o shaderutil.o
166 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
169 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
170 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
172 texdemo1
: texdemo1.o readtex.o shaderutil.o
173 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
176 toyball.o
: toyball.c extfuncs.h shaderutil.h
177 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
179 toyball
: toyball.o shaderutil.o
180 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
183 twoside.o
: twoside.c extfuncs.h shaderutil.h
184 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
186 twoside
: twoside.o shaderutil.o
187 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
190 trirast.o
: trirast.c extfuncs.h shaderutil.h
191 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
193 trirast
: trirast.o shaderutil.o
194 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@
197 vert-or-frag-only.o
: vert-or-frag-only.c extfuncs.h shaderutil.h
198 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-or-frag-only.c
200 vert-or-frag-only
: vert-or-frag-only.o shaderutil.o
201 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-or-frag-only.o shaderutil.o
$(LIBS
) -o
$@
205 vert-tex.o
: vert-tex.c extfuncs.h shaderutil.h
206 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-tex.c
208 vert-tex
: vert-tex.o shaderutil.o
209 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-tex.o shaderutil.o
$(LIBS
) -o
$@