Line
Link Here
|
0 |
-- makefile.in |
0 |
++ makefile.in |
Lines 1-14
Link Here
|
1 |
BLD = build$(QUADSUFFIX) |
1 |
BLD = build$(QUADSUFFIX) |
2 |
|
2 |
|
3 |
LIBDIR = $(PREFIX)/lib$(LIBDIRSUFFIX) |
3 |
LIBDIR = $(DESTDIR)/$(PREFIX)/lib$(LIBDIRSUFFIX) |
4 |
INCLUDEDIR = $(PREFIX)/include |
4 |
INCLUDEDIR = $(DESTDIR)/$(PREFIX)/include |
5 |
BINDIR = $(PREFIX)/bin |
5 |
BINDIR = $(DESTDIR)/$(PREFIX)/bin |
6 |
|
6 |
|
7 |
LIB = libooptools$(QUADSUFFIX).a |
7 |
LIB = libooptools$(QUADSUFFIX).a |
8 |
FE = lt$(QUADSUFFIX)$(EXE) |
8 |
FE = lt$(QUADSUFFIX)$(EXE) |
9 |
MFE = LoopTools$(QUADSUFFIX)$(EXE) |
9 |
MFE = LoopTools$(QUADSUFFIX)$(EXE) |
10 |
INCLUDE = $(BLD)/looptools.h $(BLD)/clooptools.h |
10 |
INCLUDE = $(BLD)/looptools.h $(BLD)/clooptools.h |
11 |
|
11 |
|
|
|
12 |
LIBRARY=libooptools.so |
13 |
REALNAME=$(LIBRARY).$(VER) |
14 |
|
12 |
ARGS = $(PARALLEL) \ |
15 |
ARGS = $(PARALLEL) \ |
13 |
LIB="$(LIB)" \ |
16 |
LIB="$(LIB)" \ |
14 |
FE="$(FE)" \ |
17 |
FE="$(FE)" \ |
Lines 16-27
Link Here
|
16 |
EXE="$(EXE)" \ |
19 |
EXE="$(EXE)" \ |
17 |
DEF="$(DEF)" \ |
20 |
DEF="$(DEF)" \ |
18 |
NOUNDERSCORE="$(NOUNDERSCORE)" \ |
21 |
NOUNDERSCORE="$(NOUNDERSCORE)" \ |
19 |
XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I." \ |
22 |
XFC="$(FC$(QUADSUFFIX)) $(FFLAGS) $(FFLAGS-quad) -I. -fPIC" \ |
20 |
F90="$(F90)" \ |
23 |
F90="$(F90)" \ |
21 |
CC="$(CC)" \ |
24 |
CC="$(CC)" \ |
22 |
CFLAGS="$(CFLAGS) $(CFLAGS-quad)" \ |
25 |
CFLAGS="$(CFLAGS) $(CFLAGS-quad) -fPIC" \ |
23 |
CXX="$(CXX)" \ |
26 |
CXX="$(CXX)" \ |
24 |
CXXFLAGS="$(CXXFLAGS)" \ |
27 |
CXXFLAGS="$(CXXFLAGS) -fPIC" \ |
25 |
ML="$(ML)" \ |
28 |
ML="$(ML)" \ |
26 |
MCC="$(MCC)" \ |
29 |
MCC="$(MCC)" \ |
27 |
MCFLAGS="$(MCFLAGS)" \ |
30 |
MCFLAGS="$(MCFLAGS)" \ |
Lines 31-50
Link Here
|
31 |
DLLTOOL="$(DLLTOOL)" \ |
34 |
DLLTOOL="$(DLLTOOL)" \ |
32 |
LDFLAGS="$(LDFLAGS)" \ |
35 |
LDFLAGS="$(LDFLAGS)" \ |
33 |
LIBPATH="$(LIBPATH)" \ |
36 |
LIBPATH="$(LIBPATH)" \ |
34 |
OBJS-quad="$(OBJS-quad)" |
37 |
OBJS-quad="$(OBJS-quad)" \ |
|
|
38 |
REALNAME="$(REALNAME)" |
35 |
|
39 |
|
36 |
|
40 |
|
37 |
default all lib frontend mma: force |
41 |
default all lib solib frontend mma: force |
38 |
cd $(BLD) && $(MAKE) $(ARGS) $@ |
42 |
cd $(BLD) && $(MAKE) $(ARGS) $@ |
39 |
|
43 |
|
40 |
install: lib frontend |
44 |
install: lib solib frontend |
41 |
-mkdir $(PREFIX) |
45 |
-mkdir $(DESTDIR)$(PREFIX) |
42 |
-mkdir $(LIBDIR) $(BINDIR) $(INCLUDEDIR) |
46 |
-mkdir $(LIBDIR) $(BINDIR) $(INCLUDEDIR) |
43 |
cp -p $(BLD)/$(LIB) $(LIBDIR) |
47 |
cp -p $(BLD)/$(LIB) $(LIBDIR) |
44 |
cp -p $(INCLUDE$(QUADSUFFIX)) $(INCLUDEDIR) |
48 |
cp -p $(INCLUDE$(QUADSUFFIX)) $(INCLUDEDIR) |
45 |
strip $(BLD)/$(FE) |
|
|
46 |
cp -p $(BLD)/fcc $(BLD)/$(FE) $(BINDIR) |
49 |
cp -p $(BLD)/fcc $(BLD)/$(FE) $(BINDIR) |
47 |
test ! -f $(BLD)/$(MFE) || { strip $(BLD)/$(MFE) ; cp -p $(BLD)/$(MFE) $(BINDIR); } |
50 |
test ! -f $(BLD)/$(MFE) || { cp -p $(BLD)/$(MFE) $(BINDIR); } |
|
|
51 |
cp -p $(BLD)/$(REALNAME) $(LIBDIR) |
52 |
cd $(LIBDIR) && ln -s $(REALNAME) $(LIBRARY) |
48 |
|
53 |
|
49 |
force: $(BLD)/timestamp |
54 |
force: $(BLD)/timestamp |
50 |
|
55 |
|
51 |
-- src/makefile |
56 |
++ src/makefile |
Lines 1-6
Link Here
|
1 |
default: frontend mma$(ML) |
1 |
default: frontend mma$(ML) solib |
2 |
|
2 |
|
3 |
all: frontend mma1 |
3 |
all: frontend mma1 solib |
4 |
|
4 |
|
5 |
frontend: lib $(FE) |
5 |
frontend: lib $(FE) |
6 |
|
6 |
|
Lines 8-13
Link Here
|
8 |
|
8 |
|
9 |
mma0 lib: $(LIB) clooptools.h fcc |
9 |
mma0 lib: $(LIB) clooptools.h fcc |
10 |
|
10 |
|
|
|
11 |
solib: $(REALNAME) fcc |
11 |
|
12 |
|
12 |
.SUFFIXES: |
13 |
.SUFFIXES: |
13 |
|
14 |
|
Lines 247-252
Link Here
|
247 |
$(AR) cru $(LIB) $? |
248 |
$(AR) cru $(LIB) $? |
248 |
-$(RANLIB) $(LIB) |
249 |
-$(RANLIB) $(LIB) |
249 |
|
250 |
|
|
|
251 |
$(REALNAME): $(OBJS) |
252 |
$(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $? |
250 |
|
253 |
|
251 |
$(FE): lt.F $(LTINC) $(LIB) |
254 |
$(FE): lt.F $(LTINC) $(LIB) |
252 |
$(XFC) -o $(FE) lt.F $(LIB) |
255 |
$(XFC) -o $(FE) lt.F $(LIB) |