source: trunk/src/makefile_hdf4 @ 1822

Revision 1636, 2.3 KB checked in by Pete Jemian, 7 months ago (diff)

point to current WWW site in license text, refs #281

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#====================================================================
2#  NeXus - Neutron & X-ray Common Data Format
3
4#  Makefile for building the NeXus library with the HDF4 libraries
5
6#  Copyright (C) 2002 Mark Koennecke
7
8#  This library is free software; you can redistribute it and/or
9#  modify it under the terms of the GNU Lesser General Public
10#  License as published by the Free Software Foundation; either
11#  version 2 of the License, or (at your option) any later version.
12#
13#  This library is distributed in the hope that it will be useful,
14#  but WITHOUT ANY WARRANTY; without even the implied warranty of
15#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16#  Lesser General Public License for more details.
17#
18#  You should have received a copy of the GNU Lesser General Public
19#  License along with this library; if not, write to the Free
20#  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21#  MA  02111-1307  USA
22#             
23#  For further information, see <http://www.nexusformat.org>
24#
25# $Id$
26#
27#====================================================================
28
29#Edit "makefile_options" to set compiler flags
30include makefile_options
31
32LIBNEXUS_OBJ=napi.o napif.o
33TEST4_OBJ=napi4_test.o
34NXBROWSE_OBJ=NXbrowse.o
35NXTOXML_OBJ=NXtoXML.o
36NXTODTD_OBJ=NXtoDTD.o
37NOPT=-DHDF4
38
39all: libNeXus.a napi4_test napif_test NXbrowse NXtoXML NXtoDTD
40
41.c.o :
42        $(CC) $(CFLAGS) $(NOPT) -I$(H4ROOT)/include -c $(FROOT)/$*.c
43.f.o:
44        $(FC) $(FFLAGS) -c $(FROOT)/$*.f
45
46libNeXus.a : $(LIBNEXUS_OBJ)
47        @echo "*** Creating NeXus interface based on HDF4 library (libNeXus.a) ***"
48        - rm $@
49        ar -cr $@ $(LIBNEXUS_OBJ)
50        ranlib $@
51       
52napi4_test: libNeXus.a $(TEST4_OBJ)
53        $(CC) $(CFLAGS) -o napi4_test $(TEST4_OBJ) $(FROOT)/libNeXus.a \
54        -L$(H4ROOT)/lib -lmfhdf -ldf -ljpeg -lz
55
56napif_test: libNeXus.a napif_test.o
57        $(FC) $(FFLAGS) -o napif_test napif_test.o $(FROOT)/libNeXus.a \
58        -L$(H4ROOT)/lib -lmfhdf -ldf -ljpeg -lz
59       
60NXbrowse: libNeXus.a $(NXBROWSE_OBJ)
61        $(CC) $(CFLAGS) -o NXbrowse $(NXBROWSE_OBJ) $(FROOT)/libNeXus.a \
62        -L$(H4ROOT)/lib -lmfhdf -ldf -ljpeg -lz
63
64NXtoXML: libNeXus.a $(NXTOXML_OBJ)
65        $(CC) $(CFLAGS) -o NXtoXML $(NXTOXML_OBJ) $(FROOT)/libNeXus.a \
66        -L$(H4ROOT)/lib -lmfhdf -ldf -ljpeg -lz
67
68NXtoDTD: libNeXus.a $(NXTODTD_OBJ)
69        $(CC) $(CFLAGS) -o NXtoDTD $(NXTODTD_OBJ) $(FROOT)/libNeXus.a \
70        -L$(H4ROOT)/lib -lmfhdf -ldf -ljpeg -lz
71
Note: See TracBrowser for help on using the repository browser.