Last change
on this file since 6730 was
5009,
checked in by aclsce, 4 years ago
|
- Modified to :
- Keep only rebuild as IOIPSL tools.
- Create rebuild directory.
- Compile automatically rebuild with ioipsl library.
- Works with both old (AA_make) and new (fcm) compilation.
|
File size:
1010 bytes
|
Line | |
---|
1 | #- |
---|
2 | #- $Id: AA_make 53 2007-06-06 15:27:26Z bellier $ |
---|
3 | #- |
---|
4 | #-Q- sxdkrz F_O = $(F_D) $(F_P) -C vsafe -size_t64 -I $(MODDIR) |
---|
5 | #-Q- eshpux F_O = $(F_D) $(F_P) -C vsafe -I $(MODDIR) |
---|
6 | #--------------------------------------------------------------------- |
---|
7 | #- Create "rebuild" related to IOIPSL |
---|
8 | #--------------------------------------------------------------------- |
---|
9 | |
---|
10 | SXMODEL_LIB = $(MODEL_LIB) |
---|
11 | ifeq ($(L_X),1) |
---|
12 | SXMODEL_LIB = $(LIBDIR)/libsxioipsl.a |
---|
13 | endif |
---|
14 | |
---|
15 | rbld: libioipsl $(BINDIR)/rebuild $(BINDIR)/flio_rbld |
---|
16 | @echo rebuild is OK |
---|
17 | |
---|
18 | $(BINDIR)/rebuild: ./rebuild |
---|
19 | cp -p ./rebuild $(BINDIR)/rebuild |
---|
20 | chmod a+rx $(BINDIR)/rebuild |
---|
21 | |
---|
22 | $(BINDIR)/flio_rbld: $(SXMODEL_LIB) flio_rbld.f90 |
---|
23 | $(F_C) $(F_O) -I$(NCDF_INC) flio_rbld.f90 |
---|
24 | $(F_L) flio_rbld.o -o $(BINDIR)/flio_rbld \ |
---|
25 | $(L_O) $(SXMODEL_LIB) $(NCDF_LIB) |
---|
26 | chmod a+rx $(BINDIR)/flio_rbld |
---|
27 | $(RM) flio_rbld.o |
---|
28 | |
---|
29 | libioipsl: |
---|
30 | (cd ../src; $(M_K) -f Makefile) |
---|
31 | |
---|
32 | clean: |
---|
33 | $(RM) *.*~ Makefile~ core *.o *.mod i.*.L *.L i.*.f90 *.M |
---|
34 | $(RM) $(BINDIR)/rebuild $(BINDIR)/flio_rbld |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.