1 | #------------------------------------------------------------------------------ |
---|
2 | # Makefile for producing libdbclient.so |
---|
3 | # |
---|
4 | # Copyright (C) 2001, WSI Corporation |
---|
5 | #------------------------------------------------------------------------------ |
---|
6 | # |
---|
7 | |
---|
8 | .SUFFIXES: .c .o |
---|
9 | |
---|
10 | # |
---|
11 | # Specity location for Makefiles that are included. |
---|
12 | # |
---|
13 | INCLUDEDIRS = -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share |
---|
14 | BUILD_DIR = $(IO_GRIB_SHARE_DIR)../io_grib_share/build |
---|
15 | # |
---|
16 | # Specify directory that output library is to be put in. |
---|
17 | # |
---|
18 | LIB_DEST = . |
---|
19 | # |
---|
20 | # SPECIFY local include directories used during compilation of source code. |
---|
21 | # |
---|
22 | # CXX_INCLUDES is for C++ files |
---|
23 | # C_INCLUDES is for C files |
---|
24 | # |
---|
25 | C_INCLUDES = $(INCLUDEDIRS) |
---|
26 | CXX_INCLUDES = $(INCLUDEDIRS) |
---|
27 | F_INCLUDES = $(INCLUDEDIRS) |
---|
28 | ARFLAGS = cruv |
---|
29 | |
---|
30 | FORMAT = $(FREE) |
---|
31 | |
---|
32 | # |
---|
33 | # SPECIFY any subdirectories containing libraries that may be dynamically |
---|
34 | # linked by this library. |
---|
35 | # |
---|
36 | SUB_DIRS = |
---|
37 | |
---|
38 | # |
---|
39 | # SPECIFY information for building a library: |
---|
40 | # |
---|
41 | # LIB_NAME - Fragment of name of the library to build |
---|
42 | # e.g. if library file name is libfoo.so, set LIB_NAME = foo |
---|
43 | # DEP_LIBS - The tokens required to link a shared library against other |
---|
44 | # shared libraries upon which it depends. DEP_LIBS should |
---|
45 | # contain -L<dir> tokens to specify where the dependent |
---|
46 | # libraries are, and -l<lib> tokens to specify libraries to link. |
---|
47 | # OBJS - List of object files that go into the library. |
---|
48 | # |
---|
49 | # NOTES: |
---|
50 | # 1. Be careful about whitespace after the last character in the LIB_NAME. |
---|
51 | # These spaces will generate an error when the library is made. |
---|
52 | # |
---|
53 | LIB_NAME = io_grib1 |
---|
54 | SYS_DEFINES = |
---|
55 | DEP_LIBS = |
---|
56 | OBJS = \ |
---|
57 | grib1_routines.o \ |
---|
58 | gribmap.o \ |
---|
59 | io_grib1.o \ |
---|
60 | trim.o |
---|
61 | |
---|
62 | # |
---|
63 | # List of subdirectories to which to pass make commands. |
---|
64 | # |
---|
65 | LIB_DIRS = \ |
---|
66 | MEL_grib1 \ |
---|
67 | grib1_util \ |
---|
68 | WGRIB |
---|
69 | EXE_DIRS = |
---|
70 | SUB_DIRS = $(LIB_DIRS) $(EXE_DIRS) |
---|
71 | |
---|
72 | # |
---|
73 | # Clean up old build files |
---|
74 | # |
---|
75 | superclean: |
---|
76 | /bin/rm -f *.o *.obj > /dev/null 2>&1 |
---|
77 | /bin/rm -f *.f90 > /dev/null 2>&1 |
---|
78 | /bin/rm -f *.mod > /dev/null 2>&1 |
---|
79 | /bin/rm -f *.a > /dev/null 2>&1 |
---|
80 | /bin/rm -f wgrid.exe > /dev/null 2>&1 |
---|
81 | ( cd grib1_util ; make clean ) |
---|
82 | ( cd MEL_grib1 ; make clean ) |
---|
83 | ( cd WGRIB ; make clean ) |
---|
84 | |
---|
85 | # |
---|
86 | # Include the boilerplate rules for building library modules. |
---|
87 | # |
---|
88 | include $(BUILD_DIR)/library_rules.mk |
---|
89 | |
---|
90 | # |
---|
91 | # Compile dependencies. These are appended to this file by make depend. |
---|
92 | # |
---|
93 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|