|
|
@ -9,15 +9,15 @@ endif |
|
|
|
SHARED_LIB = libi2pd.so |
|
|
|
SHARED_LIB = libi2pd.so |
|
|
|
all: obj $(SHARED_LIB) |
|
|
|
all: obj $(SHARED_LIB) |
|
|
|
$(SHARED_LIB): $(OBJECTS:obj/%=obj/%) |
|
|
|
$(SHARED_LIB): $(OBJECTS:obj/%=obj/%) |
|
|
|
$(CXX) -shared -o $(SHARED_LIB) $^ |
|
|
|
$(CXX) -shared -o $(SHARED_LIB) $^ |
|
|
|
.SUFFIXES: |
|
|
|
.SUFFIXES: |
|
|
|
.SUFFIXES: .c .cc .C .cpp .o |
|
|
|
.SUFFIXES: .c .cc .C .cpp .o |
|
|
|
obj/%.o : ../%.cpp |
|
|
|
obj/%.o : ../%.cpp |
|
|
|
$(CXX) -o $@ $< -c $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -I.. -fPIC $(CPU_FLAGS) |
|
|
|
$(CXX) -o $@ $< -c $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -I.. -fPIC $(CPU_FLAGS) |
|
|
|
obj: |
|
|
|
obj: |
|
|
|
mkdir -p obj |
|
|
|
mkdir -p obj |
|
|
|
clean: |
|
|
|
clean: |
|
|
|
rm -fr obj $(SHARED_LIB) |
|
|
|
rm -fr obj $(SHARED_LIB) |
|
|
|
.PHONY: all |
|
|
|
.PHONY: all |
|
|
|
.PHONY: clean |
|
|
|
.PHONY: clean |
|
|
|
|
|
|
|
|
|
|
|