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 \
62 PROGS
= $(SOURCES
:%.c
=%)
64 INCLUDES
= -I.
-I
$(TOP
)/include
66 UTIL_FILES
= readtex.h readtex.c
75 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
78 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
81 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
86 default
: $(UTIL_FILES
) $(PROGS
)
94 # auto code generation
95 getprocaddress
: getprocaddress.c getproclist.h
97 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
98 python getprocaddress.py
> getproclist.h
101 texrect
: texrect.o readtex.o
102 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
104 texrect.o
: texrect.c readtex.h
105 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
107 invert
: invert.o readtex.o
108 $(CC
) invert.o readtex.o
$(LIBS
) -o
$@
110 invert.o
: invert.c readtex.h
111 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
114 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
117 readtex.h
: $(TOP
)/progs
/util
/readtex.h
118 ln
-s
$(TOP
)/progs
/util
/readtex.h .
120 readtex.c
: $(TOP
)/progs
/util
/readtex.c
121 ln
-s
$(TOP
)/progs
/util
/readtex.c .
128 etags
`find . -name \*.[ch]` `find ../include`