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 \
51 PROGS
= $(SOURCES
:%.c
=%)
53 INCLUDES
= -I.
-I
$(TOP
)/include
55 UTIL_FILES
= readtex.h readtex.c
64 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
67 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
70 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
75 default
: $(UTIL_FILES
) $(PROGS
)
83 # auto code generation
84 getprocaddress
: getprocaddress.c getproclist.h
86 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/APIspec getprocaddress.c getprocaddress.py
87 python getprocaddress.py
> getproclist.h
90 texrect
: texrect.o readtex.o
91 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
93 texrect.o
: texrect.c readtex.h
94 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
97 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
100 readtex.h
: $(TOP
)/progs
/util
/readtex.h
101 ln
-s
$(TOP
)/progs
/util
/readtex.h .
103 readtex.c
: $(TOP
)/progs
/util
/readtex.c
104 ln
-s
$(TOP
)/progs
/util
/readtex.c .
111 etags
`find . -name \*.[ch]` `find ../include`