mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
* reorder makefile rules : fix depends on header
This commit is contained in:
parent
0e212f29d0
commit
ca2566e778
6
Makefile
6
Makefile
@ -25,11 +25,11 @@ all: obj $(SHLIB) $(I2PD)
|
|||||||
obj:
|
obj:
|
||||||
mkdir -p obj
|
mkdir -p obj
|
||||||
|
|
||||||
# weaker rule for building files without headers
|
obj/%.o : %.cpp %.h
|
||||||
obj/%.o : %.cpp
|
|
||||||
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
obj/%.o : %.cpp %.h
|
# weaker rule for building files without headers
|
||||||
|
obj/%.o : %.cpp
|
||||||
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
||||||
|
Loading…
Reference in New Issue
Block a user