File: make.macos9

package info (click to toggle)
dnprogs 2.43.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,936 kB
  • ctags: 3,872
  • sloc: ansic: 24,686; cpp: 10,608; makefile: 769; sh: 551; awk: 13
file content (101 lines) | stat: -rw-r--r-- 5,123 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
################################################################################
#                                                                              #
# 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                                           #
#              baker@usgs.gov                                                  #
#                                                                              #
# 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