mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
remove dependency on lib dir in build dir
This commit is contained in:
parent
1740dfbd66
commit
888a81345a
16
Makefile
16
Makefile
@ -23,7 +23,7 @@ PIC = -fPIC -O0
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
RANLIB = $(CROSS_COMPILE)ranlib
|
||||
|
||||
SHARED_LIBS = lib/libproxychains.so
|
||||
SHARED_LIBS = libproxychains.so
|
||||
ALL_LIBS = $(SHARED_LIBS)
|
||||
ALL_TOOLS = proxychains
|
||||
|
||||
@ -40,7 +40,7 @@ all: $(ALL_LIBS) $(ALL_TOOLS)
|
||||
install:
|
||||
install -D -m 644 proxychains $(bindir)
|
||||
install -D -m 644 src/proxyresolv $(bindir)
|
||||
install -D -m 644 lib/libproxychains.so $(libdir)
|
||||
install -D -m 644 libproxychains.so $(libdir)
|
||||
install -D -m 644 src/proxychains.conf /etc
|
||||
ln -sf $(libdir)/libproxychains.so $(libdir)/libproxychains.so.3
|
||||
|
||||
@ -55,22 +55,16 @@ clean:
|
||||
%.lo: %.c
|
||||
$(CC) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
|
||||
|
||||
lib/libproxychains.so: $(LOBJS)
|
||||
libproxychains.so: $(LOBJS)
|
||||
$(CC) $(LDFLAGS) -Wl,-soname=libproxychains.so -o $@ $(LOBJS) -lgcc
|
||||
|
||||
lib/%.o:
|
||||
cp $< $@
|
||||
|
||||
$(ALL_TOOLS): $(OBJS)
|
||||
$(CC) src/main.o -o proxychains
|
||||
|
||||
$(DESTDIR)$(libdir)/%.so: lib/%.so
|
||||
$(DESTDIR)$(libdir)/%.so: %.so
|
||||
install -D -m 755 $< $@
|
||||
|
||||
$(DESTDIR)$(libdir)/%: lib/%
|
||||
install -D -m 644 $< $@
|
||||
|
||||
$(DESTDIR)$(LDSO_PATHNAME): lib/libproxychains.so
|
||||
$(DESTDIR)$(LDSO_PATHNAME): libproxychains.so
|
||||
ln -sf $(libdir)/libproxychains.so $@ || true
|
||||
|
||||
.PHONY: all clean install
|
||||
|
Loading…
Reference in New Issue
Block a user