Update version info for release v4.6.1 (#2122)
[WRF.git] / external / io_grib2 / g2lib / Makefile
blobc4379398a57c2e2fefcaf6e36f34e4f364005e59
1 #------------------------------------------------------------------------------
2 # Makefile for producing libdbclient.so
4 # Copyright (C) 2001, WSI Corporation
5 #------------------------------------------------------------------------------
8 .SUFFIXES: .c .o
11 # Specity location for Makefiles that are included.
13 INCLUDEDIRS = -I.
14 BUILD_DIR = ../../io_grib_share/build
16 # Specify directory that output library is to be put in.
18 LIB_DEST = ..
20 # SPECIFY local include directories used during compilation of source code.
22 # CXX_INCLUDES is for C++ files
23 # C_INCLUDES is for C files
25 C_INCLUDES = -I.
26 CXX_INCLUDES = -I.
27 F_INCLUDES = -I. -Ig2lib
28 FORMAT = $(FIXED)
29 ARFLAGS = ruv
31 # SPECIFY any subdirectories containing libraries that may be dynamically
32 # linked by this library.
34 SUB_DIRS =
37 # SPECIFY information for building a library:
39 # LIB_NAME - Fragment of name of the library to build
40 # e.g. if library file name is libfoo.so, set LIB_NAME = foo
41 # DEP_LIBS - The tokens required to link a shared library against other
42 # shared libraries upon which it depends. DEP_LIBS should
43 # contain -L<dir> tokens to specify where the dependent
44 # libraries are, and -l<lib> tokens to specify libraries to link.
45 # OBJS - List of object files that go into the library.
47 # NOTES:
48 # 1. Be careful about whitespace after the last character in the LIB_NAME.
49 # These spaces will generate an error when the library is made.
51 LIB_NAME = io_grib2
52 CPPFLAGS = -DUSE_JPEG2000
54 # To have the option of using the PNG compression scheme in the grib2 output,
55 # uncomment the following line. In addition, you will need to assure
56 # that you have libpng and libz installed on your system. If the libraries
57 # are not in standard system locations, you will need to modify your
58 # configure.wrf file in order to specify the locations of the libraries.
60 #CPPFLAGS = -DUSE_PNG -DUSE_JPEG2000
62 # In addition, you will need to add the following objects to the object list
63 # below.
64 # pngpack.o \
65 # pngunpack.o \
66 # enc_png.o \
67 # dec_png.o \
69 # Further, you will need to add "-lpng" to your link line in configure.wrf
71 # Note: PNG functionality has only been tested on Linux.
74 DEP_LIBS =
75 OBJS = \
76 gridtemplates.o \
77 pdstemplates.o \
78 drstemplates.o \
79 gribmod.o \
80 realloc.o \
81 addfield.o \
82 addgrid.o \
83 addlocal.o \
84 getfield.o \
85 gb_info.o \
86 gf_getfld.o \
87 gf_free.o \
88 gf_unpack1.o \
89 gf_unpack2.o \
90 gf_unpack3.o \
91 gf_unpack4.o \
92 gf_unpack5.o \
93 gf_unpack6.o \
94 gf_unpack7.o \
95 gettemplates.o \
96 getlocal.o \
97 getdim.o \
98 getpoly.o \
99 gribcreate.o \
100 gribend.o \
101 gribinfo.o \
102 mkieee.o \
103 rdieee.o \
104 simpack.o \
105 simunpack.o \
106 cmplxpack.o \
107 compack.o \
108 misspack.o \
109 pack_gp.o \
110 reduce.o \
111 comunpack.o \
112 specpack.o \
113 specunpack.o \
114 jpcpack.o \
115 jpcunpack.o \
116 enc_jpeg2000.o \
117 dec_jpeg2000.o \
118 gbytesc.o \
119 skgb.o \
120 ixgb2.o \
121 getidx.o \
122 getg2i.o \
123 getg2ir.o \
124 getgb2s.o \
125 getgb2r.o \
126 getgb2l.o \
127 getgb2.o \
128 getgb2p.o \
129 getgb2rp.o \
130 putgb2.o \
131 g2grids.o \
132 gdt2gds.o \
133 mova2i.o \
134 params.o
137 # Include the boilerplate rules for building library modules.
139 include $(BUILD_DIR)/library_rules.mk
142 # Compile dependencies. These are appended to this file by make depend.
144 addfield.o: pdstemplates.o drstemplates.o
146 addgrid.o: gridtemplates.o
148 getfield.o: gridtemplates.o pdstemplates.o drstemplates.o
150 getg2ir.o: realloc.o
152 getgb2.o: gribmod.o
154 getgb2l.o: gribmod.o
156 getgb2p.o: gribmod.o
158 getgb2r.o: gribmod.o
160 getgb2s.o: gribmod.o
162 gf_free.o: gribmod.o
164 gf_getfld.o: gribmod.o
166 gf_unpack3.o: gridtemplates.o realloc.o
168 gf_unpack4.o: pdstemplates.o realloc.o
170 gf_unpack5.o: drstemplates.o realloc.o
172 ixgb2.o: realloc.o
174 putgb2.o: gribmod.o
176 # DO NOT DELETE THIS LINE -- make depend depends on it.