Решение систем нелинейных уравнений https://www.mapleprimes.com/users/one%20man/posts?page=1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
  2. CFLAGS = -std=c++11 -O2 -Wall
  3. mathgl = n
  4. oct = n
  5. all: Draghilev
  6. debug: CFLAGS += -g
  7. debug: Draghilev
  8. main.o: main.cpp
  9. g++ -c -I ./include $? $(CFLAGS)
  10. ifeq ($(mathgl),y)
  11. draghilevinout.o: draghilevinout.cpp
  12. g++ -c -DMATHGL -I ./include $? $(CFLAGS)
  13. Draghilev: main.o libmathgl.so sysosndan.o sysdiffeqn.o solver.o octaveplg.o funcdrag.o draghilevinout.o
  14. g++ -L ./ $? -lcln -lmathgl -ldl $(CFLAGS) -o $@
  15. else
  16. draghilevinout.o: draghilevinout.cpp
  17. g++ -c -I ./include $? $(CFLAGS)
  18. Draghilev: main.o sysosndan.o sysdiffeqn.o solver.o octaveplg.o funcdrag.o draghilevinout.o
  19. g++ -L ./ $? -lginac -lcln -ldl $(CFLAGS) -o $@
  20. endif
  21. draghilev_oct.o: main.cpp
  22. CXXFLAGS="-O2 -std=c++11 -DOCTAVE" mkoctfile -c -o $@ $? -lcln -lginac
  23. draghilev_oct: draghilev_oct.o sysosndan.o solver.o
  24. CXXFLAGS="-O2 -std=c++11" mkoctfile -o $@ $? -lcln -lginac
  25. poverx_oct.o: poverx.cpp
  26. CXXFLAGS="-O2 -std=c++11 -DOCTAVE" mkoctfile -c -o $@ $? -lcln -lginac
  27. poverx_oct: poverx_oct.o sysosndan.o solver.o sysdiffeqn.o funcdrag.o
  28. CXXFLAGS="-O2 -std=c++11" mkoctfile -o $@ $? -lcln -lginac
  29. sysosndan.o: sysosndan.cpp
  30. g++ -c -fPIC $? $(CFLAGS)
  31. sysdiffeqn.o: sysdiffeqn.cpp
  32. g++ -c -fPIC $? $(CFLAGS)
  33. funcdrag.o: funcdrag.cpp
  34. g++ -c -fPIC $? $(CFLAGS)
  35. solver.o: solver.cpp
  36. g++ -c -fPIC $? $(CFLAGS)
  37. octaveplg.o: octaveplg.cpp
  38. g++ -c $? $(CFLAGS)
  39. libmathgl.so: graphics.cpp
  40. g++ -shared -fPIC -o libmathgl.so graphics.cpp -lmgl -lmgl-fltk $(CFLAGS)
  41. check: Draghilev check.sh
  42. ./check.sh
  43. clean:
  44. rm *o *oct Draghilev