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
)
13 SOURCES
= antialias.c \
63 PROGS
= $(SOURCES
:%.c
=%)
65 INCLUDES
= -I.
-I
$(TOP
)/include
67 UTIL_FILES
= readtex.h readtex.c
76 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
79 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
82 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
87 default
: $(UTIL_FILES
) $(PROGS
)
95 # auto code generation
96 getprocaddress
: getprocaddress.c getproclist.h
98 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
99 python getprocaddress.py
> getproclist.h
102 texrect
: texrect.o readtex.o
103 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
105 texrect.o
: texrect.c readtex.h
106 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
108 bug_3195
: bug_3195.o readtex.o
109 $(CC
) $(CFLAGS
) bug_3195.o readtex.o
$(LIBS
) -o
$@
111 bug_3195.o
: bug_3195.c readtex.h
112 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
114 invert
: invert.o readtex.o
115 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
117 invert.o
: invert.c readtex.h
118 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
121 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
124 readtex.h
: $(TOP
)/progs
/util
/readtex.h
125 ln
-s
$(TOP
)/progs
/util
/readtex.h .
127 readtex.c
: $(TOP
)/progs
/util
/readtex.c
128 ln
-s
$(TOP
)/progs
/util
/readtex.c .
135 etags
`find . -name \*.[ch]` `find ../include`