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
)
39 # make executable from .c file:
41 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
50 ##### Extra dependencies
52 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
56 readtex.c
: $(TOP
)/progs
/util
/readtex.c
59 readtex.h
: $(TOP
)/progs
/util
/readtex.h
62 readtex.o
: readtex.c readtex.h
63 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
66 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
69 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
72 shaderutil.o
: shaderutil.c shaderutil.h
73 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
77 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
78 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
80 bitmap
: bitmap.o shaderutil.o
81 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
84 brick.o
: brick.c extfuncs.h shaderutil.h
85 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
87 brick
: brick.o shaderutil.o
88 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
91 bump.o
: bump.c extfuncs.h shaderutil.h
92 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
94 bump
: bump.o shaderutil.o
95 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
98 convolutions.o
: convolutions.c readtex.h
99 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
101 convolutions
: convolutions.o readtex.o
102 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
105 deriv.o
: deriv.c extfuncs.h shaderutil.h
106 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
108 deriv
: deriv.o shaderutil.o
109 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
112 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
113 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
115 fragcoord
: fragcoord.o shaderutil.o
116 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
119 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
120 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
122 mandelbrot
: mandelbrot.o shaderutil.o
123 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
126 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
127 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
129 multitex
: multitex.o readtex.o shaderutil.o
130 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
133 noise.o
: noise.c extfuncs.h shaderutil.h
134 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
136 noise
: noise.o shaderutil.o
137 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
140 points.o
: points.c extfuncs.h shaderutil.h
141 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
143 points
: points.o shaderutil.o
144 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
147 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
148 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
150 pointcoord
: pointcoord.o readtex.o shaderutil.o
151 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
154 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
155 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
157 skinning
: skinning.o readtex.o shaderutil.o
158 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
161 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
162 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
164 texdemo1
: texdemo1.o readtex.o shaderutil.o
165 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
168 toyball.o
: toyball.c extfuncs.h shaderutil.h
169 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
171 toyball
: toyball.o shaderutil.o
172 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
175 twoside.o
: twoside.c extfuncs.h shaderutil.h
176 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
178 twoside
: twoside.o shaderutil.o
179 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
182 trirast.o
: trirast.c extfuncs.h shaderutil.h
183 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
185 trirast
: trirast.o shaderutil.o
186 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@
189 vert-tex.o
: vert-tex.c extfuncs.h shaderutil.h
190 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-tex.c
192 vert-tex
: vert-tex.o shaderutil.o
193 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-tex.o shaderutil.o
$(LIBS
) -o
$@