"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Makefile" between
reptyr-reptyr-0.7.0.tar.gz and reptyr-reptyr-0.8.0.tar.gz

About: reptyr is a utility for taking an existing running program and attaching it to a new terminal.

Makefile  (reptyr-reptyr-0.7.0):Makefile  (reptyr-reptyr-0.8.0)
override CFLAGS := -Wall -Werror -D_GNU_SOURCE -g $(CFLAGS) override CFLAGS := -MD -Wall -Werror -D_GNU_SOURCE -g $(CFLAGS)
OBJS=reptyr.o reallocarray.o attach.o OBJS=reptyr.o reallocarray.o attach.o
DEPS=$(wildcard *.d platform/*/*.d)
UNAME_S := $(shell uname -s) UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_S),Linux)
OBJS += platform/linux/linux_ptrace.o platform/linux/linux.o OBJS += platform/linux/linux_ptrace.o platform/linux/linux.o
endif endif
ifeq ($(UNAME_S),FreeBSD) ifeq ($(UNAME_S),FreeBSD)
OBJS += platform/freebsd/freebsd_ptrace.o platform/freebsd/freebsd.o OBJS += platform/freebsd/freebsd_ptrace.o platform/freebsd/freebsd.o
LDFLAGS += -lprocstat LDFLAGS += -lprocstat
endif endif
# Note that because of how Make works, this can be overridden from the # Note that because of how Make works, this can be overridden from the
# command-line. # command-line.
# #
# e.g. install to /usr with `make PREFIX=/usr` # e.g. install to /usr with `make PREFIX=/usr`
PREFIX=/usr/local PREFIX=/usr/local
BINDIR=$(PREFIX)/bin BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man MANDIR=$(PREFIX)/share/man
PKG_CONFIG ?= pkg-config PKG_CONFIG ?= pkg-config
PYTHON_CMD ?= python2
all: reptyr all: reptyr
reptyr: $(OBJS) reptyr: $(OBJS)
ifeq ($(DISABLE_TESTS),) ifeq ($(DISABLE_TESTS),)
test: reptyr test/victim PHONY test: reptyr test/victim PHONY
python2 test/basic.py $(PYTHON_CMD) test/basic.py
python2 test/tty-steal.py $(PYTHON_CMD) test/tty-steal.py
else else
test: all test: all
endif endif
VICTIM_CFLAGS ?= $(CFLAGS) VICTIM_CFLAGS ?= $(CFLAGS)
VICTIM_LDFLAGS ?= $(LDFLAGS) VICTIM_LDFLAGS ?= $(LDFLAGS)
test/victim: test/victim.o test/victim: test/victim.o
test/victim: override CFLAGS := $(VICTIM_CFLAGS) test/victim: override CFLAGS := $(VICTIM_CFLAGS)
test/victim: override LDFLAGS := $(VICTIM_LDFLAGS) test/victim: override LDFLAGS := $(VICTIM_LDFLAGS)
attach.o: reptyr.h ptrace.h
reptyr.o: reptyr.h reallocarray.h
ptrace.o: ptrace.h platform/platform.h $(wildcard platform/*/arch/*.h)
clean: clean:
rm -f reptyr $(OBJS) test/victim.o test/victim rm -f reptyr $(OBJS) test/victim.o test/victim $(DEPS)
BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2 >/dev/null) BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2 >/dev/null)
install: reptyr install: reptyr
install -d -m 755 $(DESTDIR)$(BINDIR) install -d -m 755 $(DESTDIR)$(BINDIR)
install -m 755 reptyr $(DESTDIR)$(BINDIR)/reptyr install -m 755 reptyr $(DESTDIR)$(BINDIR)/reptyr
install -d -m 755 $(DESTDIR)$(MANDIR)/man1 install -d -m 755 $(DESTDIR)$(MANDIR)/man1
install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1 install -m 644 reptyr.1 $(DESTDIR)$(MANDIR)/man1/reptyr.1
install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1 install -d -m 755 $(DESTDIR)$(MANDIR)/fr/man1
install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1 install -m 644 reptyr.fr.1 $(DESTDIR)$(MANDIR)/fr/man1/reptyr.1
bashcompdir=$(BASHCOMPDIR) ; \ bashcompdir=$(BASHCOMPDIR) ; \
test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \ test -z "$$bashcompdir" && bashcompdir=/etc/bash_completion.d ; \
install -d -m 755 $(DESTDIR)$$bashcompdir ; \ install -d -m 755 $(DESTDIR)$$bashcompdir ; \
install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr install -m 644 reptyr.bash $(DESTDIR)$$bashcompdir/reptyr
.PHONY: PHONY .PHONY: PHONY
# Pull-in dependencies generated by -MD
-include $(OBJS:.o=.d)
 End of changes. 7 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)