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 \
54 PROGS
= $(SOURCES
:%.c
=%)
56 INCLUDES
= -I.
-I
$(TOP
)/include
58 UTIL_FILES
= readtex.h readtex.c
67 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
70 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
73 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
78 default
: $(UTIL_FILES
) $(PROGS
)
86 # auto code generation
87 getprocaddress
: getprocaddress.c getproclist.h
89 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/APIspec getprocaddress.c getprocaddress.py
90 python getprocaddress.py
> getproclist.h
93 texrect
: texrect.o readtex.o
94 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
96 texrect.o
: texrect.c readtex.h
97 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
100 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
103 readtex.h
: $(TOP
)/progs
/util
/readtex.h
104 ln
-s
$(TOP
)/progs
/util
/readtex.h .
106 readtex.c
: $(TOP
)/progs
/util
/readtex.c
107 ln
-s
$(TOP
)/progs
/util
/readtex.c .
114 etags
`find . -name \*.[ch]` `find ../include`