*** f2c/libF77/makefile.orig Sat Jul 12 00:13:02 1997 --- f2c/libF77/makefile Sat Jul 12 00:18:39 1997 *************** *** 15,22 **** # compile, then strip unnecessary symbols .c.o: $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ! ld -r -x -o $*.xxx $*.o ! mv $*.xxx $*.o ## Under Solaris (and other systems that do not understand ld -x), ## omit -x in the ld line above. ## If your system does not have the ld command, comment out --- 15,22 ---- # compile, then strip unnecessary symbols .c.o: $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ! # ld -r -x -o $*.xxx $*.o ! # mv $*.xxx $*.o ## Under Solaris (and other systems that do not understand ld -x), ## omit -x in the ld line above. ## If your system does not have the ld command, comment out *************** *** 61,73 **** libF77.a : $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) $(TIME) ! ar r libF77.a $? ! -ranlib libF77.a ### If your system lacks ranlib, you don't need it; see README. Version.o: Version.c ! $(CC) -c Version.c # To compile with C++, first "make f2c.h" f2c.h: f2ch.add --- 61,75 ---- libF77.a : $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) $(TIME) ! ! SHAREDOBJ = $(patsubst %.o,../PIC/%.o,$(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) $(TIME)) ! ! shared: $(SHAREDOBJ) ### If your system lacks ranlib, you don't need it; see README. Version.o: Version.c ! $(CC) -c $(CFLAGS) Version.c # To compile with C++, first "make f2c.h" f2c.h: f2ch.add *************** *** 100,102 **** --- 102,108 ---- s_paus.c s_rnge.c s_stop.c sig_die.c signal1.h0 signal_.c system_.c \ z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c >zap cmp zap libF77.xsum && rm zap || diff libF77.xsum zap + + ../PIC/%.o : %.c + $(CC) -c $(CFLAGS) $(CPPFLAGS) -fPIC -o $@ $< + *** f2c/libI77/fio.h.orig Tue Apr 22 00:07:25 1997 --- f2c/libI77/fio.h Fri Jul 11 21:18:37 1997 *************** *** 5,10 **** --- 5,12 ---- #include "stddef.h" #endif + #define NON_UNIX_STDIO + #ifndef SEEK_SET #define SEEK_SET 0 #define SEEK_CUR 1 *** f2c/libI77/makefile.orig Wed May 7 19:13:39 1997 --- f2c/libI77/makefile Fri Jul 11 21:26:52 1997 *************** *** 6,13 **** # compile, then strip unnecessary symbols .c.o: $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ! ld -r -x -o $*.xxx $*.o ! mv $*.xxx $*.o ## Under Solaris (and other systems that do not understand ld -x), ## omit -x in the ld line above. ## If your system does not have the ld command, comment out --- 6,14 ---- # compile, then strip unnecessary symbols .c.o: $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ! # ld -r -x -o $*.xxx $*.o ! # mv $*.xxx $*.o ! ## Under Solaris (and other systems that do not understand ld -x), ## omit -x in the ld line above. ## If your system does not have the ld command, comment out *************** *** 17,25 **** fmt.o fmtlib.o ftell_.o iio.o ilnw.o inquire.o lread.o lwrite.o \ open.o rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o \ uio.o util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o libI77.a: $(OBJ) ! ar r libI77.a $? ! -ranlib libI77.a ### If your system lacks ranlib, you don't need it; see README. --- 18,29 ---- fmt.o fmtlib.o ftell_.o iio.o ilnw.o inquire.o lread.o lwrite.o \ open.o rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o \ uio.o util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o + + SHAREDOBJ = $(patsubst %.o,../PIC/%.o,$(OBJ)) + libI77.a: $(OBJ) ! ! shared: $(SHAREDOBJ) ### If your system lacks ranlib, you don't need it; see README. *************** *** 28,34 **** ranlib /usr/lib/libI77.a Version.o: Version.c ! $(CC) -c Version.c # To compile with C++, first "make f2c.h" f2c.h: f2ch.add --- 32,38 ---- ranlib /usr/lib/libI77.a Version.o: Version.c ! $(CC) -c $(CFLAGS) Version.c # To compile with C++, first "make f2c.h" f2c.h: f2ch.add *************** *** 102,104 **** --- 106,112 ---- typesize.c uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c \ xwsne.c >zap cmp zap libI77.xsum && rm zap || diff libI77.xsum zap + + ../PIC/%.o : %.c + $(CC) -c $(CFLAGS) $(CPPFLAGS) -fPIC -o $@ $< + *** f2c/makeall.orig Fri Jul 11 22:42:32 1997 --- f2c/makeall Fri Jul 11 21:44:20 1997 *************** *** 0 **** --- 1,27 ---- + # + # Make f2c(1), libf2c.a, libf2c.so + # This makefile is geared towards Linux systems, though + # it ought to work with little modifications on other + # Unix-like systems. + + # Ian Searle, 1/16/95 + SOEXT = .970709 + + all: f2c libf2c.a + + shared: libf2c.so + + f2c: + cd src; gcc -c -DCRAY malloc.c; make CFLAGS="$(MFLAG) $(RPM_OPT_FLAGS)" -f makefile + + libf2c.a: + cd libF77 ; make -f makefile CFLAGS="$(MFLAG) $(RPM_OPT_FLAGS) -DNO_ONEXIT" + cd libI77 ; make -f makefile CFLAGS="$(MFLAG) $(RPM_OPT_FLAGS)" + ar r libf2c.a libF77/*.o libI77/*.o + + + libf2c.so: + mkdir -p PIC + cd libF77 ; make -f makefile shared CFLAGS="$(RPM_OPT_FLAGS) -DNO_ONEXIT" + cd libI77 ; make -f makefile shared CFLAGS="$(RPM_OPT_FLAGS)" + gcc -shared -Wl,-soname,libf2c.so -o libf2c.so$(SOEXT) PIC/*.o -lm -lc