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 411 B

12345678910111213141516171819202122
  1. CXX = g++
  2. ODIR = obj
  3. CXXFLAGS = -std=c++11 -O3
  4. OBJS = $(ODIR)/graph.o $(ODIR)/node.o
  5. all : $(ODIR) $(OBJS)
  6. $(ODIR)/graph.o : src/graph.cpp include/graph.h
  7. $(CXX) -c $< -o $@ $(CXXFLAGS)
  8. $(ODIR)/node.o : src/node.cpp include/node.h
  9. $(CXX) -c $< -o $@ $(CXXFLAGS)
  10. $(ODIR) :
  11. if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
  12. clean :
  13. if [ -d $(ODIR) ]; then rm $(ODIR) -r; fi
  14. .PHONY : all
  15. .PHONY : clean

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

Contributors (1)