Version 1.0
IRIS WORKSTATION GUIDE 83
Appendix D:
call-C wrapper
callc.fc
is automatically created from
callc.c
when the C source file
changes. This is caused by the dependency of
callc.o
on
callc.fc
. (The programmer is
responsible for placing the special comments for
extcentry
(1) in the C source.)
.SUFFIXES :
.SUFFIXES: .o .j .fc .cf .f .c
test: main.j callf.o callf.j callc.o
cc -o test main.j callf.o callf.j callc.o
callc.o: callc.fc
.c.fc:
extcentry $*.c $*.fc
.cf.o:
mkc2f $< $*.s
as -o $*.o $*.s
.fc.o:
cc $(CFLAGS) -c $*.c
mkf2c $< $*.s
as -o $*.wo $*.s
ld -r $*.o $*.wo
mv a.out $*.o
.f.j:
f77 -c *<
clean:
rm -f *.[osj] test *.fc *.wo
Using a
makefile
like this one, additional modules may be added to the
executable by one of the following steps:
1. If the file is a native C file whose routines are only to be called by
other C routines, simply add the
.o
to the specification of the final
make
target.
2. If the file is a native FORTRAN file whose routines are only to be
called by other FORTRAN routines, simply add the
.j
to the
specification of the final
make
target.
3. If the file is a FORTRAN file containing routines that must be called
from C, dummy entries for those routines must be hand-coded in C
into a file with the extension
.cf
. In this case, a
.o
and a
.j
specification must be added to the make target. (Thus, if the file
is
newf.f
, the entries must be coded and placed in
newf.cf
, and
both
newf.o
and
newf.j
must be added to lines four and five of the
makefile
.)
Summary of Contents for IRIS Workstation
Page 1: ...IRIS Workstation Guide Version 1 0 Silicon Graphics Inc Mountain View California 94043 ...
Page 6: ...2 IRIS WORKSTATION GUIDE Version 1 0 Introduction ...
Page 24: ...20 IRIS WORKSTATION GUIDE Version 1 0 Hardware Installation ...
Page 30: ...26 IRIS WORKSTATION GUIDE Version 1 0 Operation ...
Page 48: ...44 IRIS WORKSTATION GUIDE Version 1 0 System Administration ...
Page 50: ...46 IRIS WORKSTATION GUIDE Version 1 0 Appendix A ...
Page 74: ...70 IRIS WORKSTATION GUIDE Version 1 0 Appendix B ...
Page 77: ...Version 1 0 IRIS WORKSTATION GUIDE 73 Appendix C e random gr error f wnrepaint ...
Page 78: ...74 IRIS WORKSTATION GUIDE Version 1 0 Appendix C ...
Page 92: ...88 IRIS WORKSTATION GUIDE Version 1 0 Appendix D ...
Page 102: ...98 IRIS WORKSTATION GUIDE Version 1 0 Appendix E ...
Page 103: ...Appendix F Manual Pages ...
Page 104: ......
Page 131: ...Version 1 0 126 IRIS WORKSTATION GUIDE Appendix F ...
Page 132: ......
Page 136: ...130 IRIS WORKSTATION GUIDE Version 1 0 Appendix H ...
Page 152: ...146 IRIS WORKSTATION GUIDE Version 1 0 Appendix J ...