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

github.com/haad/proxychains.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hamsik <haaaad@gmail.com>2020-01-10 15:36:38 +0300
committerGitHub <noreply@github.com>2020-01-10 15:36:38 +0300
commit87ec01c7624bebf234463cc229a794469bbd2095 (patch)
tree35e34eb9897cc03fc0618c66587b5927b6345f6e
parent14e15aa2c179116d9be90ffadcd42b0035215661 (diff)
parent8df5b3f11d0dc5cd40d2e300c483655f77de133b (diff)
Merge pull request #95 from theosotr/fix
Add missing Make dependencies
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 486bc43..a4fa72d 100644
--- a/Makefile
+++ b/Makefile
@@ -16,8 +16,9 @@ bindir = $(exec_prefix)/bin
SRCS = $(sort $(wildcard src/*.c))
OBJS = $(SRCS:.c=.o)
LOBJS = src/core.o src/common.o src/libproxychains.o
+DEPS = $(OBJS:.o=.d)
-CCFLAGS = -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror
+CCFLAGS = -MD -Wall -O2 -g -std=c99 -D_GNU_SOURCE -pipe -DTHREAD_SAFE -Werror
LDFLAGS = -shared -fPIC
INC =
PIC = -fPIC
@@ -58,6 +59,7 @@ clean:
rm -f $(ALL_LIBS)
rm -f $(ALL_TOOLS)
rm -f $(OBJS)
+ rm -f $(DEPS)
%.o: %.c
$(CC) $(CCFLAGS) $(CFLAGS_MAIN) $(INC) $(PIC) -c -o $@ $<
@@ -69,3 +71,5 @@ $(ALL_TOOLS): $(OBJS)
$(CC) src/main.o src/common.o -o $(PXCHAINS)
.PHONY: all clean install install-config
+
+-include $(DEPS)