[2759] | 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. |
---|
| 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 = -I. |
---|
| 26 | CXX_INCLUDES = -I. |
---|
| 27 | F_INCLUDES = -I. -Ig2lib -Ibacio-1.3 -I../io_grib_share |
---|
| 28 | ARFLAGS = cruv |
---|
| 29 | |
---|
| 30 | FORMAT = $(FREE) |
---|
| 31 | |
---|
| 32 | # |
---|
| 33 | # List of subdirectories to which to pass make commands. |
---|
| 34 | # |
---|
| 35 | LIB_DIRS = \ |
---|
| 36 | bacio-1.3 \ |
---|
| 37 | g2lib |
---|
| 38 | EXE_DIRS = |
---|
| 39 | SUB_DIRS = $(LIB_DIRS) $(EXE_DIRS) |
---|
| 40 | |
---|
| 41 | # |
---|
| 42 | # SPECIFY information for building a library: |
---|
| 43 | # |
---|
| 44 | # LIB_NAME - Fragment of name of the library to build |
---|
| 45 | # e.g. if library file name is libfoo.so, set LIB_NAME = foo |
---|
| 46 | # DEP_LIBS - The tokens required to link a shared library against other |
---|
| 47 | # shared libraries upon which it depends. DEP_LIBS should |
---|
| 48 | # contain -L<dir> tokens to specify where the dependent |
---|
| 49 | # libraries are, and -l<lib> tokens to specify libraries to link. |
---|
| 50 | # OBJS - List of object files that go into the library. |
---|
| 51 | # |
---|
| 52 | # NOTES: |
---|
| 53 | # 1. Be careful about whitespace after the last character in the LIB_NAME. |
---|
| 54 | # These spaces will generate an error when the library is made. |
---|
| 55 | # |
---|
| 56 | LIB_NAME = io_grib2 |
---|
| 57 | SYS_DEFINES = |
---|
| 58 | DEP_LIBS = |
---|
| 59 | OBJS = \ |
---|
| 60 | grib2tbls_types.o \ |
---|
| 61 | io_grib2.o \ |
---|
| 62 | read_grib2map.o |
---|
| 63 | |
---|
| 64 | # |
---|
| 65 | # Clean up old build files |
---|
| 66 | # |
---|
| 67 | superclean: |
---|
| 68 | /bin/rm -f *.o > /dev/null 2>&1 |
---|
| 69 | /bin/rm -f *.f90 > /dev/null 2>&1 |
---|
| 70 | /bin/rm -f *.mod > /dev/null 2>&1 |
---|
| 71 | /bin/rm -f *.a > /dev/null 2>&1 |
---|
| 72 | ( cd bacio-1.3 ; make clean ) |
---|
| 73 | ( cd g2lib ; make clean ) |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | # |
---|
| 77 | # Include the boilerplate rules for building library modules. |
---|
| 78 | # |
---|
| 79 | include $(BUILD_DIR)/library_rules.mk |
---|
| 80 | |
---|
| 81 | # |
---|
| 82 | # Compile dependencies. These are appended to this file by make depend. |
---|
| 83 | # |
---|
| 84 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|