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
43 VG_OBJECTS
= $(VG_SOURCES
:.c
=.o
)
45 VG_LIBS
= $(GALLIUM_AUXILIARIES
) -lm
47 ### Include directories
51 -I
$(TOP
)/src
/gallium
/include \
52 -I
$(TOP
)/src
/gallium
/auxiliary
56 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
58 default
: depend
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
)
60 # Make the OpenVG library
61 $(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
): $(VG_OBJECTS
) $(VG_LIBS
)
62 $(MKLIB
) -o
$(VG_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
66 -install $(TOP
)/$(LIB_DIR
) \
67 $(VG_OBJECTS
) $(VG_LIBS
)
69 ######################################################################
73 @ echo
"running $(MKDEP)"
74 @
rm -f depend
# workaround oops on gutsy?!?
76 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(VG_SOURCES
) \
77 > /dev
/null
2>/dev
/null
80 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
81 $(INSTALL
) -m
644 $(TOP
)/include/VG
/*.h
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
82 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
83 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/libOpenVG
* $(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
87 etags
`find . -name \*.[ch]` $(TOP
)/include/VG
/*.h
91 rm -f depend depend.bak