blob: 8fc8bff627b744c14a6d87e83773a0ca2d8ea541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# /*@@
# @file make.subdir
# @date Mon Jan 18 19:12:31 1999
# @author Tom Goodale
# @desc
# Makes the object files in a subdirectory
# @enddesc
# @version $Id$
# @@*/
# Include the main make definitions for this configuration
include $(CONFIG)/make.config.defn
BINDINGS_DIR=$(TOP)/bindings
# Include the configuration make.THORN_NAME.defn for the thorn
# if it is not Cactus or CactusBindings
# (Note: This adds to INC_DIRS which is not necessary --
# should we empty and completely re-set INC_DIRS here,
# instead of exporting it from make.thornlib?)
ifneq ($(THORN), CactusBindings)
ifneq ($(THORN), Cactus)
-include $(BINDINGS_DIR)/Configuration/Thorns/make.$(THORN).defn
endif
endif
# Add appropriate include lines
INC_DIRS += $(SRCDIR) $(SRCDIR)/include
EXTRA_DEFINES += THORN_IS_$(THORN)
# Include the subdirectory's local include data
-include $(SRCDIR)/make.code.defn
# Include the bindings configuration make.code.defn for the thorn
-include $(TOP)/bindings/Configuration/$(THORN)/make.configuration.defn
# Turn source file names into object file names
OBJS = $(SRCS:%=%.o)
# Build all the object files
$(CCTK_TARGET): $(OBJS) $(SRCDIR)/make.code.defn
echo "" > make.checked
# Rules to make the object files
include $(CONFIG)/make.config.rules
# Extra subdir-specific dependencies
# This file isn't strictly necessary, so use -include to prevent
# warnings if it is missing.
-include $(SRCDIR)/make.code.deps
# Dependency stuff
ifneq ($(strip $(SRCS)),)
-include $(SRCS:%=%.d)
endif
|