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
)
84 PROGS
= $(SOURCES
:%.c
=%)
86 INCLUDES
= -I.
-I
$(TOP
)/include
88 UTIL_FILES
= readtex.h readtex.c
93 default
: $(UTIL_FILES
) $(PROGS
)
106 $(CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
109 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
112 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
114 # auto code generation
115 getprocaddress
: getprocaddress.c getproclist.h
117 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
118 python getprocaddress.py
> getproclist.h
120 arraytexture
: arraytexture.o readtex.o
121 $(CC
) $(CFLAGS
) arraytexture.o readtex.o
$(LIBS
) -o
$@
123 arraytexture.o
: arraytexture.c readtex.h
124 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) arraytexture.c
-o
$@
126 afsmultiarb
: afsmultiarb.o readtex.o
127 $(CC
) $(CFLAGS
) $(LDFLAGS
) afsmultiarb.o readtex.o
$(LIBS
) -o
$@
129 afsmultiarb.o
: afsmultiarb.c readtex.h
130 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) afsmultiarb.c
-o
$@
132 drawbuffers
: drawbuffers.o
133 $(CC
) $(CFLAGS
) $(LDFLAGS
) drawbuffers.o
$(LIBS
) -o
$@
135 drawbuffers.o
: drawbuffers.c extfuncs.h
136 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) drawbuffers.c
-o
$@
138 texrect
: texrect.o readtex.o
139 $(CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
141 texrect.o
: texrect.c readtex.h
142 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) texrect.c
-o
$@
144 bug_3195
: bug_3195.o readtex.o
145 $(CC
) $(CFLAGS
) $(LDFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
147 bug_3195.o
: bug_3195.c readtex.h
148 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) bug_3195.c
-o
$@
150 invert
: invert.o readtex.o
151 $(CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
153 invert.o
: invert.c readtex.h
154 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) invert.c
-o
$@
157 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) readtex.c
-o
$@
160 readtex.h
: $(TOP
)/progs
/util
/readtex.h
161 ln
-s
$(TOP
)/progs
/util
/readtex.h .
163 readtex.c
: $(TOP
)/progs
/util
/readtex.c
164 ln
-s
$(TOP
)/progs
/util
/readtex.c .
166 extfuncs.h
: $(TOP
)/progs
/util
/extfuncs.h
167 ln
-s
$(TOP
)/progs
/util
/extfuncs.h .
173 etags
`find . -name \*.[ch]` `find ../include`