Changeset 11665


Ignore:
Timestamp:
03/07/12 14:19:54 (13 years ago)
Author:
Eric.Larour
Message:

Took out Makefile.am in ad. Now resides in the main src/c/Makefile.am,
shielded by the ADIC2 conditional.

Location:
issm/trunk-jpl/src
Files:
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/Makefile.am

    r11473 r11665  
    11EXTRA_DIST =  perl  pro
    22SUBDIRS = c mex m
    3 
    4 if ADIC2
    5 SUBDIRS += ad
    6 endif
    7 
    8 
  • issm/trunk-jpl/src/c/Makefile.am

    r11660 r11665  
    930930issm_CXXFLAGS= -fPIC -D_PARALLEL_  $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS)
    931931#}}}
     932#Automatic differentiation: append this fold to the end of the src/c/Makefile.am to get this Makefile.am {{{
     933if ADIC2
     934lib_LIBRARIES += libAD.a libpISSMRose.a
     935
     936#ADIC2 library, for automatic differentiation
     937#libAD_a_SOURCES = ./mini1.ad.c
     938libAD_a_SOURCES =
     939libAD_a_CFLAGS = -fPIC -D_PARALLEL_   -D_C_ $(COPTFLAGS)
     940
     941
     942
     943#test rose preprocessing
     944%.r2cpp.cpp : %.cpp
     945        testTranslator -rose:o $@ -rose:skipfinalCompileStep -DHAVE_CONFIG_H -D_PARALLEL_ -D_C_ -I. -I../.. $(INCLUDES) $<
     946libpISSMRose_a_SOURCES = $(libpISSM_a_SOURCES:.cpp=.r2cpp.cpp)
     947libpISSMRose_a_CXXFLAGS= -fPIC -D_PARALLEL_ -D_C_ $(CXXOPTFLAGS)
     948
     949
     950
     951#Automatic differentiation rules:
     952%.ad.c: %.c
     953        adic2 -mforward  $< --nary
     954
     955
     956
     957#Executable
     958bin_PROGRAMS +=  issmRose.exe
     959issmRose_exe_LDADD = ./libpISSMRose.a $(LDADD)
     960issmRose_exe_SOURCES = solutions/issm.cpp
     961issmRose_exe_CXXFLAGS= -fPIC -D_PARALLEL_  $(CXXOPTFLAGS) $(COPTFLAGS)
     962LDADD +=  $(ADIC2LIB)
     963
     964endif #}}}
Note: See TracChangeset for help on using the changeset viewer.