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 \
49 PROGS
= $(SOURCES
:%.c
=%)
51 INCLUDES
= -I.
-I
$(TOP
)/include
60 $(CC
) $(INCLUDES
) $(CFLAGS
) $< $(LIBS
) -o
$@
63 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
66 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
79 # auto code generation
80 getprocaddress
: getprocaddress.c getproclist.h
82 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/APIspec getprocaddress.c getprocaddress.py
83 python getprocaddress.py
> getproclist.h
86 texrect
: texrect.o readtex.o
87 $(CC
) texrect.o readtex.o
$(LIBS
) -o
$@
89 texrect.o
: texrect.c readtex.h
90 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
93 $(CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
96 readtex.h
: $(TOP
)/progs
/util
/readtex.h
97 ln
-s
$(TOP
)/progs
/util
/readtex.h .
99 readtex.c
: $(TOP
)/progs
/util
/readtex.c
100 ln
-s
$(TOP
)/progs
/util
/readtex.c .
107 etags
`find . -name \*.[ch]` `find ../include`