Changeset 451da83


Ignore:
Timestamp:
Jun 8, 2010 10:46:32 AM (7 years ago)
Author:
www-data <www-data@…>
Branches:
master, experimental, feature_CIS, feature_PetascopeSecore, feature_cmake, feature_rasdapy, feature_wcps2, fixes, release_8.5, release_9.0, release_9.1, release_9.2, release_9.3, release_9.4, release_9.5
Children:
06b19f9
Parents:
e1dbd9b
git-author:
Andrei Aiordachioaie <a.aiordachioaie@…> (08/01/09 15:31:50)
git-committer:
www-data <www-data@…> (06/08/10 10:46:32)
Message:

Fixed C++ Examples Makefile

Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    ra9e93f9 r451da83  
    3838ACLOCAL_AMFLAGS = -I m4
    3939
    40 nobase_include_HEADERS=raslib/*.h raslib/*.hh raslib/*.icc raslib/*.cc \ 
     40nobase_include_HEADERS=raslib/*.h raslib/*.hh raslib/*.icc raslib/*.cc \
    4141                rasodmg/*.hh rasodmg/*.cc rasodmg/*.icc conversion/*.h conversion/*.hh \
    4242                compression/*.hh clientcomm/*.h clientcomm/*.hh
  • manuals_and_examples/Makefile.am

    r8f27e65 r451da83  
    2626                         examples/rasdl/basictypes.dl
    2727
     28dest_Makefile=$(DESTDIR)$(pkgdatadir)/examples/c++/Makefile
    2829
     30# Setup the RMANHOME variable properly for the C++ examples. Automake messes up
     31# the order of the declarations, so we have to use something else for variable name.
     32install-data-hook:
     33        sed 's|~~~rmanhome~~~|$(prefix)|' <$(dest_Makefile) >$(dest_Makefile).new
     34        mv $(dest_Makefile).new $(dest_Makefile)
  • manuals_and_examples/examples/c++/Makefile

    rcd62f6e r451da83  
    2020#
    2121# For more information please see <http://www.rasdaman.org>
    22 # or contact Peter Baumann via <baumann@rasdaman.com>. # Top Level makefile. This points to the various modules that have to be build
     22# or contact Peter Baumann via <baumann@rasdaman.com>.
     23#
     24#
     25# Top Level makefile. This points to the various modules that have to be build
    2326# and/or deployed
    2427#
     
    3033##################################################################
    3134
    32 
    3335######################### Definitions ############################
    34 
    35 # choose C++ compiler
    36 ifeq ($(OSTYPE),linux)
    37 OSTYPE=linux-gnu
    38 endif
    39 ifeq ($(OSTYPE),Linux)
    40 OSTYPE=linux-gnu
    41 endif
    42 
    43 ifneq ($(OSTYPE),linux-gnu)
    44 endif
    45 ifneq ($(OSTYPE),linux-gnu)
    46 CXX = CC
    47 else
    48 CXX = g++
    49 endif
    50 
     36# RMANHOME will be updated with a proper value after "make install"
     37RMANHOME=~~~rmanhome~~~
    5138# RasDaMan central includes
    52 CXXFLAGS = -I$(RMANHOME)/include
    53 
    54 ifeq ($(OSTYPE),solaris)
    55 
    56   CXXFLAGS += -DSOLARIS
    57 
    58   # enable exception handling
    59   # exceptions are supported by default
    60 
    61   # use ANSI C
    62   # is used by default
    63 
    64 else
    65 ifeq ($(OSTYPE),linux-gnu)
    66 
    67   CXXFLAGS += -DLINUX -DEARLY_TEMPLATE
    68 
    69   # enable exception handling
    70   # exceptions are supported by default
    71 
    72   # use ANSI C
    73   # is used by default
    74 
    75 else
    76 
    77   CXXFLAGS += -DHPUX
    78 
    79   # enable exception handling
    80   CXXFLAGS += +eh
    81 
    82   # use ANSI C
    83   CXXFLAGS += +a1
    84 
    85   # necessary for templates because of bug in nm
    86   CXXFLAGS += -ptb
    87 
    88 endif
    89 endif
    90 
    91 ifeq ($(OSTYPE),solaris)
    92   LDFLAGS += -lmalloc -lsocket -lnsl
    93 endif
    94 
     39CXXFLAGS += -I$(RMANHOME)/include
     40CXXFLAGS += -DLINUX -DEARLY_TEMPLATE
    9541# add communication flags
    9642CXXFLAGS += -DONCRPC
    97 
    98 # pre-installed exchange format libraries needed
    99 FMTLIBS  = /usr/lib/libnetpbm.a /usr/lib/libjpeg.a /usr/local/lib/libpng.a /usr/local/lib/libtiff.a
    10043
    10144# libraries needed for linkage (in particular: rasdaman + exchange formats)
    10245LIBS     += -L/usr/lib -L$(RMANHOME)/lib \
    10346            -lclientcomm -lrasodmg -lcompression -lconversion -lclientcomm -lrasodmg -lraslib  \
    104             -lppm -lpgm -lnetpbm -ljpeg -lpng -ltiff -lmfhdf -ldf -lcrypto  -lnetwork \
     47            -lnetwork -lnetpbm -ljpeg -lpng -ltiff -lmfhdf -ldf -lcrypto \
    10548            -lm -lz
    106 
    10749
    10850########################### Targets ##############################
    10951
    110 # this global target first checks for required libraries
    111 # disable target 'check' if you don't want this to be run
    112 all: check avg-cell avg-cell-red lookup query insertppm
    113 
    114 # check whether exchange format libraries have been installed
    115 .PHONY: check
    116 check:
    117         @for lib in $(FMTLIBS);                 \
    118         do                                      \
    119                 if [[ ! -f $$lib ]];            \
    120                 then                            \
    121                         echo "error: cannot find required library $$lib - package not installed?";      \
    122                 fi                              \
    123         done
     52all: avg-cell avg-cell-red lookup query insertppm
    12453
    12554avg-cell: avg-cell.o
     
    14069.PHONY : clean
    14170clean:
    142         -rm *.o *.log *.dbg *.bm
    143         -rm query insertppm lookup avg-cell avg-cell-red
    144 ifeq ($(OSTYPE),solaris)
    145         cd $(RMANHOME)/include/rasodmg/ptrepository; ptclean
    146 else
    147 ifneq ($(OSTYPE),linux-gnu)
    148         -rm -R $(RMANHOME)/include/rasodmg/ptrepository/*
    149 endif
    150 endif
     71        -rm -f *.o *.log *.dbg *.bm
     72        -rm -f query insertppm lookup avg-cell avg-cell-red
    15173
    15274######################## Dependencies ############################
  • rasdl/Makefile.am

    rfd66ca8 r451da83  
    3939rasdl_SOURCES=lex.ll odl.yy parse.cc parse.hh symbtbl.cc symbtbl.hh \
    4040              alloca.cc rasdl.cc rasdl_error.cc rasdl_error.hh \
    41               template_inst.hh yparse.hh \ 
     41              template_inst.hh yparse.hh \
    4242              ../mymalloc/mymalloc.h ../mymalloc/mymalloc_svc.cc
    4343rasdl_LDADD = ../reladminif/libreladminif.a ../relmddif/librelmddif.a \
Note: See TracChangeset for help on using the changeset viewer.