-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (29 loc) · 930 Bytes
/
makefile
File metadata and controls
45 lines (29 loc) · 930 Bytes
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
VPATH = .:TMP
.SUFFIXES:
.SUFFIXES: .o .F90 .F
include make.inc
# AIX (xlf) peculiarities. NB: Only necessary for Fortran files
ifneq (,$(findstring -DAIX,$(CPPFLAGS)))
subs=-WF,-
CPPFLAGS:=$(subst -,$(subs),$(CPPFLAGS))
endif
# Rules for running cpp and updating files in TMP directory
.F90.o:
cd ./TMP ; $(CF90) -c $(CPPFLAGS) $(FFLAGS) $(F90FLG) $(INCLUDE) -o $*.o ../$<
.F.o:
cd ./TMP ; $(CF77) -c $(CPPFLAGS) $(FFLAGS) $(F77FLG) $(INCLUDE) -o $*.o ../$<
TARGET = testpseudo2D
all : $(TARGET)
#############################################################################
OBJECTS= \
memory_stack.o \
m_set_random_seed.o \
sangoma_base.o \
mod_pseudo.o \
p_testpseudo2D.o
$(TARGET): $(OBJECTS)
cd ./TMP ; $(LD) $(LINKFLAGS) -o ../$(TARGET) $(OBJECTS) $(LIBS)
#############################################################################
clean:
rm $(TARGET)
cd ./TMP ; rm *.o *.mod