diff options
author | B Stack <bgstack15@gmail.com> | 2020-09-03 21:04:38 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-09-03 21:04:38 -0400 |
commit | 21def9739dc17f69d0d840ecc07471bed4491539 (patch) | |
tree | 9f06791bc5a1793d6b4dfcd4fcb998bff0a98604 | |
parent | initial commit (diff) | |
download | full_resolver-21def9739dc17f69d0d840ecc07471bed4491539.tar.gz full_resolver-21def9739dc17f69d0d840ecc07471bed4491539.tar.bz2 full_resolver-21def9739dc17f69d0d840ecc07471bed4491539.zip |
fix makefile to use %.o
-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] |