Commit 9b1dcaf3 authored by Michal Vrabel's avatar Michal Vrabel
Browse files

Opraveny Makefile - odstraneny target directories

parent 002b104f
......@@ -13,19 +13,17 @@ _DEPS = $(HEADERS)
DEPS = $(_DEPS)
OBJ = $(patsubst %,$(OBJDIR)/%,$(_OBJ))
$(OBJDIR)/%.o: %.c $(DEPS) directories
$(OBJDIR)/%.o: %.c $(DEPS)
mkdir -p $(OBJDIR)
$(CC) -c -o $@ $< $(CFLAGS)
$(EXECUTABLE): $(OBJ)
$(EXECUTABLE): $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
directories:
mkdir -p $(OBJDIR)
all: $(EXECUTABLE)
clean:
rm -f $(OBJDIR)/*.o $(EXECUTABLE)
if [ -d $(OBJDIR) ]; then rmdir $(OBJDIR); fi
.PHONY: all clean
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment