mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
Fix: mkdir exist in multi thread building
This commit is contained in:
parent
a15c2c5d86
commit
3a30c00dae
6
Makefile
6
Makefile
|
@ -25,7 +25,7 @@ endif
|
|||
all: mk_build_dir $(SHLIB) $(I2PD)
|
||||
|
||||
mk_build_dir:
|
||||
test -d obj || mkdir obj
|
||||
mkdir -p obj
|
||||
|
||||
api: $(SHLIB)
|
||||
|
||||
|
@ -37,12 +37,12 @@ api: $(SHLIB)
|
|||
## custom FLAGS to work at build-time.
|
||||
|
||||
deps:
|
||||
@test -d obj || mkdir obj
|
||||
@mkdir -p obj
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) -MM *.cpp > $(DEPS)
|
||||
@sed -i -e '/\.o:/ s/^/obj\//' $(DEPS)
|
||||
|
||||
obj/%.o : %.cpp
|
||||
@test -d obj || mkdir obj
|
||||
@mkdir -p obj
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $<
|
||||
|
||||
# '-' is 'ignore if missing' on first run
|
||||
|
|
Loading…
Reference in a new issue