summarylogtreecommitdiffstats
path: root/Makefile_linux.patch
blob: 1cce7c82c4f7e25fb3b01f439966a7484954942e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- src/rw05/src/Makefile.linux	2022-11-04 15:38:59.174478050 +0000
+++ Makefile.linux	2022-11-04 15:33:51.449500008 +0000
@@ -20,22 +20,22 @@
 #------------------------------------------------------------------------
 #    CHANGE  the next 3 lines to suit your installation preferences
 
-    INSTALL_DIR = ${HOME}/rw_current
-        INSTALL = /usr/bin/install -m 0644 -o radfordd -g users
-    INSTALL_BIN = /usr/bin/install -m 0755 -o radfordd -g users
+    INSTALL_DIR = ${DESTINATION_DIR}
+        INSTALL = /usr/bin/install -m 0644 -o `id -un` -g `id -gn`
+    INSTALL_BIN = /usr/bin/install -m 0755 -o `id -un` -g `id -gn`
 
 #------------------------------------------------------------------------
 
-             CC = cc
+             CC = gcc
              FC = $(CC)
-         CFLAGS = -O2 -Wall -I$(MOTIF_TOP)/include -DHAVE_GNU_READLINE
+         CFLAGS = -march=native -O2 -Wall -DHAVE_GNU_READLINE
 
          RANLIB = ranlib
              AR = ar rv
              RM = -rm -f
          RM_CMD = $(RM) *.o core* *[~%] *.trace
 
-           LIBS = -lX11 -lm -lreadline -lncurses
+           LIBS = -lX11 -lm -lreadline -lncurses -lgfortran
      MOTIF_LIBS = -lXm -lMrm -lXt -lXext -lXp
    STATIC_MOTIF = -lXm -lMrm -lXpm -lXt -lSM -lICE -lXext -lXp
 
@@ -43,13 +43,13 @@
 #  UNCOMMENT and CHANGE (if necessary)  the line defining HISLIBS
 #  if you have orphlib.a on your system, and you want to be able to read .his files.
 #  UNCOMMENT the line defining FC as gcc if orphlib was compiled using gcc
-#        HISLIBS = /usr/hhirf/orphlib.a
-#             FC = g77
+        HISLIBS = /usr/local/hhirf/orphlib.a
+             FC = gfortran
 
 #------------------------------------------------------------------------
 
-      LIB_PATHS = -L. -L$(X_WIN_TOP)/lib
-   XM_LIB_PATHS = -L$(MOTIF_TOP)/lib
+      LIB_PATHS = /usr/local/hhirf/orphlib.a -L.
+   XM_LIB_PATHS = -L/usr/lib
            GTK2 = TRUE
 
  SUB_MAKE_FLAGS = "CC = ${CC}" "CFLAGS = ${CFLAGS}" \