diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 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) |