mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
This new makefile will be used to build libraries that provides "Makefile.common". At some point, we will be converting Makefile in tools/ to "subdirmk" and stubdom build will not be able to use those new makefiles, so we will put the necessary information for stubdom to build the xen libraries into a new Makefile.common and xenlibs.mk will use it. We only need to build static libraries and don't need anything else. The check for the presence of "Makefile.common" will go aways once there is one for all libraries used by stubdom build. Also remove DESTDIR= from "clean" targets, we don't do installation in this recipe so the value of DESTDIR doesn't matter. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 lines
266 B
Makefile
14 lines
266 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
include Makefile.common
|
|
|
|
LIBNAME := $(notdir $(CURDIR))
|
|
FILENAME_$(LIBNAME) ?= xen$(LIBNAME)
|
|
LIB_FILE_NAME = $(FILENAME_$(LIBNAME))
|
|
|
|
lib$(LIB_FILE_NAME).a: $(OBJS-y)
|
|
$(AR) rc $@ $^
|
|
|
|
clean::
|
|
rm -f $(OBJS-y) lib$(LIB_FILE_NAME).a
|