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
#
CC = cc
CFLAGS = -g -std1 -ieee_with_inexact $(INCLUDES)
CFLAGS = -g $(INCLUDES)
ARFLAGS = rv
#

View file

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

View file

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

View file

@ -26,13 +26,13 @@ PROGS= $(NPROGS) $(LPROGS) $(XPROGS)
#
SRC = .
STADENSRC=$(SRC)/../staden
STADENBIN=$(STADENSRC)/alpha-binaries
STADENBIN=$(STADENSRC)
TEDSRC=$(SRC)/../ted
TEDBIN=$(STADENBIN)
TEDBIN=$(TEDSRC)
OSPSRC=$(SRC)/osp-bits
OSPBIN=$(OSPSRC)/alpha-binaries
OSPBIN=$(OSPSRC)
MISCSRC=$(SRC)/../Misc
MISCBIN=$(MISCSRC)/alpha-binaries
MISCBIN=$(MISCSRC)
# Use the ted sources compiled for staden executables
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
#
CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(INCLUDES)
F77= f77
CFLAGS= -g $(INCLUDES)
F77= gfortran
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
LFLAGS= $(FLIBS)
XLFLAGS= $(XLIBS) $(FLIBS)
LD = f77
LD = gfortran
XLD = cc
LDFLAGS = -g -non_shared
LDFLAGS = -g
#
# Avoid compilation of objects in remote directories
@ -540,28 +541,30 @@ splitp3: $(SPLITP3OBJS)
# avoid filling up the (small on this machine) /tmp directory
# 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
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
$(F77) $(FFLAGS) -c *.f;
ar rcv $$BINDIR/$@ *.o;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -44,9 +44,9 @@ SRC = .
# Alpha
#
CC = cc
CFLAGS = -g -std1 -ieee_with_inexact
CFLAGS = -g
LD = cc
LDFLAGS = -g -non_shared
LDFLAGS = -g
#
# 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 $ */
/* 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 $ */
/* 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 $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

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

View file

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

View file

@ -19,25 +19,25 @@ PROGS= $(NPROGS) $(LPROGS) $(XPROGS)
SRC=.
TEDSRC=$(SRC)/../ted
MISCSRC=$(SRC)/../Misc
MISCBIN=$(MISCSRC)/alpha-binaries
MISCBIN=$(MISCSRC)
INCLUDES= -I$(SRC) -I$(TEDSRC) -I$(MISCSRC)
#
# Compilers and flags
#
CC= cc
CFLAGS= -g -std1 -ieee_with_inexact $(INCLUDES)
F77= f77
FFLAGS= -g -C
CFLAGS= -g $(INCLUDES)
F77= gfortran
FFLAGS= -g -fdec -C
FLIBS= -lfor -lutil -lUfor -lots -lFutil -lm -lfor -lutil -lUfor -lots -lFutil
XLIBS= -lXaw -lXt -lXmu -lXext -lX11 -ldnet_stub
LFLAGS= $(FLIBS)
XLFLAGS= $(FLIBS) $(XLIBS)
LD = f77
LD = gfortran
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
# 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
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
ar rcv *.o
#.f.a:
# $(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 $ */
/* 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 $ */
/* 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 XtNgraphResource "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 XtNgraphResource "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"
/* declare specific GraphWidget class and instance datatypes */
typedef struct _GraphClassRec *GraphWidgetClass;
typedef struct _GraphRec *GraphWidget;
typedef struct _GraphClassRec *GraphWidgetClass;
typedef struct _GraphRec *GraphWidget;
/* declare the class constant */
extern WidgetClass graphWidgetClass;
/* ---- Exported procedures ---- */
extern Pixel GraphColour1(Widget w);
extern Pixel GraphColour2(Widget w);
extern Pixel GraphColour3(Widget w);
extern Pixel GraphColour4(Widget w);
extern GC GraphGC1(Widget w);
extern GC GraphGC2(Widget w);
extern GC GraphGC3(Widget w);
extern GC GraphGC4(Widget w);
extern GC GraphGC1(Widget w);
extern GC GraphGC2(Widget w);
extern GC GraphGC3(Widget w);
extern GC GraphGC4(Widget w);
#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 $ */
/* Copyright Massachusetts Institute of Technology 1987, 1988 */

View file

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

View file

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

View file

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