You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 891 B

12345678910111213141516171819202122232425262728293031
  1. CXX = g++
  2. ODIR = obj
  3. CXXFLAGS = -std=c++11 -O3
  4. OBJS = $(ODIR)/gradient_descent.o $(ODIR)/ann.o $(ODIR)/gradient.o $(ODIR)/speed.o $(ODIR)/simple.o
  5. all : $(ODIR) $(OBJS)
  6. $(ODIR)/gradient_descent.o : src/gradient_descent.cpp ../root/include/vectmath.h ../root/include/node.h
  7. $(CXX) -c $< -o $@ $(CXXFLAGS)
  8. $(ODIR)/ann.o : src/ann.cpp ../root/include/vectmath.h ../root/include/node.h
  9. $(CXX) -c $< -o $@ $(CXXFLAGS)
  10. $(ODIR)/gradient.o : src/gradient.cpp ../root/include/vectmath.h ../root/include/node.h
  11. $(CXX) -c $< -o $@ $(CXXFLAGS)
  12. $(ODIR)/speed.o : src/speed.cpp ../root/include/vectmath.h ../root/include/node.h
  13. $(CXX) -c $< -o $@ $(CXXFLAGS)
  14. $(ODIR)/simple.o : src/simple.cpp ../root/include/node.h
  15. $(CXX) -c $< -o $@ $(CXXFLAGS)
  16. $(ODIR) :
  17. if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
  18. clean :
  19. if [ -d $(ODIR) ]; then rm $(ODIR) -r; fi
  20. .PHONY : all
  21. .PHONY : clean

Edge : 一个开源的科学计算引擎