You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
606 B
26 lines
606 B
# Makefile.pylibfdt |
|
# |
|
|
|
PYLIBFDT_srcs = $(PYLIBFDT_srcdir)/libfdt.i |
|
PYMODULE = $(PYLIBFDT_objdir)/_libfdt.so |
|
|
|
SETUP = $(PYLIBFDT_srcdir)/setup.py |
|
SETUPFLAGS = |
|
|
|
ifndef V |
|
SETUPFLAGS += --quiet |
|
endif |
|
|
|
define run_setup |
|
$(SETUP) $(SETUPFLAGS) $(1) |
|
endef |
|
|
|
$(PYMODULE): $(PYLIBFDT_srcs) $(LIBFDT_archive) $(SETUP) $(VERSION_FILE) |
|
@$(VECHO) PYMOD $@ |
|
$(call run_setup, build_ext --build-lib=$(PYLIBFDT_objdir)) |
|
|
|
install_pylibfdt: $(PYMODULE) |
|
$(VECHO) INSTALL-PYLIB; \ |
|
$(call run_setup, install $(if $(SETUP_PREFIX),--prefix=$(SETUP_PREFIX))) |
|
|
|
PYLIBFDT_cleanfiles = libfdt_wrap.c libfdt.py libfdt.pyc _libfdt.so
|
|
|