aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-03 21:04:38 -0400
committerB Stack <bgstack15@gmail.com>2020-09-03 21:04:38 -0400
commit21def9739dc17f69d0d840ecc07471bed4491539 (patch)
tree9f06791bc5a1793d6b4dfcd4fcb998bff0a98604
parentinitial commit (diff)
downloadfull_resolver-21def9739dc17f69d0d840ecc07471bed4491539.tar.gz
full_resolver-21def9739dc17f69d0d840ecc07471bed4491539.tar.bz2
full_resolver-21def9739dc17f69d0d840ecc07471bed4491539.zip
fix makefile to use %.o
-rw-r--r--Makefile9
-rw-r--r--README.md2
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b190273..558edf1 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/README.md b/README.md
index ff4108f..f8efa3f 100644
--- a/README.md
+++ b/README.md
@@ -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]
bgstack15