Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-01-24 10:29:34 +0400
committerrofl0r <retnyg@gmx.net>2012-01-24 10:29:34 +0400
commitb20106ce2eaa32f3b6763641bf676299774ea374 (patch)
tree64b6463017a6b017a0835d5c2be3c7086f857f5b /Makefile
parente5f3422b16ac6ece63a32c74f831bf05dc155795 (diff)
make Makefile simpler and more correct
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 6222f48..0703782 100644
--- a/Makefile
+++ b/Makefile
@@ -14,12 +14,12 @@ libdir = $(prefix)/lib
SRCS = $(sort $(wildcard src/*.c))
OBJS = $(SRCS:.c=.o)
-LOBJS = $(OBJS:.o=.lo)
+LOBJS = src/core.o src/libproxychains.o
CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE
LDFLAGS = -shared -fPIC -ldl -lpthread
INC =
-PIC = -fPIC -O0
+PIC = -fPIC
AR = $(CROSS_COMPILE)ar
RANLIB = $(CROSS_COMPILE)ranlib
@@ -30,9 +30,9 @@ ALL_LIBS = $(SHARED_LIBS)
PXCHAINS = proxychains4
ALL_TOOLS = $(PXCHAINS)
-
-include config.mak
+CFLAGS+=$(USER_CFLAGS)
CFLAGS_MAIN=-DLIB_DIR=\"$(libdir)\"
@@ -40,19 +40,16 @@ all: $(ALL_LIBS) $(ALL_TOOLS)
#install: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(DESTDIR)$(LDSO_PATHNAME)
install:
- install -D -m 755 $(PXCHAINS) $(bindir)/$(PXCHAINS)
- install -D -m 644 $(LDSO_PATHNAME) $(libdir)
- install -D -m 644 src/proxychains.conf $(prefix)/etc
+ install -D -m 755 $(ALL_TOOLS) $(bindir)/
+ install -D -m 644 $(ALL_LIBS) $(libdir)/
+ install -D -m 644 src/proxychains.conf $(prefix)/etc/
clean:
+ rm -f $(ALL_LIBS)
+ rm -f $(ALL_TOOLS)
rm -f $(OBJS)
- rm -f $(LOBJS)
- rm -f $(ALL_LIBS) lib/*.[ao] lib/*.so
%.o: %.c
- $(CC) $(CFLAGS) $(CFLAGS_MAIN) $(INC) -c -o $@ $<
-
-%.lo: %.c
$(CC) $(CFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
$(LDSO_PATHNAME): $(LOBJS)