# Satisfy --warn-undefined-variables
CFLAGS ?=
+DESTDIR ?=
CPPFLAGS ?=
LDFLAGS ?=
TARGET_ARCH ?=
bup_shared_cflags := -Wno-unknown-pragmas -Wsign-compare $(bup_shared_cflags)
bup_shared_cflags := -D_FILE_OFFSET_BITS=64 $(bup_shared_cflags)
+bup_shared_ldflags :=
+
soext := .so
ifeq ($(os),CYGWIN)
soext := .dll
$(INSTALL) -pm 0755 lib/cmd/bup "$(dest_libdir)/cmd/bup"
$(INSTALL) -pm 0755 $(bup_ext_cmds) "$(dest_libdir)/cmd/"
cd "$(dest_bindir)" && \
- ln -sf "$$($(bup_python) -c 'import os; print(os.path.relpath("$(abspath $(dest_libdir))/cmd/bup"))')"
+ ln -sf "$$($(CURDIR)/dev/python -c 'import os; print(os.path.relpath("$(abspath $(dest_libdir))/cmd/bup"))')" \
+ .
set -e; \
$(INSTALL) -pm 0644 lib/bup/*.py $(dest_libdir)/bup/
$(INSTALL) -pm 0644 lib/bup/cmd/*.py $(dest_libdir)/bup/cmd/
clean_paths += lib/bup/_helpers$(soext)
generated_dependencies += lib/bup/_helpers.d
lib/bup/_helpers$(soext): lib/bup/_helpers.c lib/bup/bupsplit.c
- $(CC) $(helpers_cflags) $(CFLAGS) -shared -fPIC $^ \
+ $(CC) $(helpers_cflags) $(CFLAGS) $^ \
$(helpers_ldflags) $(LDFLAGS) $(OUTPUT_OPTION)
test/tmp: