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
) -lm
48 ### Include directories
52 -I
$(TOP
)/src
/gallium
/include \
53 -I
$(TOP
)/src
/gallium
/auxiliary
57 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
59 default
: depend
$(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
)
61 # Make the OpenVG library
62 $(TOP
)/$(LIB_DIR
)/$(VG_LIB_NAME
): $(VG_OBJECTS
) $(VG_LIBS
)
63 $(MKLIB
) -o
$(VG_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
67 -install $(TOP
)/$(LIB_DIR
) \
68 $(VG_OBJECTS
) $(VG_LIBS
)
70 ######################################################################
74 @ echo
"running $(MKDEP)"
75 @
rm -f depend
# workaround oops on gutsy?!?
77 @
$(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) $(VG_SOURCES
) \
78 > /dev
/null
2>/dev
/null
81 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
82 $(INSTALL
) -m
644 $(TOP
)/include/VG
/*.h
$(DESTDIR
)$(INSTALL_DIR
)/include/VG
83 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
84 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/libOpenVG
* $(DESTDIR
)$(INSTALL_DIR
)/$(LIB_DIR
)
88 etags
`find . -name \*.[ch]` $(TOP
)/include/VG
/*.h
92 rm -f depend depend.bak