blob: b8437a748ac2afbafdf29e3b4031e30483bc4fc5 (
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
|
# /*@@
# @file make.config.rules.in
# @date Sun Jan 17 22:31:16 1999
# @author Tom Goodale
# @desc
# Rules to generate object files from source files in another directory.
#
# Note that, due to the (IMHO) rather bizarre way in which Make
# deals with directories in the target names, this will
# not work if the target is in a subdirectory.
#
# @enddesc
# @@*/
%.o: $(SRCDIR)/%.c
$(CC) $(CFLAGS) -c -o $@ $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DCCODE
%.d: $(SRCDIR)/%.c
$(CPP) -M $(CFLAGS) $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DCCODE > $@
%.o: $(SRCDIR)/%.cc
$(CXX) $(CXXFLAGS) -c -o $@ $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DCCODE
%.d: $(SRCDIR)/%.cc
$(CPP) -M $(CFLAGS) $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DCCODE > $@
%.o: $(SRCDIR)/%.F77
$(F77) $(F77FLAGS) -c -o $@ $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE
%.d: $(SRCDIR)/%.F77
$(CPP) -M $(F77FLAGS) $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE > $@
%.o: $(SRCDIR)/%.F
$(F90) $(F90FLAGS) -c -o $@ $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE
%.d: $(SRCDIR)/%.F77
$(CPP) -M $(F77FLAGS) $< $(INC_DIRS:%=-I%) $(EXTRA_DEFINES:%=-D%) -DFCODE > $@
|