create obj dir in makefile
This commit is contained in:
parent
c465e85d67
commit
a840cde3a4
1 changed files with 1 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -15,6 +15,7 @@ $(OUTFILE): $(OBJ)
|
|||
$(CC) $(CFLAGS) -o $(OUTFILE) $(OBJ)
|
||||
|
||||
$(OBJDIR)/%.o: $(SRCDIR)/%.c $(INCDIR)/%.h
|
||||
@mkdir -p $(@D)
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Reference in a new issue