This commit is contained in:
2014-10-02 17:52:56 +02:00
commit 8c1b406259
23 changed files with 525 additions and 0 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
LIBS=input constant element integrator system simulation
OBJFILES=./src/Solution.o ./src/Problem.o ./src/Network.o ./src/Neuron.o ./src/Genetics.o
include ./Makefile.const
.PHONY: all
all: lib
test: all
make -C tests
lib: $(LIBNAME).a $(LIBNAME).so
clean:
rm -f ./src/*.o
rm -f ./$(LIBNAME).so ./$(LIBNAME).a ./$(LIBNAME).nm
%.o : %.cpp %.h
$(CXX) $(CXXFLAGS) -c $< -o $@
$(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