1998-09-27 08:12:57 +00:00
|
|
|
--- makefile.orig Wed Sep 25 09:32:22 1996
|
1999-08-07 00:41:54 +00:00
|
|
|
+++ makefile Fri Aug 6 19:37:41 1999
|
1997-11-17 10:50:54 +00:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
PURIFY = #purify
|
|
|
|
PURELINK = #purelink
|
|
|
|
-C++ = $(PURIFY) g++
|
|
|
|
+C++ = $(PURIFY) g++ -w -I$(X11BASE)/include
|
|
|
|
LD = $(PURELINK) g++
|
|
|
|
|
|
|
|
#C++ = $(PURIFY) g++ -w -I/sgisoft/gnu/lib/g++-include # !!! SGI GNU 2.7.1
|
1999-06-22 17:51:59 +00:00
|
|
|
@@ -18,25 +18,33 @@
|
1997-11-17 10:50:54 +00:00
|
|
|
#FORFLAGS = -O -extend_source # SGI
|
|
|
|
|
|
|
|
DEBFLAG = -g
|
|
|
|
-OPTFLAG = -Wall -O -g
|
|
|
|
+#OPTFLAG = -Wall -O -g
|
|
|
|
|
|
|
|
LIBS = -lX11 -lm $(F77LIBS)
|
|
|
|
-#LIBDIR = /usr/X11/lib # PC LINUX, XFree86 3.1.1
|
1998-09-27 08:12:57 +00:00
|
|
|
+.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
+LIBS+=-Wl,-rpath,$(X11BASE)/lib
|
|
|
|
+.endif
|
1997-11-17 10:50:54 +00:00
|
|
|
|
|
|
|
-F77LIBS = -L/opt/SUNWspro/SC4.0/lib -lF77 -lM77 -lsunmath -lsocket -lnsl # SUN
|
1998-09-27 08:12:57 +00:00
|
|
|
+LIBDIR = $(X11BASE)/lib # PC LINUX, XFree86 3.1.1
|
|
|
|
+
|
1997-11-17 10:50:54 +00:00
|
|
|
+#F77LIBS = -L/opt/SUNWspro/SC4.0/lib -lF77 -lM77 -lsunmath -lsocket -lnsl # SUN
|
|
|
|
#F77LIBS = -lftn # SGI
|
|
|
|
#F77LIBS = -L/opt/SUNWspro/SC3.0/lib -lF77 -lM77 -lcomplex -lsunmath -lnsl -lsocket # SUN SC3.0
|
|
|
|
# F77LIBS = -lxlf -lxlf90 -lxlfutil # IBM
|
|
|
|
# F77LIBS = -lfor # DEC Alpha
|
|
|
|
-# F77LIBS = -lf2c # PC LINUX, XFree86 3.1.1
|
1999-08-07 00:41:54 +00:00
|
|
|
+.if defined(HAVE_G2C)
|
1999-06-22 17:51:59 +00:00
|
|
|
+F77LIBS = -lg2c # PC LINUX, XFree86 3.1.1
|
|
|
|
+.else
|
1997-11-17 10:50:54 +00:00
|
|
|
+F77LIBS = -lf2c # PC LINUX, XFree86 3.1.1
|
1999-06-22 17:51:59 +00:00
|
|
|
+.endif
|
1997-11-17 10:50:54 +00:00
|
|
|
|
|
|
|
-CFLAGS = -ansi
|
|
|
|
-CPPFLAGS =
|
|
|
|
+#CFLAGS = -ansi
|
|
|
|
+CPPFLAGS = $(CFLAGS)
|
|
|
|
LDFLAGS = $(DEBFLAG)
|
|
|
|
|
|
|
|
# -------------------------------------------------------------------------
|
|
|
|
|
|
|
|
-TargetDirectory = /temp # used for command 'copy'
|
|
|
|
+TargetDirectory = /tmp # used for command 'copy'
|
|
|
|
|
|
|
|
default: k6
|
|
|
|
|
1999-06-22 17:51:59 +00:00
|
|
|
@@ -77,18 +85,18 @@
|
1997-11-17 10:50:54 +00:00
|
|
|
FSources = ma28.f madc28.f
|
|
|
|
|
|
|
|
# SUN / SGI:
|
|
|
|
-ma28.o: ma28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
- $(FOR) -c $(FORFLAGS) ma28.f
|
|
|
|
-madc28.o: madc28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
- $(FOR) -c $(FORFLAGS) madc28.f
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-# SUN and PC LINUX:
|
|
|
|
#ma28.o: ma28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
# $(FOR) -c $(FORFLAGS) ma28.f
|
|
|
|
#madc28.o: madc28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
# $(FOR) -c $(FORFLAGS) madc28.f
|
|
|
|
|
|
|
|
+
|
|
|
|
+# SUN and PC LINUX:
|
|
|
|
+ma28.o: ma28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
+ $(FOR) -c $(FORFLAGS) ma28.f
|
|
|
|
+madc28.o: madc28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
+ $(FOR) -c $(FORFLAGS) madc28.f
|
|
|
|
+
|
|
|
|
# IBM:
|
|
|
|
#ma28.o: ma28.f sysmat.h sysmatml.h sysmatsp.h
|
|
|
|
# $(FOR) -c -qextname $(FORFLAGS) ma28.f
|
1999-06-22 17:51:59 +00:00
|
|
|
@@ -224,12 +232,12 @@
|
1997-11-17 10:50:54 +00:00
|
|
|
k3: $(k3O)
|
|
|
|
$(LD) $(LDFLAGS) -o k3 $(k3O) $(LIBS)
|
|
|
|
|
|
|
|
-k6: $(k6O)
|
|
|
|
- $(LD) $(LDFLAGS) -o k6 $(k6O) $(LIBS)
|
|
|
|
+#k6: $(k6O)
|
|
|
|
+# $(LD) $(LDFLAGS) -o k6 $(k6O) $(LIBS)
|
|
|
|
|
|
|
|
# under PC Linux add "-L$(LIBDIR)"
|
|
|
|
-#k6: $(k6O)
|
|
|
|
-# $(LD) $(LDFLAGS) -o k6 $(k6O) $(LIBS) -L$(LIBDIR)
|
|
|
|
+k6: $(k6O)
|
|
|
|
+ $(LD) $(LDFLAGS) -o k6 $(k6O) $(LIBS) -L$(LIBDIR)
|
|
|
|
|
|
|
|
|
|
|
|
|