4 # These programs aren't intended to be included with the normal distro.
5 # They're not too interesting but they're good for testing.
8 include $(TOP
)/configs
/current
11 LIBS
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
98 PROGS
= $(SOURCES
:%.c
=%)
100 INCLUDES
= -I.
-I
$(TOP
)/include
102 UTIL_FILES
= readtex.h readtex.c
107 default
: $(UTIL_FILES
) $(PROGS
)
120 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
123 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
126 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
128 # auto code generation
129 getprocaddress
: getprocaddress.c getproclist.h
131 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
132 python getprocaddress.py
> getproclist.h
134 arraytexture
: arraytexture.o readtex.o
135 $(APP_CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
137 arraytexture.o
: arraytexture.c readtex.h
138 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) arraytexture.c
-o
$@
140 afsmultiarb
: afsmultiarb.o readtex.o
141 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
143 afsmultiarb.o
: afsmultiarb.c readtex.h
144 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) afsmultiarb.c
-o
$@
146 drawbuffers
: drawbuffers.o
147 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
149 drawbuffers.o
: drawbuffers.c extfuncs.h
150 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) drawbuffers.c
-o
$@
152 texrect
: texrect.o readtex.o
153 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
155 texrect.o
: texrect.c readtex.h
156 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) texrect.c
-o
$@
158 bug_3195
: bug_3195.o readtex.o
159 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
161 bug_3195.o
: bug_3195.c readtex.h
162 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bug_3195.c
-o
$@
164 invert
: invert.o readtex.o
165 $(APP_CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
167 invert.o
: invert.c readtex.h
168 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) invert.c
-o
$@
170 mipmap_view
: mipmap_view.o readtex.o
171 $(APP_CC
) $(CFLAGS
) mipmap_view.o readtex.o
$(LIBS
) -o
$@
173 mipmap_view.o
: mipmap_view.c readtex.h
174 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
177 fillrate
: fillrate.o readtex.o
178 $(APP_CC
) $(CFLAGS
) fillrate.o readtex.o
$(LIBS
) -o
$@
180 fillrate.o
: fillrate.c readtex.h
181 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
186 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) readtex.c
-o
$@
189 readtex.h
: $(TOP
)/progs
/util
/readtex.h
190 ln
-s
$(TOP
)/progs
/util
/readtex.h .
192 readtex.c
: $(TOP
)/progs
/util
/readtex.c
193 ln
-s
$(TOP
)/progs
/util
/readtex.c .
195 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
196 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
202 etags
`find . -name \*.[ch]` `find ../include`