mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* (2/3) cleanup : use $CXXFLAGS instead $NEEDED_FLAGS
This commit is contained in:
parent
4e94bc9efc
commit
d6ec412422
3 changed files with 9 additions and 10 deletions
8
Makefile
8
Makefile
|
@ -24,16 +24,16 @@ obj:
|
|||
|
||||
# weaker rule for building files without headers
|
||||
obj/%.o : %.cpp
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||
|
||||
obj/%.o : %.cpp %.h
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||
$(CXX) $(CXXFLAGS) $(INCFLAGS) -c -o $@ $<
|
||||
|
||||
$(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
||||
$(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS) $(LIBS)
|
||||
$(CXX) -o $@ $(LDLIBS) $(LDFLAGS) $(LIBS) $^
|
||||
|
||||
$(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC))
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -shared -o $@ $^
|
||||
$(CXX) -o $@ -shared $(CXXFLAGS) $(INCFLAGS) $^
|
||||
|
||||
clean:
|
||||
rm -fr obj $(I2PD) $(SHLIB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue