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 $(APP_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 $(APP_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 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) shaderutil.c
77 bitmap.o: bitmap.c extfuncs.h shaderutil.h
78 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) bitmap.c
80 bitmap: bitmap.o shaderutil.o
81 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) bitmap.o shaderutil.o $(LIBS) -o $@
84 brick.o: brick.c extfuncs.h shaderutil.h
85 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) brick.c
87 brick: brick.o shaderutil.o
88 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) brick.o shaderutil.o $(LIBS) -o $@
91 bump.o: bump.c extfuncs.h shaderutil.h
92 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) bump.c
94 bump: bump.o shaderutil.o
95 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) bump.o shaderutil.o $(LIBS) -o $@
98 convolutions.o: convolutions.c readtex.h
99 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) convolutions.c
101 convolutions: convolutions.o readtex.o
102 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) convolutions.o readtex.o $(LIBS) -o $@
105 deriv.o: deriv.c extfuncs.h shaderutil.h
106 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) deriv.c
108 deriv: deriv.o shaderutil.o
109 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) deriv.o shaderutil.o $(LIBS) -o $@
112 identity.o: identity.c extfuncs.h shaderutil.h
113 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) identity.c
115 identity: identity.o shaderutil.o
116 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) identity.o shaderutil.o $(LIBS) -o $@
119 fragcoord.o: fragcoord.c extfuncs.h shaderutil.h
120 $(CC) -c -I$(INCDIR) $(CFLAGS) fragcoord.c
122 fragcoord: fragcoord.o shaderutil.o
123 $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) fragcoord.o shaderutil.o $(LIBS) -o $@
126 fragcoord.o: fragcoord.c extfuncs.h shaderutil.h
127 $(CC) -c -I$(INCDIR) $(CFLAGS) fragcoord.c
129 fragcoord: fragcoord.o shaderutil.o
130 $(CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) fragcoord.o shaderutil.o $(LIBS) -o $@
133 mandelbrot.o: mandelbrot.c extfuncs.h shaderutil.h
134 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) mandelbrot.c
136 mandelbrot: mandelbrot.o shaderutil.o
137 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) mandelbrot.o shaderutil.o $(LIBS) -o $@
139 multitex.o: multitex.c extfuncs.h readtex.h shaderutil.h
140 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) multitex.c
142 multitex: multitex.o readtex.o shaderutil.o
143 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) multitex.o readtex.o shaderutil.o $(LIBS) -o $@
146 noise.o: noise.c extfuncs.h shaderutil.h
147 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) noise.c
149 noise: noise.o shaderutil.o
150 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) noise.o shaderutil.o $(LIBS) -o $@
153 points.o: points.c extfuncs.h shaderutil.h
154 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) points.c
156 points: points.o shaderutil.o
157 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) points.o shaderutil.o $(LIBS) -o $@
160 pointcoord.o: pointcoord.c readtex.h extfuncs.h shaderutil.h
161 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) pointcoord.c
163 pointcoord: pointcoord.o readtex.o shaderutil.o
164 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) pointcoord.o readtex.o shaderutil.o $(LIBS) -o $@
167 skinning.o: skinning.c readtex.h extfuncs.h shaderutil.h
168 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) skinning.c
170 skinning: skinning.o readtex.o shaderutil.o
171 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) skinning.o readtex.o shaderutil.o $(LIBS) -o $@
174 texdemo1.o: texdemo1.c readtex.h extfuncs.h shaderutil.h
175 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) texdemo1.c
177 texdemo1: texdemo1.o readtex.o shaderutil.o
178 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) texdemo1.o readtex.o shaderutil.o $(LIBS) -o $@
181 toyball.o: toyball.c extfuncs.h shaderutil.h
182 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) toyball.c
184 toyball: toyball.o shaderutil.o
185 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) toyball.o shaderutil.o $(LIBS) -o $@
188 twoside.o: twoside.c extfuncs.h shaderutil.h
189 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) twoside.c
191 twoside: twoside.o shaderutil.o
192 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) twoside.o shaderutil.o $(LIBS) -o $@
195 trirast.o: trirast.c extfuncs.h shaderutil.h
196 $(APP_CC) -c -I$(INCDIR) $(CFLAGS) trirast.c
198 trirast: trirast.o shaderutil.o
199 $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) trirast.o shaderutil.o $(LIBS) -o $@