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)) |