|
|
|
@ -9,15 +9,15 @@ endif
@@ -9,15 +9,15 @@ endif
|
|
|
|
|
SHARED_LIB = libi2pd.so |
|
|
|
|
all: obj $(SHARED_LIB) |
|
|
|
|
$(SHARED_LIB): $(OBJECTS:obj/%=obj/%) |
|
|
|
|
$(CXX) -shared -o $(SHARED_LIB) $^ |
|
|
|
|
$(CXX) -shared -o $(SHARED_LIB) $^ |
|
|
|
|
.SUFFIXES: |
|
|
|
|
.SUFFIXES: .c .cc .C .cpp .o |
|
|
|
|
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: |
|
|
|
|
mkdir -p obj |
|
|
|
|
mkdir -p obj |
|
|
|
|
clean: |
|
|
|
|
rm -fr obj $(SHARED_LIB) |
|
|
|
|
rm -fr obj $(SHARED_LIB) |
|
|
|
|
.PHONY: all |
|
|
|
|
.PHONY: clean |
|
|
|
|
|
|
|
|
|