ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/libs/interpolate/Rules.mk
Revision: 1.1
Committed: Tue Mar 9 19:55:14 2010 UTC (13 years, 6 months ago) by arta
Branch: MAIN
CVS Tags: Ver_6-0, Ver_6-1, Ver_6-2, Ver_6-3, Ver_6-4, Ver_5-14, Ver_5-13, Ver_5-12, Ver_5-11, Ver_5-10, Ver_5-7, Ver_5-9, Ver_5-8, Ver_7-1, Ver_7-0
Log Message:
Moved the interpolate library from base to proj - added the fresize code too.

File Contents

# User Rev Content
1 arta 1.1 # For the interpolate library, the make system will generate 64-bit binaries only.
2    
3     # Standard things
4     sp := $(sp).x
5     dirstack_$(sp) := $(d)
6     d := $(dir)
7    
8     LIBINTERP := $(d)/libinterp.a
9    
10     OBJ_$(d) := $(addprefix $(d)/, cholesky_down.o finterpolate.o gapfill.o tinterpolate.o fresize.o)
11    
12     DEP_$(d) := $(OBJ_$(d):%=%.d)
13    
14     CLEAN := $(CLEAN) $(OBJ_$(d)) $(LIBINTERP) $(DEP_$(d))
15    
16     TGT_LIB := $(TGT_LIB) $(LIBINTERP)
17    
18     S_$(d) := $(notdir $(LIBINTERP))
19    
20     # Local rules
21     $(OBJ_$(d)): $(SRCDIR)/$(d)/Rules.mk
22     $(OBJ_$(d)): CF_TGT := $(CF_TGT) -I$(FFTW_INCS) -DCDIR="\"$(SRCDIR)/$(d)\""
23    
24    
25     # Add something like this when linking against this library
26     # ifeq ($(COMPILER), icc)
27     # MKL := -lmkl
28     #
29     # ifeq ($(JSOC_MACHINE), linux_x86_64)
30     # MKL := -static-intel -lmkl_em64t
31     # endif
32     #
33     # MODPATH: LL_TGT := $(LL_TGT) -L$(CFITSIO_LIBS) -l$(FFTW3_LIB)
34     #
35     # endif
36    
37     $(LIBINTERP): $(OBJ_$(d))
38     $(ARCHIVE)
39     $(SLLIB)
40    
41     # Shortcuts
42     .PHONY: $(S_$(d))
43     $(S_$(d)): %: $(d)/%
44    
45     # Standard things
46     -include $(DEP_$(d))
47    
48     d := $(dirstack_$(sp))
49     sp := $(basename $(sp))