aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 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)
bgstack15