diff options
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | README.md | 2 |
2 files changed, 6 insertions, 5 deletions
@@ -24,7 +24,7 @@ ifneq (,$(DEBUG)) endif src = $(wildcard *.c) -obj = $(src:.pp=.o) +obj = $(src:.c=.o) BUILD_DIR ?= . @@ -32,9 +32,10 @@ OUTEXE = full_resolver all: $(OUTEXE) -# compile, which is not actually used? -$(BUILDDIR)/%.o: %.c - $(CC) -c $(CFLAGS) $+ +$(obj): + +$(BUILD_DIR)/%.o: %.c + $(CC) -c $(CFLAGS) -o $@ $< # link $(OUTEXE): $(obj) @@ -22,4 +22,4 @@ Accepted parameters include: ## References [1][file:///mnt/public/Support/Programs/dns/Troubleshooting-Adblocking-with-DNS.md] -[2][] Web version of [reference 1][1] +[2][https://gitlab.com/bgstack15/full_resolver] |