| 1 | #------------------------------------------------------------------------------ |
|---|
| 2 | # Makefile for producing libdbclient.so |
|---|
| 3 | # |
|---|
| 4 | # Copyright (C) 2001, WSI Corporation |
|---|
| 5 | #------------------------------------------------------------------------------ |
|---|
| 6 | # |
|---|
| 7 | |
|---|
| 8 | .SUFFIXES: .c .o |
|---|
| 9 | |
|---|
| 10 | # Specity location for Makefiles that are included. |
|---|
| 11 | # |
|---|
| 12 | BUILD_DIR = ../../io_grib_share/build |
|---|
| 13 | INCLUDEDIRS = -I. -I.. -I ../MEL_grib1 |
|---|
| 14 | # |
|---|
| 15 | # Specify directory that output library is to be put in. |
|---|
| 16 | # |
|---|
| 17 | LIB_DEST = .. |
|---|
| 18 | # |
|---|
| 19 | # SPECIFY local include directories used during compilation of source code. |
|---|
| 20 | # |
|---|
| 21 | # CXX_INCLUDES is for C++ files |
|---|
| 22 | # C_INCLUDES is for C files |
|---|
| 23 | # |
|---|
| 24 | C_INCLUDES = -I. -I../MEL_grib1 |
|---|
| 25 | CXX_INCLUDES = -I. -I../MEL_grib1 |
|---|
| 26 | ARFLAGS = ruv |
|---|
| 27 | # |
|---|
| 28 | # SPECIFY any subdirectories containing libraries that may be dynamically |
|---|
| 29 | # linked by this library. |
|---|
| 30 | # |
|---|
| 31 | SUB_DIRS = |
|---|
| 32 | |
|---|
| 33 | # |
|---|
| 34 | # SPECIFY information for building a library: |
|---|
| 35 | # |
|---|
| 36 | # LIB_NAME - Fragment of name of the library to build |
|---|
| 37 | # e.g. if library file name is libfoo.so, set LIB_NAME = foo |
|---|
| 38 | # DEP_LIBS - The tokens required to link a shared library against other |
|---|
| 39 | # shared libraries upon which it depends. DEP_LIBS should |
|---|
| 40 | # contain -L<dir> tokens to specify where the dependent |
|---|
| 41 | # libraries are, and -l<lib> tokens to specify libraries to link. |
|---|
| 42 | # OBJS - List of object files that go into the library. |
|---|
| 43 | # |
|---|
| 44 | # NOTES: |
|---|
| 45 | # 1. Be careful about whitespace after the last character in the LIB_NAME. |
|---|
| 46 | # These spaces will generate an error when the library is made. |
|---|
| 47 | # |
|---|
| 48 | UNIT_TEST = test_rg |
|---|
| 49 | LIB_NAME = io_grib1 |
|---|
| 50 | DEP_LIBS = -L$(LIB_DEST) -lMEL_grib1 |
|---|
| 51 | OBJS = alloc_2d.o \ |
|---|
| 52 | read_grib.o \ |
|---|
| 53 | write_grib.o |
|---|
| 54 | |
|---|
| 55 | # |
|---|
| 56 | # Include the boilerplate rules for building library modules. |
|---|
| 57 | # |
|---|
| 58 | include $(BUILD_DIR)/library_rules.mk |
|---|
| 59 | |
|---|
| 60 | # |
|---|
| 61 | # Compile dependencies. These are appended to this file by make depend. |
|---|
| 62 | # |
|---|
| 63 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
|---|