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 $(APP_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 $(APP_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 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) shaderutil.c
75 bitmap.o
: bitmap.c extfuncs.h shaderutil.h
76 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bitmap.c
78 bitmap
: bitmap.o shaderutil.o
79 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bitmap.o shaderutil.o
$(LIBS
) -o
$@
82 brick.o
: brick.c extfuncs.h shaderutil.h
83 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) brick.c
85 brick
: brick.o shaderutil.o
86 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) brick.o shaderutil.o
$(LIBS
) -o
$@
89 bump.o
: bump.c extfuncs.h shaderutil.h
90 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) bump.c
92 bump
: bump.o shaderutil.o
93 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) bump.o shaderutil.o
$(LIBS
) -o
$@
96 convolutions.o
: convolutions.c readtex.h
97 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) convolutions.c
99 convolutions
: convolutions.o readtex.o
100 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) convolutions.o readtex.o
$(LIBS
) -o
$@
103 deriv.o
: deriv.c extfuncs.h shaderutil.h
104 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) deriv.c
106 deriv
: deriv.o shaderutil.o
107 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) deriv.o shaderutil.o
$(LIBS
) -o
$@
110 identity.o
: identity.c extfuncs.h shaderutil.h
111 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) identity.c
113 identity
: identity.o shaderutil.o
114 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) identity.o shaderutil.o
$(LIBS
) -o
$@
117 mandelbrot.o
: mandelbrot.c extfuncs.h shaderutil.h
118 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) mandelbrot.c
120 mandelbrot
: mandelbrot.o shaderutil.o
121 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) mandelbrot.o shaderutil.o
$(LIBS
) -o
$@
123 multitex.o
: multitex.c extfuncs.h readtex.h shaderutil.h
124 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) multitex.c
126 multitex
: multitex.o readtex.o shaderutil.o
127 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) multitex.o readtex.o shaderutil.o
$(LIBS
) -o
$@
130 noise.o
: noise.c extfuncs.h shaderutil.h
131 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) noise.c
133 noise
: noise.o shaderutil.o
134 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) noise.o shaderutil.o
$(LIBS
) -o
$@
137 points.o
: points.c extfuncs.h shaderutil.h
138 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) points.c
140 points
: points.o shaderutil.o
141 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) points.o shaderutil.o
$(LIBS
) -o
$@
144 pointcoord.o
: pointcoord.c readtex.h extfuncs.h shaderutil.h
145 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) pointcoord.c
147 pointcoord
: pointcoord.o readtex.o shaderutil.o
148 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) pointcoord.o readtex.o shaderutil.o
$(LIBS
) -o
$@
151 texdemo1.o
: texdemo1.c readtex.h extfuncs.h shaderutil.h
152 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) texdemo1.c
154 texdemo1
: texdemo1.o readtex.o shaderutil.o
155 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) texdemo1.o readtex.o shaderutil.o
$(LIBS
) -o
$@
158 toyball.o
: toyball.c extfuncs.h shaderutil.h
159 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) toyball.c
161 toyball
: toyball.o shaderutil.o
162 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) toyball.o shaderutil.o
$(LIBS
) -o
$@
165 twoside.o
: twoside.c extfuncs.h shaderutil.h
166 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) twoside.c
168 twoside
: twoside.o shaderutil.o
169 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) twoside.o shaderutil.o
$(LIBS
) -o
$@
172 trirast.o
: trirast.c extfuncs.h shaderutil.h
173 $(APP_CC
) -c
-I
$(INCDIR
) $(CFLAGS
) trirast.c
175 trirast
: trirast.o shaderutil.o
176 $(APP_CC
) -I
$(INCDIR
) $(CFLAGS
) $(LDFLAGS
) trirast.o shaderutil.o
$(LIBS
) -o
$@