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
= $(APP_LIB_DEPS
)
91 PROGS
= $(SOURCES
:%.c
=%)
93 INCLUDES
= -I.
-I
$(TOP
)/include
95 UTIL_FILES
= readtex.h readtex.c
104 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
107 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
110 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
115 default
: $(UTIL_FILES
) $(PROGS
)
123 # auto code generation
124 getprocaddress
: getprocaddress.c getproclist.h
126 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
127 python getprocaddress.py
> getproclist.h
129 arraytexture
: arraytexture.o readtex.o
130 $(CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
132 arraytexture.o
: arraytexture.c readtex.h
133 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
135 afsmultiarb
: afsmultiarb.o readtex.o
136 $(CC
) $(CFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
138 afsmultiarb.o
: afsmultiarb.c readtex.h
139 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
141 drawbuffers
: drawbuffers.o
142 $(CC
) $(CFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
144 drawbuffers.o
: drawbuffers.c extfuncs.h
145 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
147 texrect
: texrect.o readtex.o
148 $(CC
) $(CFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
150 texrect.o
: texrect.c readtex.h
151 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
153 bug_3195
: bug_3195.o readtex.o
154 $(CC
) $(CFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
156 bug_3195.o
: bug_3195.c readtex.h
157 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
159 invert
: invert.o readtex.o
160 $(CC
) $(CFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
162 invert.o
: invert.c readtex.h
163 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
165 mipmap_view
: mipmap_view.o readtex.o
166 $(CC
) $(CFLAGS
) mipmap_view.o readtex.o
$(LIBS
) -o
$@
168 mipmap_view.o
: mipmap_view.c readtex.h
169 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
172 fillrate
: fillrate.o readtex.o
173 $(CC
) $(CFLAGS
) fillrate.o readtex.o
$(LIBS
) -o
$@
175 fillrate.o
: fillrate.c readtex.h
176 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
181 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
184 readtex.h
: $(TOP
)/progs
/util
/readtex.h
185 ln
-s
$(TOP
)/progs
/util
/readtex.h .
187 readtex.c
: $(TOP
)/progs
/util
/readtex.c
188 ln
-s
$(TOP
)/progs
/util
/readtex.c .
190 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
191 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
197 etags
`find . -name \*.[ch]` `find ../include`