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
= -L
$(TOP
)/$(LIB_DIR
) -l
$(GLUT_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
30 PROGS
= $(SOURCES
:%.c
=%)
32 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
34 UTIL_FILES
= readtex.h readtex.c
43 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
46 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
49 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
54 default
: $(UTIL_FILES
) $(PROGS
)
62 # auto code generation
63 getprocaddress
: getprocaddress.c getproclist.h
65 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
66 python getprocaddress.py
> getproclist.h
69 texrect
: texrect.o readtex.o
70 $(CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
71 # $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
73 texrect.o
: texrect.c readtex.h
74 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
76 invert
: invert.o readtex.o
77 $(CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
78 # $(APP_CC) invert.o readtex.o $(LIBS) -o $@
80 invert.o
: invert.c readtex.h
81 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
84 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
87 readtex.h
: $(TOP
)/progs
/util
/readtex.h
88 ln
-s
$(TOP
)/progs
/util
/readtex.h .
90 readtex.c
: $(TOP
)/progs
/util
/readtex.c
91 ln
-s
$(TOP
)/progs
/util
/readtex.c .
98 etags
`find . -name \*.[ch]` `find ../include`