fix: makefile and fortran code except staden bap

This commit is contained in:
kuoi 2023-04-12 17:53:37 +08:00
parent f8b7bfff1b
commit 161e29f6d3
23 changed files with 114 additions and 116 deletions

View file

@ -16,7 +16,7 @@ INCLUDES = -I$(SRC)
# Alpha Version # Alpha Version
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS = -g $(INCLUDES)
ARFLAGS = rv ARFLAGS = rv
# #

View file

@ -16,9 +16,9 @@ SRC = .
# Alpha # Alpha
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact -I$(SRC)/../ted CFLAGS = -g -I$(SRC)/../ted
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
# #
# Make the programs # Make the programs

View file

@ -16,9 +16,9 @@ SRC = .
# Alpha # Alpha
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact -I$(SRC)/../ted CFLAGS = -g -I$(SRC)/../ted
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
# #

View file

@ -26,13 +26,13 @@ PROGS= $(NPROGS) $(LPROGS) $(XPROGS)
# #
SRC = . SRC = .
STADENSRC=$(SRC)/../staden STADENSRC=$(SRC)/../staden
STADENBIN=$(STADENSRC)/alpha-binaries STADENBIN=$(STADENSRC)
TEDSRC=$(SRC)/../ted TEDSRC=$(SRC)/../ted
TEDBIN=$(STADENBIN) TEDBIN=$(TEDSRC)
OSPSRC=$(SRC)/osp-bits OSPSRC=$(SRC)/osp-bits
OSPBIN=$(OSPSRC)/alpha-binaries OSPBIN=$(OSPSRC)
MISCSRC=$(SRC)/../Misc MISCSRC=$(SRC)/../Misc
MISCBIN=$(MISCSRC)/alpha-binaries MISCBIN=$(MISCSRC)
# Use the ted sources compiled for staden executables # Use the ted sources compiled for staden executables
INCLUDES= -I$(SRC) -I$(STADENSRC) -I$(TEDSRC) -I$(OSPSRC) -I$(MISCSRC) INCLUDES= -I$(SRC) -I$(STADENSRC) -I$(TEDSRC) -I$(OSPSRC) -I$(MISCSRC)
@ -41,18 +41,19 @@ INCLUDES= -I$(SRC) -I$(STADENSRC) -I$(TEDSRC) -I$(OSPSRC) -I$(MISCSRC)
# Compilers and flags # Compilers and flags
# #
CC= cc CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS= -g $(INCLUDES)
F77= f77 F77= gfortran
FFLAGS= -g -C FFLAGS= -g -C
FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil -ldnet_stub #FLIBS= -lfor -lUfor -lots -lFutil
FLIBS = -lm -lutil
XLIBS= -lXaw -lXt -lXmu -lXext -lX11 XLIBS= -lXaw -lXt -lXmu -lXext -lX11
LFLAGS= $(FLIBS) LFLAGS= $(FLIBS)
XLFLAGS= $(XLIBS) $(FLIBS) XLFLAGS= $(XLIBS) $(FLIBS)
LD = f77 LD = gfortran
XLD = cc XLD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
# #
# Avoid compilation of objects in remote directories # Avoid compilation of objects in remote directories
@ -540,28 +541,30 @@ splitp3: $(SPLITP3OBJS)
# avoid filling up the (small on this machine) /tmp directory # avoid filling up the (small on this machine) /tmp directory
# with compiler debugging information. # with compiler debugging information.
# #
#%.a: $(SRC)/%.f
# BINDIR=`pwd`; \
# cd $(SRC); \
# SRCDIR=`pwd`; \
# TMPDIR=/tmp/staden$$$$; \
# if test ! -d $$TMPDIR; \
# then mkdir $$TMPDIR; \
# fi; \
# cd $$TMPDIR; \
# rm -f *.f *.o; \
# fsplit $$SRCDIR/`expr $< : '.*/\(.*\)' \| $<`; \
# $(F77) $(FFLAGS) -c *.f; \
# rm *.f; \
# rm -f $$BINDIR/$@; \
# ar rcv $$BINDIR/$@ *.o; \
# ranlib $$BINDIR/$@; \
# rm *.o; \
# cd $$BINDIR; \
# rm -r $$TMPDIR
%.a: $(SRC)/%.f %.a: $(SRC)/%.f
BINDIR=`pwd`; \ $(F77) $(FFLAGS) -c *.f;
cd $(SRC); \ ar rcv $$BINDIR/$@ *.o;
SRCDIR=`pwd`; \
TMPDIR=/tmp/staden$$$$; \
if test ! -d $$TMPDIR; \
then mkdir $$TMPDIR; \
fi; \
cd $$TMPDIR; \
rm -f *.f *.o; \
fsplit $$SRCDIR/`expr $< : '.*/\(.*\)' \| $<`; \
$(F77) $(FFLAGS) -c *.f; \
rm *.f; \
rm -f $$BINDIR/$@; \
ar rcv $$BINDIR/$@ *.o; \
ranlib $$BINDIR/$@; \
rm *.o; \
cd $$BINDIR; \
rm -r $$TMPDIR

View file

@ -23,7 +23,7 @@ VERSION = SUBVERSION
# Compiler - debug on # Compiler - debug on
# #
CC= cc CC= cc
CFLAGS= -g -non_shared -std1 -ieee_with_inexact -D$(VERSION) CFLAGS= -g -D$(VERSION)
# #

View file

@ -4,12 +4,12 @@
SRC = . SRC = .
MISCSRC=$(SRC)/../Misc MISCSRC=$(SRC)/../Misc
MISCBIN=$(MISCSRC)/alpha-binaries MISCBIN=$(MISCSRC)
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact -I$(MISCSRC) CFLAGS = -g -I$(MISCSRC)
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
LIBS = $(MISCBIN)/misc.a LIBS = $(MISCBIN)/misc.a
# #

View file

@ -13,7 +13,7 @@ PROGS = cop cop-bap
SRC = . SRC = .
TEDSRC = $(SRC)/../ted TEDSRC = $(SRC)/../ted
MISCSRC = $(SRC)/../Misc MISCSRC = $(SRC)/../Misc
MISCBIN = $(MISCSRC)/alpha-binaries MISCBIN = $(MISCSRC)
CONVERTSRC = $(SRC)/../convert CONVERTSRC = $(SRC)/../convert
INCLUDES = -I$(SRC) -I$(TEDSRC) -I$(MISCSRC) -I$(CONVERTSRC) INCLUDES = -I$(SRC) -I$(TEDSRC) -I$(MISCSRC) -I$(CONVERTSRC)
@ -21,9 +21,9 @@ INCLUDES = -I$(SRC) -I$(TEDSRC) -I$(MISCSRC) -I$(CONVERTSRC)
# Alpha # Alpha
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS = -g $(INCLUDES)
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
LIBFLAGS = LIBFLAGS =
# #

View file

@ -42,9 +42,9 @@ INCLUDES = -I/usr/include/mit -I$(SRC) -I$(TEDSRC)
# Compiler - debug on # Compiler - debug on
# #
CC= cc CC= cc
CFLAGS= -g -ieee_with_inexact $(SWITCHES) $(INCLUDES) CFLAGS= -g $(SWITCHES) $(INCLUDES)
LD= cc LD= cc
LDFLAGS= -g -non_shared LDFLAGS= -g
# #

View file

@ -1,7 +1,7 @@
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact CFLAGS = -g
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
LIBFLAGS = LIBFLAGS =
SRC = . SRC = .

View file

@ -35,9 +35,9 @@ INCLUDES = -I$(SRC) -I$(TEDSRC)
# Compiler - debug on # Compiler - debug on
# #
CC= cc CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(SWITCHES) $(INCLUDES) CFLAGS= -g $(SWITCHES) $(INCLUDES)
LD= cc LD= cc
LDFLAGS= -g -non_shared LDFLAGS= -g
LIBFLAGS = LIBFLAGS =

View file

@ -44,9 +44,9 @@ SRC = .
# Alpha # Alpha
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact CFLAGS = -g
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
# #
# Shared objects # Shared objects

View file

@ -1,4 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: Graph.c,v 1.2 88/10/25 17:40:25 swick Exp $ */ /* $XConsortium: Graph.c,v 1.2 88/10/25 17:40:25 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

@ -1,4 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: Graph.h,v 1.2 88/10/25 17:22:09 swick Exp $ */ /* $XConsortium: Graph.h,v 1.2 88/10/25 17:22:09 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

@ -1,4 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: GraphP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */ /* $XConsortium: GraphP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

@ -42,11 +42,11 @@ SRC = .
# #
CC= cc CC= cc
INCLUDES = -I$(SRC) INCLUDES = -I$(SRC)
CFLAGS= -g -std1 -ieee_with_inexact $(SWITCHES) $(INCLUDES) CFLAGS= -g $(SWITCHES) $(INCLUDES)
LIBS= -lXaw -lXt -lXmu -lXext -lX11 -ldnet_stub LIBS= -lXaw -lXt -lXmu -lXext -lX11
# #
LD= cc LD= cc
LDFLAGS= -g -non_shared LDFLAGS= -g
# #
# Object files # Object files

View file

@ -22,9 +22,9 @@ TEDSRC = $(SRC)/../ted
# alpha # alpha
# #
CC= cc CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(SWITCHES) -I$(TEDSRC) CFLAGS= -g $(SWITCHES) -I$(TEDSRC)
LD= cc LD= cc
LDFLAGS= -g -non_shared LDFLAGS= -g
LIBFLAGS = LIBFLAGS =
%.o : $(SRC)/%.c %.o : $(SRC)/%.c

View file

@ -19,25 +19,25 @@ PROGS= $(NPROGS) $(LPROGS) $(XPROGS)
SRC=. SRC=.
TEDSRC=$(SRC)/../ted TEDSRC=$(SRC)/../ted
MISCSRC=$(SRC)/../Misc MISCSRC=$(SRC)/../Misc
MISCBIN=$(MISCSRC)/alpha-binaries MISCBIN=$(MISCSRC)
INCLUDES= -I$(SRC) -I$(TEDSRC) -I$(MISCSRC) INCLUDES= -I$(SRC) -I$(TEDSRC) -I$(MISCSRC)
# #
# Compilers and flags # Compilers and flags
# #
CC= cc CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS= -g $(INCLUDES)
F77= f77 F77= gfortran
FFLAGS= -g -C FFLAGS= -g -fdec -C
FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil
XLIBS= -lXaw -lXt -lXmu -lXext -lX11 -ldnet_stub XLIBS= -lXaw -lXt -lXmu -lXext -lX11 -ldnet_stub
LFLAGS= $(FLIBS) LFLAGS= $(FLIBS)
XLFLAGS= $(FLIBS) $(XLIBS) XLFLAGS= $(FLIBS) $(XLIBS)
LD = f77 LD = gfortran
CLD = cc CLD = cc
LDFLAGS = -g -non_shared # Comment out for faster linking when debugging LDFLAGS = -g # Comment out for faster linking when debugging
@ -549,25 +549,29 @@ vep: $(VEPOBJS)
# avoid filling up the (small on this machine) /tmp directory # avoid filling up the (small on this machine) /tmp directory
# with compiler debugging information. # with compiler debugging information.
# #
#%.a: $(SRC)/%.f
# BINDIR=`pwd`; \
# cd $(SRC); \
# SRCDIR=`pwd`; \
# TMPDIR=/tmp/staden$$$$; \
# if test ! -d $$TMPDIR; \
# then mkdir $$TMPDIR; \
# fi; \
# cd $$TMPDIR; \
# rm -f *.f *.o; \
# fsplit $$SRCDIR/`expr $< : '.*/\(.*\)' \| $<`; \
# $(F77) $(FFLAGS) -c *.f; \
# rm *.f; \
# rm -f $$BINDIR/$@; \
# ar rcv $$BINDIR/$@ *.o; \
# ranlib $$BINDIR/$@; \
# rm *.o; \
# cd $$BINDIR; \
# rm -r $$TMPDIR
%.a: $(SRC)/%.f %.a: $(SRC)/%.f
BINDIR=`pwd`; \
cd $(SRC); \
SRCDIR=`pwd`; \
TMPDIR=/tmp/staden$$$$; \
if test ! -d $$TMPDIR; \
then mkdir $$TMPDIR; \
fi; \
cd $$TMPDIR; \
rm -f *.f *.o; \
fsplit $$SRCDIR/`expr $< : '.*/\(.*\)' \| $<`; \
$(F77) $(FFLAGS) -c *.f; \ $(F77) $(FFLAGS) -c *.f; \
rm *.f; \ ar rcv *.o
rm -f $$BINDIR/$@; \
ar rcv $$BINDIR/$@ *.o; \
ranlib $$BINDIR/$@; \
rm *.o; \
cd $$BINDIR; \
rm -r $$TMPDIR
#.f.a: #.f.a:
# $(F77) $(FFLAGS) -c $< # $(F77) $(FFLAGS) -c $<

View file

@ -1,4 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: Graph.c,v 1.2 88/10/25 17:40:25 swick Exp $ */ /* $XConsortium: Graph.c,v 1.2 88/10/25 17:40:25 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

@ -1,5 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: Graph.h,v 1.2 88/10/25 17:22:09 swick Exp $ */ /* $XConsortium: Graph.h,v 1.2 88/10/25 17:22:09 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */
@ -44,38 +42,35 @@
/* define any special resource names here that are not in <X11/StringDefs.h> */ /* define any special resource names here that are not in <X11/StringDefs.h> */
#define XtNgraphResource "graphResource" #define XtNgraphResource "graphResource"
#define XtCGraphResource "GraphResource" #define XtCGraphResource "GraphResource"
#define XtNdimBackground "dimBackground"
#define XtNexposeCallback "exposeCallback"
#define XtNgraphColour1 "graphColour1"
#define XtNgraphColour2 "graphColour2"
#define XtNgraphColour3 "graphColour3"
#define XtNgraphColour4 "graphColour4"
#define XtNresizeCallback "resizeCallback"
#define XtNdimBackground "dimBackground"
#define XtNexposeCallback "exposeCallback"
#define XtNgraphColour1 "graphColour1"
#define XtNgraphColour2 "graphColour2"
#define XtNgraphColour3 "graphColour3"
#define XtNgraphColour4 "graphColour4"
#define XtNresizeCallback "resizeCallback"
/* declare specific GraphWidget class and instance datatypes */ /* declare specific GraphWidget class and instance datatypes */
typedef struct _GraphClassRec *GraphWidgetClass; typedef struct _GraphClassRec *GraphWidgetClass;
typedef struct _GraphRec *GraphWidget; typedef struct _GraphRec *GraphWidget;
/* declare the class constant */ /* declare the class constant */
extern WidgetClass graphWidgetClass; extern WidgetClass graphWidgetClass;
/* ---- Exported procedures ---- */ /* ---- Exported procedures ---- */
extern Pixel GraphColour1(Widget w); extern Pixel GraphColour1(Widget w);
extern Pixel GraphColour2(Widget w); extern Pixel GraphColour2(Widget w);
extern Pixel GraphColour3(Widget w); extern Pixel GraphColour3(Widget w);
extern Pixel GraphColour4(Widget w); extern Pixel GraphColour4(Widget w);
extern GC GraphGC1(Widget w); extern GC GraphGC1(Widget w);
extern GC GraphGC2(Widget w); extern GC GraphGC2(Widget w);
extern GC GraphGC3(Widget w); extern GC GraphGC3(Widget w);
extern GC GraphGC4(Widget w); extern GC GraphGC4(Widget w);
#endif /* _Graph_h */ #endif /* _Graph_h */

View file

@ -1,4 +1,3 @@
#include <X11/copyright.h>
/* $XConsortium: GraphP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */ /* $XConsortium: GraphP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

@ -33,13 +33,14 @@ SRC = .
# #
# Compiler - debug on # Compiler - debug on
# #
CC= cc CC= gfortran
INCLUDES = -I$(SRC) INCLUDES = -I$(SRC)
CFLAGS= -g -std1 -ieee_with_inexact $(SWITCHES) $(INCLUDES) CFLAGS= -g $(SWITCHES) $(INCLUDES)
LIBS= -lXaw -lXt -lXmu -lXext -lX11 -ldnet_stub LIBS= -lXaw -lXt -lXmu -lXext -lX11
#-ldnet_stub
# #
LD= cc LD= gfortran
LDFLAGS= -g -non_shared LDFLAGS= -g
# #
# Object files # Object files

View file

@ -12,16 +12,16 @@ PROGS = update_subclones
# #
SRC = . SRC = .
MISCSRC = $(SRC)/../Misc MISCSRC = $(SRC)/../Misc
MISCBIN = $(MISCSRC)/alpha-binaries MISCBIN = $(MISCSRC)
INCLUDES = -I$(SRC) -I$(MISCSRC) INCLUDES = -I$(SRC) -I$(MISCSRC)
# #
# Alpha # Alpha
# #
CC = cc CC = cc
CFLAGS = -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS = -g $(INCLUDES)
LD = cc LD = cc
LDFLAGS = -g -non_shared LDFLAGS = -g
# #
# Here they are # Here they are

View file

@ -21,7 +21,7 @@ all: $(PROGS)
SRC = . SRC = .
#STADENSRC=/nfs/rutland/home3/pubseq/inhouse/share/src/staden #STADENSRC=/nfs/rutland/home3/pubseq/inhouse/share/src/staden
STADENSRC=$(SRC)/../staden STADENSRC=$(SRC)/../staden
STADENBIN=$(STADENSRC)/alpha-binaries STADENBIN=$(STADENSRC)
# Use the ted sources compiled for staden executables # Use the ted sources compiled for staden executables
INCLUDES= -I$(STADENSRC) INCLUDES= -I$(STADENSRC)
@ -31,11 +31,11 @@ INCLUDES= -I$(STADENSRC)
# #
# debug on # debug on
CC= cc CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(INCLUDES) CFLAGS= -g $(INCLUDES)
F77= f77 F77= gfortran
FFLAGS= -g FFLAGS= -g
LD= f77 LD= gfortran
LDFLAGS= -g -non_shared LDFLAGS= -g
FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil
XLIBS= -lXaw -lXt -lXmu -lXext -lX11 XLIBS= -lXaw -lXt -lXmu -lXext -lX11