Makefile.xfoil.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. --- bin/Makefile 2013-11-19 00:23:37.000000000 -0500
  2. +++ bin/Makefile.xfoil 2016-09-12 22:42:05.000000000 -0400
  3. @@ -4,10 +4,7 @@
  4. # M.Drela
  5. #*********************************************************
  6. -
  7. -SHELL = sh
  8. -BINDIR = /home/codes/bin/
  9. -#BINDIR = .
  10. +BINDIR = $(DESTDIR)/usr/bin
  11. PROGS = xfoil pplot pxplot
  12. @@ -33,104 +30,39 @@
  13. OSOBJ = frplot.o ntcalc.o osmap.o getosfile.o
  14. ##----------------------------------------------------
  15. -PLTOBJ = ../plotlib/libPlt.a
  16. +PLTOBJ = ../plotlib/libPlt_gDP.a
  17. # Use this if you have a copy of the plotlib as a system library
  18. #PLTOBJ = -lPlt
  19. # The extra location arg here is for Linux which places X libs in /usr/X11R6
  20. -PLTLIB = -L/usr/X11R6/lib -lX11
  21. +PLTLIB = -lX11
  22. ###================================================
  23. ### Default compilers and flags
  24. ### FFLOPT used for xsolve.f
  25. -FC = f77
  26. -FFLAGS = -O
  27. -FFLOPT = -O
  28. -INSTALLCMD = install -s
  29. -
  30. -CC = cc
  31. -CFLAGS = -O -DUNDERSCORE
  32. -
  33. -##--------------------------
  34. -# Uncomment flags for desired machine...
  35. +CC = gcc
  36. +CFLAGS = -O2 -DUNDERSCORE
  37. ##--------------------------
  38. -### DEC Alpha with OSF and DEC f77/f90 compiler
  39. -#FC = f77
  40. -#FFLAGS = -fast -O4 -tune host
  41. -#FFLOPT = -fast -O4 -tune host
  42. -#FFLOPT = -fast -O5 -tune host -unroll 3
  43. -# Debug flags
  44. -#FFLAGS = -O0 -g
  45. -#FFLOPT = -fast -O4 -tune host
  46. -##--------------------------
  47. -### SGI setup
  48. -#FC = f77
  49. -#FFLAGS = -O2 -static
  50. -#FFLOPT = -O2 -static
  51. -##--------------------------
  52. -## Uncomment for RS/6000
  53. -#FFLAGS = -O -qextname
  54. -#FFLOPT = -O -qextname
  55. -##--------------------------
  56. -## Uncomment for HP-9000
  57. -#FFLAGS = -O +ppu
  58. -#FFLOPT = -O +ppu
  59. -#FTNLIB = -U77
  60. -##--------------------------
  61. -### Absoft Linux f77
  62. -#FC = f77
  63. -#FFLAGS = -O -f -s -W -B108 -N34
  64. -#FFLOPT = -O -f -s -W -B108 -N34
  65. -##--------------------------
  66. -### f2c/gcc compiler driver
  67. -#FC = fort77
  68. -#FFLAGS = -O2 -fomit-frame-pointer
  69. -#FFLOPT = -O2 -fomit-frame-pointer
  70. -##--------------------------
  71. -### GNU g77
  72. -#FC = g77
  73. -#FFLAGS = -O3 -fomit-frame-pointer
  74. -#FFLOPT = -O3 -fomit-frame-pointer
  75. -# Debug flags (symbols, array bounds)
  76. -#FC = g77
  77. -#FFLAGS = -g -O0 -C
  78. -##--------------------------
  79. -### GNU gfortran
  80. -#FC = gfortran
  81. -#FFLAGS = -O3 -fomit-frame-pointer
  82. -#FFLOPT = -O3 -fomit-frame-pointer
  83. -# Debug flags (symbols, array bounds)
  84. -#FFLAGS = -g -O0 -fbounds-check
  85. -#FFLOPT = -g -O0 -fbounds-check
  86. -#
  87. -### Double precision option
  88. -#FFLAGS = -O3 -fdefault-real-8
  89. -#FFLOPT = -O3 -fdefault-real-8
  90. -#FFLAGS = -O3 -fdefault-real-8 -fbounds-check
  91. -#FFLOPT = -O3 -fdefault-real-8 -fbounds-check
  92. -# Debug flags (symbols, array bounds)
  93. -#FFLAGS = -g -O0 -C
  94. -##--------------------------
  95. ### Gfortran
  96. FC = gfortran
  97. CHK =
  98. -CHK = -fbounds-check -finit-real=inf -ffpe-trap=invalid,zero
  99. +CHK = -std=legacy
  100. DBL = -fdefault-real-8
  101. -FFLAGS = -O $(CHK) $(DBL)
  102. -FFLOPT = -O $(CHK) $(DBL)
  103. +FFLAGS = -O2 $(CHK) $(DBL)
  104. +FFLOPT = -O2 $(CHK) $(DBL)
  105. FTNLIB =
  106. PLTOBJ = ../plotlib/libPlt_gDP.a
  107. -
  108. all: $(PROGS)
  109. install:
  110. - $(INSTALLCMD) $(PROGS) $(BINDIR)
  111. + install -d -m 0755 $(BINDIR)
  112. + install -m 0755 $(PROGS) $(BINDIR)
  113. clean:
  114. -/bin/rm $(PROGS)
  115. @@ -141,20 +73,15 @@
  116. xfoil: $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ)
  117. $(FC) -o xfoil $(XFOILOBJ) $(XUTILOBJ) $(OSOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB)
  118. - $(INSTALLCMD) xfoil $(BINDIR)
  119. pxplot: $(PXPLOTOBJ) $(XUTILOBJ)
  120. $(FC) -o pxplot $(PXPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB)
  121. - $(INSTALLCMD) pxplot $(BINDIR)
  122. pplot: $(PPLOTOBJ) $(XUTILOBJ)
  123. $(FC) -o pplot $(PPLOTOBJ) $(XUTILOBJ) $(PLTOBJ) $(PLTLIB) $(FTNLIB)
  124. - $(INSTALLCMD) pplot $(BINDIR)
  125. blu: blu.o profil.o
  126. $(FC) -o blu blu.o profil.o
  127. - $(INSTALLCMD) blu $(BINDIR)
  128. -
  129. blu.o: $(SRC)/blu.f
  130. $(FC) -c $(FFLAGS) $(SRC)/blu.f