Changeset 39


Ignore:
Timestamp:
Aug 15, 2005 9:02:41 AM (18 years ago)
Author:
dkearney
Message:

fixed rappture source's makefile to correctly compile core data structures RpVariable, RpNumber, RpString, RpChoice, RpOption, RpBoolean, RpAbout

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile

    r33 r39  
    1212                                        librappture                             \
    1313                                        libRapptureIO                   \
     14                                        libRpUnits                              \
     15                                        libRpVariable                   \
     16                                        libRpNumber                             \
     17                                        libRpString                             \
     18                                        libRpBoolean                    \
     19                                        libRpChoice                             \
     20                                        libRpOption                             
     21                                       
    1422
    1523# define our compiling environment
     
    4351#
    4452
    45 CFLAGS                  = -DCOMPNAME_ADD1UNDERSCORE
     53CFLAGS                  = -DCOMPNAME_ADD2UNDERSCORE
    4654
    47 #F77                    = g77
     55F77                     = g77
    4856#F77                            = f77
    4957#F77                            = ifort
    50 F77                             = /opt/mpich-1.2.6/p4-intel/bin/mpif90
     58#F77                            = /opt/mpich-1.2.6/p4-intel/bin/mpif90
    5159
    5260LN              = ln
     
    6775#LIB_RPUNITS    = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lRpUnits
    6876#LIB_RPDICT             = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lRpDict
     77
     78LIB_INC_PREFIX  = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR)
     79
     80#LIB_RPUNITS_C   = $(LIB_INC_PREFIX) -lRpUnits_CInterface
     81#LIB_RAPPTUREIO  = $(LIB_INC_PREFIX) -lrappture
     82
     83LIB_RP_UNITS    = $(LIB_INC_PREFIX) -lRpUnits
     84LIB_RP_VARIABLE = $(LIB_INC_PREFIX) -lRpVariable
     85LIB_RP_NUMBER   = $(LIB_INC_PREFIX) -lRpNumber
     86LIB_RP_STRING   = $(LIB_INC_PREFIX) -lRpString
     87LIB_RP_BOOLEAN  = $(LIB_INC_PREFIX) -lRpBoolean
     88LIB_RP_OPTION   = $(LIB_INC_PREFIX) -lRpOption
     89LIB_RP_CHOICE   = $(LIB_INC_PREFIX) -lRpChoice
     90LIB_RP_PRESET   = $(LIB_INC_PREFIX) -lRpPreset
     91
    6992
    7093LIB_RPUNITS_C   = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lRpUnits_CInterface
     
    108131include $(FORT_SRC)/make.inc
    109132
    110    
    111133#### CLEAN UP ############################################################
    112134clean:
  • trunk/src/core/make.inc

    r37 r39  
    1 $(WORK_DIR)/RpUnits.o: $(SRC_DIR)/RpUnits.cc
     1$(WORK_DIR)/Rp%.o: $(CORE_SRC)/Rp%.cc
    22        $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    3 
    4 $(WORK_DIR)/RpUnitsStd.o: $(SRC_DIR)/RpUnitsStd.cc
    5         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    6 
    7 $(WORK_DIR)/RpDict.o: $(SRC_DIR)/RpDict.cc
    8         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    9 
    10 $(WORK_DIR)/RpVariable.o: $(SRC_DIR)/RpVariable.cc
    11         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    12 
    13 $(WORK_DIR)/RpNumber.o: $(SRC_DIR)/RpNumber.cc
    14         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    15 
    16 $(WORK_DIR)/RpString.o: $(SRC_DIR)/RpString.cc
    17         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    18 
    19 $(WORK_DIR)/RpChoice.o: $(SRC_DIR)/RpChoice.cc
    20         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    21 
    22 $(WORK_DIR)/RpBoolean.o: $(SRC_DIR)/RpBoolean.cc
    23         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    24 
    25 $(WORK_DIR)/RpOption.o: $(SRC_DIR)/RpOption.cc
    26         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
    27 
    28 $(WORK_DIR)/RpAbout.o: $(SRC_DIR)/RpAbout.cc
    29         $(CPP) -fPIC $(DEBUG) $(INCL_CORE) -o $@ -c $?
  • trunk/src/make.inc

    r33 r39  
    2424               
    2525        /sbin/ldconfig -n $(LIB_DIR)
     26
     27
     28#### libRpUnits ###########################################################
     29libRpUnits: $(WORK_DIR)/RpUnits.o $(WORK_DIR)/RpUnitsStd.o
     30        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     31                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $^ -lc
     32                           
     33        /sbin/ldconfig -n $(LIB_DIR)
     34
     35#### libRpVariable ########################################################
     36libRpVariable: $(WORK_DIR)/RpVariable.o $(WORK_DIR)/RpAbout.o
     37        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     38                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $^ -lc
     39                           
     40        /sbin/ldconfig -n $(LIB_DIR)
     41
     42#### libRpNumber ##########################################################
     43libRpNumber: $(WORK_DIR)/RpNumber.o libRpUnits libRpVariable
     44        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     45                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $< -lc $(LIB_RP_UNITS) $(LIB_RP_VARIABLE)
     46                           
     47        /sbin/ldconfig -n $(LIB_DIR)
     48
     49#### libRpString ##########################################################
     50libRpString: $(WORK_DIR)/RpString.o libRpVariable
     51        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     52                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $< -lc $(LIB_RP_VARIABLE)
     53                           
     54        /sbin/ldconfig -n $(LIB_DIR)
     55
     56#### libRpBoolean ##########################################################
     57libRpBoolean: $(WORK_DIR)/RpBoolean.o libRpVariable
     58        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     59                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $< -lc $(LIB_RP_VARIABLE)
     60                           
     61        /sbin/ldconfig -n $(LIB_DIR)
     62
     63#### libRpChoice ##########################################################
     64libRpChoice: $(WORK_DIR)/RpChoice.o libRpVariable libRpOption
     65        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     66                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $< -lc $(LIB_RP_VARIABLE) $(LIB_RP_OPTION)
     67                           
     68        /sbin/ldconfig -n $(LIB_DIR)
     69
     70#### libRpOption ##########################################################
     71libRpOption: $(WORK_DIR)/RpOption.o $(WORK_DIR)/RpAbout.o
     72        $(CPP) $(DEGUG) -shared -Wl,-rpath,../lib \
     73                -Wl,-soname,$@.so -o $(LIB_DIR)/$@.so.0.0 $< -lc $(LIB_RP_ABOUT)
     74                           
     75        /sbin/ldconfig -n $(LIB_DIR)
     76
Note: See TracChangeset for help on using the changeset viewer.