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
)
37 # make executable from .c file:
39 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
48 ##### Extra dependencies
50 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
54 readtex.c
: $(TOP
)/progs
/util
/readtex.c
57 readtex.h
: $(TOP
)/progs
/util
/readtex.h
60 readtex.o
: readtex.c readtex.h
61 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
64 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
67 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
70 shaderutil.o
: shaderutil.c shaderutil.h
71 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
75 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
76 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
78 bitmap
: bitmap.o shaderutil.o
79 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
82 brick.o
: brick.c extfuncs.h shaderutil.h
83 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
85 brick
: brick.o shaderutil.o
86 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
89 bump.o
: bump.c extfuncs.h shaderutil.h
90 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
92 bump
: bump.o shaderutil.o
93 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
96 convolutions.o
: convolutions.c readtex.h
97 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
99 convolutions
: convolutions.o readtex.o
100 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
103 deriv.o
: deriv.c extfuncs.h shaderutil.h
104 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
106 deriv
: deriv.o shaderutil.o
107 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
110 fragcoord.o
: fragcoord.c extfuncs.h shaderutil.h
111 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) fragcoord.c
113 fragcoord
: fragcoord.o shaderutil.o
114 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) fragcoord.o shaderutil.o
$(LIBS
) -o
$@
117 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
118 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
120 mandelbrot
: mandelbrot.o shaderutil.o
121 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
124 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
125 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
127 multitex
: multitex.o readtex.o shaderutil.o
128 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
131 noise.o
: noise.c extfuncs.h shaderutil.h
132 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
134 noise
: noise.o shaderutil.o
135 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
138 points.o
: points.c extfuncs.h shaderutil.h
139 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
141 points
: points.o shaderutil.o
142 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
145 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
146 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
148 pointcoord
: pointcoord.o readtex.o shaderutil.o
149 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
152 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
153 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
155 skinning
: skinning.o readtex.o shaderutil.o
156 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
159 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
160 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
162 texdemo1
: texdemo1.o readtex.o shaderutil.o
163 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
166 toyball.o
: toyball.c extfuncs.h shaderutil.h
167 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
169 toyball
: toyball.o shaderutil.o
170 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
173 twoside.o
: twoside.c extfuncs.h shaderutil.h
174 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
176 twoside
: twoside.o shaderutil.o
177 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
180 trirast.o
: trirast.c extfuncs.h shaderutil.h
181 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
183 trirast
: trirast.o shaderutil.o
184 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@