4 include $(TOP
)/configs
/current
7 ### Lists of source files, included by Makefiles
38 ### All the core C sources
48 ### Include directories
52 -I
$(GALLIUM
)/include \
53 -I
$(GALLIUM
)/src
/gallium
/include \
54 -I
$(GALLIUM
)/src
/gallium
/auxiliary
57 VG_LIB_NAME
= lib
$(VG_LIB
).so
64 $(GALLIUM
)/src
/gallium
/auxiliary
/pipebuffer
/libpipebuffer.a \
65 $(GALLIUM
)/src
/gallium
/auxiliary
/sct
/libsct.a \
66 $(GALLIUM
)/src
/gallium
/auxiliary
/draw
/libdraw.a \
67 $(GALLIUM
)/src
/gallium
/auxiliary
/rtasm
/librtasm.a \
68 $(GALLIUM
)/src
/gallium
/auxiliary
/translate
/libtranslate.a \
69 $(GALLIUM
)/src
/gallium
/auxiliary
/cso_cache
/libcso_cache.a \
70 $(GALLIUM
)/src
/gallium
/auxiliary
/util
/libutil.a \
71 $(GALLIUM
)/src
/gallium
/auxiliary
/tgsi
/libtgsi.a
76 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
79 $(CXX
) -c
$(INCLUDE_DIRS
) $(CXXFLAGS
) $< -o
$@
82 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
85 default
: depend subdirs
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
)
87 # Make the OpenVG library
88 $(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
): $(VG_OBJECTS
) $(GALLIUM_LIBS
)
89 $(TOP
)/bin
/mklib
-o
$(VG_LIB
) \
93 -install $(TOP
)/$(LIB_DIR
) \
94 $(VG_OBJECTS
) $(GALLIUM_LIBS
) \
95 -Wl
,--whole-archive
$(LIBS
) -Wl
,--no-whole-archive
$(SYS_LIBS
)
97 ######################################################################
100 depend
: $(ALL_SOURCES
)
101 @ echo
"running $(MKDEP)"
102 @
rm -f depend
# workaround oops on gutsy?!?
104 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(ALL_SOURCES
) \
105 > /dev
/null
2>/dev
/null
111 $(INSTALL
) -d
$(INSTALL_DIR
)/include/VG
112 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
113 $(INSTALL
) -m
644 $(TOP
)/include/VG
/*.h
$(INSTALL_DIR
)/include/VG
114 @if
[ -e
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
) ]; then \
115 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/libOpenVG
* $(INSTALL_DIR
)/$(LIB_DIR
); \
120 etags
`find . -name \*.[ch]` $(TOP
)/include/VG
/*.h
126 -rm -f depend depend.bak