refactored
This commit is contained in:
21
src/NeuronNetwork/Makefile
Normal file
21
src/NeuronNetwork/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user