Makefile update
This commit is contained in:
parent
2c81b49e6e
commit
efa4d305b9
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -7,7 +7,11 @@ BUILDDIR = bin
|
||||||
SOURCES = $(wildcard $(SOURCEDIR)/*.cpp)
|
SOURCES = $(wildcard $(SOURCEDIR)/*.cpp)
|
||||||
OBJECTS = $(patsubst $(SOURCEDIR)/%.cpp,$(BUILDDIR)/%.o,$(SOURCES))
|
OBJECTS = $(patsubst $(SOURCEDIR)/%.cpp,$(BUILDDIR)/%.o,$(SOURCES))
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(BUILDDIR) $(TARGET)
|
||||||
|
|
||||||
|
|
||||||
|
$(BUILDDIR):
|
||||||
|
mkdir -p $(BUILDDIR)
|
||||||
|
|
||||||
|
|
||||||
$(TARGET): $(OBJECTS)
|
$(TARGET): $(OBJECTS)
|
||||||
|
|
Loading…
Reference in a new issue