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
)
36 # make executable from .c file:
38 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
47 ##### Extra dependencies
49 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
53 readtex.c
: $(TOP
)/progs
/util
/readtex.c
56 readtex.h
: $(TOP
)/progs
/util
/readtex.h
59 readtex.o
: readtex.c readtex.h
60 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) readtex.c
63 shaderutil.c
: $(TOP
)/progs
/util
/shaderutil.c
66 shaderutil.h
: $(TOP
)/progs
/util
/shaderutil.h
69 shaderutil.o
: shaderutil.c shaderutil.h
70 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
74 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
75 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
77 bitmap
: bitmap.o shaderutil.o
78 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
81 brick.o
: brick.c extfuncs.h shaderutil.h
82 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
84 brick
: brick.o shaderutil.o
85 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
88 bump.o
: bump.c extfuncs.h shaderutil.h
89 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
91 bump
: bump.o shaderutil.o
92 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
95 convolutions.o
: convolutions.c readtex.h
96 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
98 convolutions
: convolutions.o readtex.o
99 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
102 deriv.o
: deriv.c extfuncs.h shaderutil.h
103 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
105 deriv
: deriv.o shaderutil.o
106 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
109 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
110 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
112 mandelbrot
: mandelbrot.o shaderutil.o
113 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
116 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
117 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
119 multitex
: multitex.o readtex.o shaderutil.o
120 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
123 noise.o
: noise.c extfuncs.h shaderutil.h
124 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
126 noise
: noise.o shaderutil.o
127 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
130 points.o
: points.c extfuncs.h shaderutil.h
131 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
133 points
: points.o shaderutil.o
134 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
137 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
138 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
140 pointcoord
: pointcoord.o readtex.o shaderutil.o
141 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
144 skinning.o
: skinning.c readtex.h extfuncs.h shaderutil.h
145 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) skinning.c
147 skinning
: skinning.o readtex.o shaderutil.o
148 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) skinning.o readtex.o shaderutil.o
$(LIBS
) -o
$@
151 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
152 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
154 texdemo1
: texdemo1.o readtex.o shaderutil.o
155 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
158 toyball.o
: toyball.c extfuncs.h shaderutil.h
159 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
161 toyball
: toyball.o shaderutil.o
162 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
165 twoside.o
: twoside.c extfuncs.h shaderutil.h
166 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
168 twoside
: twoside.o shaderutil.o
169 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
172 trirast.o
: trirast.c extfuncs.h shaderutil.h
173 $(CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
175 trirast
: trirast.o shaderutil.o
176 $(CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@