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
/libgallium.a
69 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
72 $(CXX
) -c
$(INCLUDE_DIRS
) $(CXXFLAGS
) $< -o
$@
75 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
78 default
: depend subdirs
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
)
80 # Make the OpenVG library
81 $(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
): $(VG_OBJECTS
) $(GALLIUM_LIBS
)
82 $(TOP
)/bin
/mklib
-o
$(VG_LIB
) \
86 -install $(TOP
)/$(LIB_DIR
) \
87 $(VG_OBJECTS
) $(GALLIUM_LIBS
) \
88 -Wl
,--whole-archive
$(LIBS
) -Wl
,--no-whole-archive
$(SYS_LIBS
)
90 ######################################################################
93 depend
: $(ALL_SOURCES
)
94 @ echo
"running $(MKDEP)"
95 @
rm -f depend
# workaround oops on gutsy?!?
97 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(ALL_SOURCES
) \
98 > /dev
/null
2>/dev
/null
104 $(INSTALL
) -d
$(INSTALL_DIR
)/include/VG
105 $(INSTALL
) -d
$(INSTALL_DIR
)/$(LIB_DIR
)
106 $(INSTALL
) -m
644 $(TOP
)/include/VG
/*.h
$(INSTALL_DIR
)/include/VG
107 @if
[ -e
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
) ]; then \
108 $(INSTALL
) $(TOP
)/$(LIB_DIR
)/libOpenVG
* $(INSTALL_DIR
)/$(LIB_DIR
); \
113 etags
`find . -name \*.[ch]` $(TOP
)/include/VG
/*.h
119 -rm -f depend depend.bak