![]() ![]() |
![]() |
File: [Development] / JSOC / proj / mag / polarfield / apps / Rules.mk
(download)
Revision: 1.2, Wed Mar 29 23:06:36 2017 UTC (6 years, 2 months ago) by xudong Branch: MAIN CVS Tags: Ver_LATEST, Ver_9-5, Ver_9-41, Ver_9-4, Ver_9-3, Ver_9-2, Ver_9-1 Changes since 1.1: +1 -1 lines added usflux for computing unsigned flux |
# Standard things sp := $(sp).x dirstack_$(sp) := $(d) d := $(dir) # Local variables MODEXE_$(d) := $(addprefix $(d)/, cp_polarfield meanpf usflux) MODEXE := $(MODEXE) $(MODEXE_$(d)) #MODEXE_SOCK_$(d):= $(MODEXE_$(d):%=%_sock) #MODEXE_SOCK := $(MODEXE_SOCK) $(MODEXE_SOCK_$(d)) EXE_$(d) := $(MODEXE_$(d)) OBJ_$(d) := $(EXE_$(d):%=%.o) DEP_$(d) := $(OBJ_$(d):%=%.d) CLEAN := $(CLEAN) \ $(OBJ_$(d)) \ $(EXE_$(d)) \ $(MODEXE_SOCK_$(d)) \ $(DEP_$(d)) TGT_BIN := $(TGT_BIN) $(EXE_$(d)) #$(MODEXE_SOCK_$(d)) S_$(d) := $(notdir $(EXE_$(d))) #$(MODEXE_SOCK_$(d))) # Local rules $(OBJ_$(d)): $(SRCDIR)/$(d)/Rules.mk $(OBJ_$(d)): CF_TGT := $(CF_TGT) -DCDIR="\"$(SRCDIR)/$(d)\"" $(OBJ_$(d)): CF_TGT := -I$(SRCDIR)/$(d)/../../../libs/astro -I/home/jsoc/include -I$(SRCDIR)/$(d)/src/ $(EXE_$(d)): LF_TGT := $(LF_TGT) -lmkl_em64t # I removed the compiler flags "-fp-model precise" and "-fp-model source" # from the LINK command. If the module really needs such precise handling # of floating-point operations, then the flags will have to be added to the # COMPILE command. Keh-Cheng 2012.08.31 # Shortcuts .PHONY: $(S_$(d)) $(S_$(d)): %: $(d)/% # Standard things -include $(DEP_$(d)) d := $(dirstack_$(sp)) sp := $(basename $(sp))
Karen Tian |
Powered by ViewCVS 0.9.4 |