mkdir objdir
This commit is contained in:
parent
518483434a
commit
9ff93fae99
1
makefile
1
makefile
@ -12,6 +12,7 @@ OBJ=$(SRC:.c=.o)
|
|||||||
all: $(EXEC)
|
all: $(EXEC)
|
||||||
|
|
||||||
$(OBJDIR)/%.o: $(SRCDIR)/%.c
|
$(OBJDIR)/%.o: $(SRCDIR)/%.c
|
||||||
|
if [ ! -d "obj" ]; then mkdir "obj"; fi
|
||||||
$(CC) -o $@ $< $(CFLAGS)
|
$(CC) -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
$(EXEC): $(addprefix $(OBJDIR)/, $(OBJ))
|
$(EXEC): $(addprefix $(OBJDIR)/, $(OBJ))
|
||||||
|
Loading…
Reference in New Issue
Block a user