~ubuntu-branches/ubuntu/natty/dnprogs/natty

« back to all changes in this revision

Viewing changes to libvaxdata/tru64/makefile.osf1

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Caulfield
  • Date: 2005-10-30 15:09:21 UTC
  • Revision ID: james.westby@ubuntu.com-20051030150921-h9yn20kzxtwmjh2a
Tags: 2.32
* fal removes [] from names as they could cause confusion.
* Fixed crash in libdap if a connection gets closed more than once.
* Fix libdnet's dnet_recv to cope with 0 being returned from recvmsg.
* Some minor manpage & packaging bugs fixed.
* Include dnlogin, a replacement for sethost.
* Include libvaxdata - a library of routines for converting between VAX.
  data formats and Unix ones. Contributed by Larry Baker of the 
  US Geological Survey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
################################################################################
 
2
#                                                                              #
 
3
# makefile.osf1 - Make library of functions for reading and writing VAX format #
 
4
#                 data for Tru64 Unix.                                         #
 
5
#                                                                              #
 
6
# Shell command syntax: make -f makefile.osf1 \                                #
 
7
#                            [ CC="c_compiler" ] \                             #
 
8
#                            [ CFLAGS="c_compiler_flags" ] \                   #
 
9
#                            [ all | libvaxdata | clean ]                      #
 
10
#                                                                              #
 
11
#                                                                              #
 
12
# Author:      Lawrence M. Baker                                               #
 
13
#              U.S. Geological Survey                                          #
 
14
#              345 Middlefield Road  MS977                                     #
 
15
#              Menlo Park, CA  94025                                           #
 
16
#              baker@usgs.gov                                                  #
 
17
#                                                                              #
 
18
# Citation:    Baker, Lawrence M., 2005, libvaxdata: VAX Data Format Conver-   #
 
19
#                 sion Routines, US Geological Survey, Open-File Report no.    #
 
20
#                 2005-XXX, nn p.                                              #
 
21
#                                                                              #
 
22
#                                                                              #
 
23
#                                 Disclaimer                                   #
 
24
#                                                                              #
 
25
# Although  this  program has been used by the USGS, no warranty, expressed or #
 
26
# implied, is made by the USGS or the  United  States  Government  as  to  the #
 
27
# accuracy  and  functioning  of the program and related program material, nor #
 
28
# shall the  fact  of  distribution  constitute  any  such  warranty,  and  no #
 
29
# responsibility is assumed by the USGS in connection therewith.               #
 
30
#                                                                              #
 
31
#                                                                              #
 
32
# Modification History:                                                        #
 
33
#                                                                              #
 
34
#  2-Sep-2005  L. M. Baker      Original version (from make.libvfbb).          #
 
35
# 12-Oct-2005  L. M. Baker      Use custom compile rule for is_little_endian.  #
 
36
#                                                                              #
 
37
################################################################################
 
38
 
 
39
# GNU C
 
40
# -O3 (highest level of optimization) -ansi (strict ANSI)
 
41
#CC     = gcc
 
42
#CFLAGS = -O3 -ansi
 
43
 
 
44
# DEC/Compaq/HP C
 
45
# -fast (optimize for speed) -std1 (strict ANSI)
 
46
#CC     = cc
 
47
#CFLAGS = -fast -std1
 
48
 
 
49
# alpha on DEC/Compaq/HP Alpha
 
50
ARCH = `uname -p`
 
51
 
 
52
LIB_NAME = libvaxdata
 
53
 
 
54
OBJS = from_vax_i2.o       from_vax_i2_.o      from_vax_i4.o       \
 
55
       from_vax_i4_.o      from_vax_r4.o       from_vax_r4_.o      \
 
56
       from_vax_d8.o       from_vax_d8_.o      from_vax_g8.o       \
 
57
       from_vax_g8_.o      from_vax_h16.o      from_vax_h16_.o     \
 
58
       to_vax_i2.o         to_vax_i2_.o        to_vax_i4.o         \
 
59
       to_vax_i4_.o        to_vax_r4.o         to_vax_r4_.o        \
 
60
       to_vax_d8.o         to_vax_d8_.o        to_vax_g8.o         \
 
61
       to_vax_g8_.o        to_vax_h16.o        to_vax_h16_.o       \
 
62
       is_little_endian.o  is_little_endian_.o
 
63
 
 
64
VPATH = ../../src
 
65
 
 
66
all:            $(LIB_NAME)
 
67
 
 
68
$(LIB_NAME):
 
69
        test -d $(ARCH) || mkdir $(ARCH)
 
70
        cd $(ARCH) ; $(MAKE) -f ../makefile.osf1 \
 
71
                             CC="$(CC)" \
 
72
                             CFLAGS="$(CFLAGS)" \
 
73
                             $(LIB_NAME).a
 
74
        cd $(ARCH) ; $(RM) $(OBJS)
 
75
 
 
76
$(LIB_NAME).a:  $(OBJS)
 
77
        ar -r -c $(LIB_NAME).a $(OBJS)
 
78
        ranlib $(LIB_NAME).a
 
79
 
 
80
is_little_endian.o:
 
81
        $(CC) -c -o $@ $?
 
82
 
 
83
is_little_endian_.o:
 
84
        $(CC) -c -o $@ $?
 
85
 
 
86
clean:
 
87
        cd $(ARCH) ; $(RM) -f $(LIB_NAME).a $(OBJS)