-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.in
70 lines (60 loc) · 1.54 KB
/
makefile.in
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
59
60
61
62
63
64
65
66
67
68
69
BLD = build$(QUADSUFFIX)
LIBDIR = $(PREFIX)/lib$(LIBDIRSUFFIX)
INCLUDEDIR = $(PREFIX)/include
BINDIR = $(PREFIX)/bin
LIB = libooptools$(QUADSUFFIX).a
FE = lt$(QUADSUFFIX)$(EXE)
MFE = LoopTools$(QUADSUFFIX)$(EXE)
FCC = fcc$(QUADSUFFIX)
FXX = f++$(QUADSUFFIX)
INCLUDE = $(BLD)/looptools.h $(BLD)/clooptools.h
ARGS = $(PARALLEL) \
LIB="$(LIB)" \
FE="$(FE)" \
MFE="$(MFE)" \
FCC="$(FCC)" \
FXX="$(FXX)" \
EXE="$(EXE)" \
DEF="$(DEF)" \
NOUNDERSCORE="$(NOUNDERSCORE)" \
XFC="$(FC) $(FFLAGS) -I." \
F90="$(F90)" \
CDEFS="$(CDEFS)" \
MCDEFS="$(MCDEFS)" \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
CXX="$(CXX)" \
CXXFLAGS="$(CXXFLAGS)" \
ML="$(ML)" \
MCC="$(MCC)" \
MCFLAGS="$(MCFLAGS)" \
MCLIBS="$(MCLIBS)" \
AR="$(AR)" \
RANLIB="$(RANLIB)" \
NM="$(NM)" \
DLLTOOL="$(DLLTOOL)" \
LDFLAGS="$(LDFLAGS)" \
LIBPATH="$(LIBPATH)"
default all lib frontend mma: force
cd $(BLD) && $(MAKE) $(ARGS) $@
install: lib frontend
-mkdir $(PREFIX)
-mkdir $(LIBDIR) $(BINDIR) $(INCLUDEDIR)
cp -p $(BLD)/$(LIB) $(LIBDIR)
cp -p $(INCLUDE) $(INCLUDEDIR)
strip $(BLD)/$(FE)
cp -p $(BLD)/$(FCC) $(BLD)/$(FE) $(BINDIR)
rm -f $(BINDIR)/$(FXX)
ln -s $(FCC) $(BINDIR)/$(FXX)
test ! -f $(BLD)/$(MFE) || { \
test -z "$(EXE)" || ldd $(BLD)/$(MFE) | awk '/\/usr\/bin\/cyg/ { system("cp -p " $$3 " $(BINDIR)/"); }' ; \
strip $(BLD)/$(MFE) ; \
cp -p $(BLD)/$(MFE) $(BINDIR); \
}
force: $(BLD)/timestamp
$(BLD)/timestamp:
-mkdir $(BLD)
find "`cd $(SRC) ; pwd`" -follow -exec ln -sf {} $(BLD) \;
touch $(BLD)/timestamp
clean:
rm -fr $(BLD)