Update of /cvsroot/linux-decnet/dnprogs/libvaxdata/macos9
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7174/macos9
Added Files:
make.macos9 make.mrc make.mwcc readme
Log Message:
Add in libvaxdata
--- NEW FILE: make.macos9 ---
################################################################################
# #
# make.macos9 - Make library of functions for reading and writing VAX format #
# data for Macintosh PowerPC. #
# #
# MPW command syntax: make.macos9 [ all | libvaxdata | clean ] #
# #
# #
# Author: Lawrence M. Baker #
# U.S. Geological Survey #
# 345 Middlefield Road MS977 #
# Menlo Park, CA 94025 #
# ba...@us... #
# #
# Citation: Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver- #
# sion Routines, US Geological Survey, Open-File Report no. #
# 2005-XXX, nn p. #
# #
# #
# Disclaimer #
# #
# Although this program has been used by the USGS, no warranty, expressed or #
# implied, is made by the USGS or the United States Government as to the #
# accuracy and functioning of the program and related program material, nor #
# shall the fact of distribution constitute any such warranty, and no #
# responsibility is assumed by the USGS in connection therewith. #
# #
# #
# Modification History: #
# #
# 2-Sep-2005 L. M. Baker Original version (from make.libvfbb). #
# 6-Oct-2005 L. M. Baker Use custom compile rule for is_little_endian. #
# #
################################################################################
# Apple MrC
# -opt speed (optimize for speed) -ansi strict (strict ANSI)
#Set CC "MrC"
#Set CFlags "-opt speed -ansi strict"
# Metrowerks CodeWarrior C
# -opt all (optimize for speed) -ansi on (strict ANSI)
#Set CC "mwcc"
#Set CFlags "-opt all -ansi on"
Set LibName "libvaxdata"
If ( ( "{1}" == "" ) || ( "{1}" == "all" ) || ( "{1}" == "{LibName}" ) )
Set Echo 1
#
# VAX Data Conversion Routines
#
{CC} -o from_vax_i2.c.o {CFlags} ::src:from_vax_i2.c
{CC} -o from_vax_i4.c.o {CFlags} ::src:from_vax_i4.c
{CC} -o from_vax_r4.c.o {CFlags} ::src:from_vax_r4.c
{CC} -o from_vax_d8.c.o {CFlags} ::src:from_vax_d8.c
{CC} -o from_vax_g8.c.o {CFlags} ::src:from_vax_g8.c
{CC} -o from_vax_h16.c.o {CFlags} ::src:from_vax_h16.c
{CC} -o to_vax_i2.c.o {CFlags} ::src:to_vax_i2.c
{CC} -o to_vax_i4.c.o {CFlags} ::src:to_vax_i4.c
{CC} -o to_vax_r4.c.o {CFlags} ::src:to_vax_r4.c
{CC} -o to_vax_d8.c.o {CFlags} ::src:to_vax_d8.c
{CC} -o to_vax_g8.c.o {CFlags} ::src:to_vax_g8.c
{CC} -o to_vax_h16.c.o {CFlags} ::src:to_vax_h16.c
{CC} -o is_little_endian.c.o ::src:is_little_endian.c
#
# Create a PPC static library
#
PPCLink -o {LibName}.o -xm l ¶
from_vax_i2.c.o from_vax_i4.c.o from_vax_r4.c.o ¶
from_vax_d8.c.o from_vax_g8.c.o from_vax_h16.c.o ¶
to_vax_i2.c.o to_vax_i4.c.o to_vax_r4.c.o ¶
to_vax_d8.c.o to_vax_g8.c.o to_vax_h16.c.o ¶
is_little_endian.c.o
Delete -i from_vax_i2.c.o from_vax_i4.c.o from_vax_r4.c.o ¶
from_vax_d8.c.o from_vax_g8.c.o from_vax_h16.c.o ¶
to_vax_i2.c.o to_vax_i4.c.o to_vax_r4.c.o ¶
to_vax_d8.c.o to_vax_g8.c.o to_vax_h16.c.o ¶
is_little_endian.c.o
Set Echo 0
Else If ( "{1}" == "clean" )
Set Echo 1
Delete -i {LibName}.o
Delete -i from_vax_i2.c.o from_vax_i4.c.o from_vax_r4.c.o ¶
from_vax_d8.c.o from_vax_g8.c.o from_vax_h16.c.o ¶
to_vax_i2.c.o to_vax_i4.c.o to_vax_r4.c.o ¶
to_vax_d8.c.o to_vax_g8.c.o to_vax_h16.c.o ¶
is_little_endian.c.o
Set Echo 0
Else
Echo "MPW command syntax: make [ all | libvaxdata | clean ]"
End
--- NEW FILE: make.mrc ---
#
# make.mrc - Make library of functions for reading and writing VAX format data
# for Macintosh PowerPC using Apple MPW C (MrC).
#
# MPW command syntax: make.mrc [ all | libvaxdata | clean ]
#
# -opt speed (optimize for speed) -ansi strict (strict ANSI)
Set CC "MrC"
Set CFlags "-opt speed -ansi strict"
Execute make.macos9
--- NEW FILE: make.mwcc ---
#
# make.mwcc - Make library of functions for reading and writing VAX format data
# for Macintosh PowerPC using Metrowerks CodeWarrior C (mwcc).
#
# MPW command syntax: make.mwcc [ all | libvaxdata | clean ]
#
# -opt all (optimize for speed) -ansi on (strict ANSI)
Set CC "mwcc"
Set CFlags "-opt all -ansi on"
Execute make.macos9
--- NEW FILE: readme ---
Two MPW scripts have been provided for Mac OS 9:
make.mrc Apple/Motorola C (MrC)
make.mwcc Metrowerks CodeWarrior C (mwcc)
To create libvaxdata.o from here:
make.xxx [ all | libvaxdata | clean ]
substituting mrc or mwcc for xxx. The default make target is all. The
library and all object files will be written here.
Note
The MPW Shell requires that the make.* files have Macintosh
line endings (CR), not Unix line endings (LF) or Windows/DOS
line endings (CR-LF).
To link a C program with the library:
PPCLink -o program program.c.o :here:libvaxdata.o
substituting the path to the library for here (assuming it has not been moved
or copied somewhere else).
|