refactored

This commit is contained in:
2014-10-02 19:45:38 +02:00
parent c2ddda35d9
commit 0fd64ff7f6
23 changed files with 221 additions and 123 deletions

View File

@@ -0,0 +1,21 @@
OBJFILES=./Solution.o ./Problem.o ./Network.o ./Neuron.o
LIBNAME=NeuronNetwork
include ../../Makefile.const
all: lib
lib: $(LIBNAME).so $(LIBNAME).a
$(LIBNAME).so: $(OBJFILES)
$(CXX) -shared $(CXXFLAGS) $(OBJFILES) -o $(LIBNAME).so
$(LIBNAME).a: $(OBJFILES)
rm -f $(LIBNAME).a # create new library
ar rcv $(LIBNAME).a $(OBJFILES)
ranlib $(LIBNAME).a
nm --demangle $(LIBNAME).a > $(LIBNAME).nm
clean:
@rm -f ./*.o ./*.so ./*.a ./*.nm