1 # src/gallium/state_trackers/vega/Makefile
4 include $(TOP
)/configs
/current
7 VG_LIB_NAME
= lib
$(VG_LIB
).so
13 ### Lists of source files, included by Makefiles
44 VG_OBJECTS
= $(VG_SOURCES
:.c
=.o
)
46 VG_LIBS
= $(GALLIUM_AUXILIARIES
)
47 VG_LIB_DEPS
= $(EXTRA_LIB_PATH
) -lm
49 ### Include directories
53 -I
$(TOP
)/src
/gallium
/include \
54 -I
$(TOP
)/src
/gallium
/auxiliary
58 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
60 default
: depend
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
)
62 # Make the OpenVG library
63 $(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
): $(VG_OBJECTS
) $(VG_LIBS
)
64 $(MKLIB
) -o
$(VG_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
68 -install $(TOP
)/$(LIB_DIR
) \
69 $(VG_OBJECTS
) $(VG_LIBS
) $(VG_LIB_DEPS
)
71 ######################################################################
75 @ echo
"running $(MKDEP)"
76 @
rm -f depend
# workaround oops on gutsy?!?
78 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(VG_SOURCES
) \
79 > /dev
/null
2>/dev
/null
82 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
83 $(INSTALL
) -m
644 $(TOP
)/include/VG
/*.h
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
84 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
85 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/libOpenVG
* $(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
89 etags
`find . -name \*.[ch]` $(TOP
)/include/VG
/*.h
93 rm -f depend depend.bak