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
)
40 # make executable from .c file:
42 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
51 ##### Extra dependencies
53 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
57 readtex.c
: $(TOP
)/progs
/util
/readtex.c
60 readtex.h
: $(TOP
)/progs
/util
/readtex.h
63 readtex.o
: readtex.c readtex.h
64 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
67 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
70 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
73 shaderutil.o
: shaderutil.c shaderutil.h
74 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
78 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
79 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
81 bitmap
: bitmap.o shaderutil.o
82 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
85 brick.o
: brick.c extfuncs.h shaderutil.h
86 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
88 brick
: brick.o shaderutil.o
89 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
92 bump.o
: bump.c extfuncs.h shaderutil.h
93 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
95 bump
: bump.o shaderutil.o
96 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
99 convolutions.o
: convolutions.c readtex.h
100 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
102 convolutions
: convolutions.o readtex.o
103 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
106 deriv.o
: deriv.c extfuncs.h shaderutil.h
107 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
109 deriv
: deriv.o shaderutil.o
110 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
113 identity.o
: identity.c extfuncs.h shaderutil.h
114 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) identity.c
116 identity
: identity.o shaderutil.o
117 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) identity.o shaderutil.o
$(LIBS
) -o
$@
120 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
121 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
123 fragcoord
: fragcoord.o shaderutil.o
124 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
127 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
128 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
130 mandelbrot
: mandelbrot.o shaderutil.o
131 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
133 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
134 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
136 multitex
: multitex.o readtex.o shaderutil.o
137 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
140 noise.o
: noise.c extfuncs.h shaderutil.h
141 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
143 noise
: noise.o shaderutil.o
144 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
147 points.o
: points.c extfuncs.h shaderutil.h
148 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
150 points
: points.o shaderutil.o
151 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
154 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
155 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
157 pointcoord
: pointcoord.o readtex.o shaderutil.o
158 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
161 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
162 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
164 skinning
: skinning.o readtex.o shaderutil.o
165 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
168 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
169 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
171 texdemo1
: texdemo1.o readtex.o shaderutil.o
172 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
175 toyball.o
: toyball.c extfuncs.h shaderutil.h
176 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
178 toyball
: toyball.o shaderutil.o
179 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
182 twoside.o
: twoside.c extfuncs.h shaderutil.h
183 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
185 twoside
: twoside.o shaderutil.o
186 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
189 trirast.o
: trirast.c extfuncs.h shaderutil.h
190 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
192 trirast
: trirast.o shaderutil.o
193 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@
196 vert-tex.o
: vert-tex.c extfuncs.h shaderutil.h
197 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) vert-tex.c
199 vert-tex
: vert-tex.o shaderutil.o
200 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) vert-tex.o shaderutil.o
$(LIBS
) -o
$@