ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/JSOC/proj/globalhs/libs/dtgf/Rules.mk
Revision: 1.2
Committed: Tue Apr 30 05:55:52 2013 UTC (10 years, 4 months ago) by tplarson
Branch: MAIN
CVS Tags: globalhs_version_5, Ver_8-5, Ver_8-3, globalhs_version_0, globalhs_version_1, globalhs_version_2, globalhs_version_3, globalhs_version_4, Ver_8-2, Ver_8-1, Ver_8-6, Ver_8-4
Changes since 1.1: +2 -2 lines
Log Message:
changed conditional

File Contents

# Content
1 # $Header: /home/cvsuser/cvsroot/JSOC/proj/globalhs/libs/dtgf/Rules.mk,v 1.1 2013/04/28 07:46:58 tplarson Exp $
2
3 # Standard things
4 sp := $(sp).x
5 dirstack_$(sp) := $(d)
6 d := $(dir)
7
8 # Local variables
9 LIBDTGF := $(d)/libdtgf.a
10
11 OBJ_$(d) := $(addprefix $(d)/, fahlman_ulrych_C99.o pcg_C99.o levinson_C99.o multi_burg_C99.o detrend_C99.o cblas.o)
12
13 DEP_$(d) := $(OBJ_$(d):%=%.d)
14
15 CLEAN := $(CLEAN) $(OBJ_$(d)) $(LIBDTGF) $(DEP_$(d))
16
17 TGT_LIB := $(TGT_LIB) $(LIBDTGF)
18
19 S_$(d) := $(notdir $(LIBDTGF))
20
21 JTSFDEBUG_$(d) :=
22 ifdef JTSFIDDLE_DEBUG
23 ifeq ($(JTSFIDDLE_DEBUG),1)
24 JTSFDEBUG_$(d) := -DDEBUGOUT
25 endif
26 endif
27
28 $(OBJ_$(d)): CF_TGT := $(CF_TGT) $(JTSFDEBUG_$(d))
29
30 # Local rules
31 $(OBJ_$(d)): $(SRCDIR)/$(d)/Rules.mk
32
33 .PHONY: force_libdtgf
34 $(OBJ_$(d)): force_libdtgf
35 force_libdtgf:
36 [[ $(GLOBALHS_TAG) =~ globalhs ]]
37
38 $(LIBDTGF) : $(OBJ_$(d))
39 $(ARCHIVE)
40 $(SLLIB)
41
42 # Shortcuts
43 .PHONY: $(S_$(d))
44 $(S_$(d)): %: $(d)/%
45
46 # Standard things
47 -include $(DEP_$(d))
48
49 d := $(dirstack_$(sp))
50 sp := $(basename $(sp))