mirror of
https://github.com/thestk/stk
synced 2026-01-31 23:06:16 +00:00
Create Release and Debug directories if they are not present.
Otherwise, build fails if these directories do not exist.
This commit is contained in:
committed by
Stephen Sinclair
parent
a117cd0bb1
commit
e449ac3583
@@ -38,14 +38,18 @@ ifeq ($(strip $(RAWWAVES)), )
|
||||
endif
|
||||
DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\"
|
||||
|
||||
%.o : $(SRC_PATH)/%.cpp
|
||||
%.o : $(SRC_PATH)/%.cpp $(OBJECT_PATH)/.placeholder
|
||||
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
|
||||
|
||||
%.o : ../../src/include/%.cpp
|
||||
%.o : ../../src/include/%.cpp $(OBJECT_PATH)/.placeholder
|
||||
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@
|
||||
|
||||
all : $(PROGRAMS)
|
||||
|
||||
$(OBJECT_PATH)/.placeholder:
|
||||
mkdir -vp $(OBJECT_PATH)
|
||||
touch $(OBJECT_PATH)/.placeholder
|
||||
|
||||
effects: effects.cpp $(OBJECTS)
|
||||
$(CC) $(LDFLAGS) $(CFLAGS) $(DEFS) -o effects effects.cpp $(OBJECT_PATH)/*.o $(LIBRARY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user