moving to cmake

This commit is contained in:
2016-02-07 22:55:15 +01:00
parent bec7a4f3ae
commit b436baafce
7 changed files with 93 additions and 88 deletions

View File

@@ -1,34 +0,0 @@
include ../Makefile.const
OBJFILES= ./sse_mathfun.o ./NeuralNetwork/Recurrent/Network.o ./NeuralNetwork/Neuron.o ./NeuralNetwork/FeedForward/Network.o ./NeuralNetwork/FeedForward/Layer.o
#LayerNetwork.o\
# Learning/Learning.o Learning/BackPropagation.o ../sse_mathfun.o
LINKFILES=
LIBNAME=NeuralNetwork
all: lib
spec:=../include/
%.o : %.cpp $(patsubst ./%.o,../include/%.h,$<)
$(CXX) $(CXXFLAGS) $(OPTIMALIZATION) -I../include -c $< -o $@
lib: $(LIBNAME).so $(LIBNAME).a
$(LIBNAME).so: $(OBJFILES)
$(CXX) -shared $(CXXFLAGS) $(OBJFILES) $(LINKFILES) -o $(LIBNAME).so
$(LIBNAME).a: $(OBJFILES)
rm -f $(LIBNAME).a # create new library
ar rcv $(LIBNAME).a $(OBJFILES) $(LINKFILES)
ranlib $(LIBNAME).a
nm --demangle $(LIBNAME).a > $(LIBNAME).nm
clean:
@rm -rf *.o ./*.so ./*.a ./*.nm ./*/*.o
@rm -rf *.o ./*.so ./*.a ./*.nm ./*/*.o
@rm -f $(OBJFILES)