blob: 82a72ac7a1dcb07b2d635acd5f3da5f1de654c05 (
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
|
# /*@@
# @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$
# @@*/
# Silence all but designated output
.SILENT:
# Include the main make definitions for this configuration
include $(CONFIG)/make.config.defn
# Add appropriate include lines
INC_DIRS += $(SRCDIR) $(SRCDIR)/include $(CONFIG) $(CCTK_HOME)/src/include
# Include the subdirectories local include data
include $(SRCDIR)/make.code.defn
# Turn source file names into object file names
OBJS = $(patsubst %,%.o,$(basename $(SRCS)))
# Build all the object files
.PHONY:all
all: $(OBJS)
# Rules to make the object files
include $(CONFIG)/make.config.rules
# Extra subdir-specific dependencies
include $(SRCDIR)/make.code.deps
|