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
$(GLEW_LIB
) -l
$(GLU_LIB
) -l
$(GL_LIB
) $(APP_LIB_DEPS
)
31 PROGS
= $(SOURCES
:%.c
=%)
33 INCLUDES
= -I.
-I
$(TOP
)/include -I..
/samples
35 UTIL_FILES
= readtex.h readtex.c
44 $(APP_CC
) $(INCLUDES
) $(CFLAGS
) $(LDFLAGS
) $< $(LIBS
) -o
$@
47 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
50 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
55 default
: $(UTIL_FILES
) $(PROGS
)
63 # auto code generation
64 getprocaddress
: getprocaddress.c getproclist.h
66 getproclist.h
: $(TOP
)/src
/mesa
/glapi
/gl_API.xml getprocaddress.c getprocaddress.py
67 python getprocaddress.py
> getproclist.h
70 texrect
: texrect.o readtex.o
71 $(CC
) $(CFLAGS
) $(LDFLAGS
) texrect.o readtex.o
$(LIBS
) -o
$@
72 # $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
74 texrect.o
: texrect.c readtex.h
75 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
77 invert
: invert.o readtex.o
78 $(CC
) $(CFLAGS
) $(LDFLAGS
) invert.o readtex.o
$(LIBS
) -o
$@
79 # $(APP_CC) invert.o readtex.o $(LIBS) -o $@
81 invert.o
: invert.c readtex.h
82 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
85 $(APP_CC
) -c
$(INCLUDES
) $(CFLAGS
) $(DEFINES
) $< -o
$@
88 readtex.h
: $(TOP
)/progs
/util
/readtex.h
89 ln
-s
$(TOP
)/progs
/util
/readtex.h .
91 readtex.c
: $(TOP
)/progs
/util
/readtex.c
92 ln
-s
$(TOP
)/progs
/util
/readtex.c .
99 etags
`find . -name \*.[ch]` `find ../include`