Changeset 543 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/17/01 15:48:50 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r466 r543  
    11                                                               -*-*- END -*-*-
     2
     3 2000/01/17: Thomas Bretz
     4 
     5 * Makefile:
     6    - Exchanged explicit rules to make library by implicit ones
     7    - The shared object works now. I exchanged the libraries with the object files.
     8      But I don't know why the libraries don't work.
     9     
     10 * Makefile.conf.linux-gnu:
     11    - replaced CC with gcc (instead of g++)
     12   
     13 * mdatacheck/DataCheckLinkDef.h:
     14    - removed unused statements
     15   
     16 * mraw/RawLinkDef.h:
     17    - added globals
     18   
     19 * mraw/MerppLinkDef.h:
     20    - removed unused file
     21 
     22 
    223 2000/01/12: Thomas Bretz
    324 
    425 * MLinkDef.h, MIncl.h, marslogo.xpm, magiclogo.xpm:
    526    - added
     27   
    628 * LinkDef.h:
    729    - removed
     
    2749 2001/01/11: Harald Kornmayer
    2850
    29  * ./:
     51 * ./
    3052   readraw.cc, Makefile, Makefile.rules, LinkDef.h, MParList.cc, MReadTree.cc,
    3153   MReadTree.h, mbase/Makefile, mraw/Makefile     
    3254    - small changes in this files. Not really critical.
    3355
    34    mars.cc
     56 * mars.cc
    3557    - added the main file for the gui
    3658
    37    mgui/
     59 * mgui/
    3860   GuiIncl.h, MGMarsMain.cc, GuiLinkDef.h, MGMarsMain.h, MGDataCheckMain.cc,
    3961   Makefile, MGDataCheckMain.h
    4062    - added the subdir mgui and this files
    4163
    42    mdatacheck/
     64 * mdatacheck/
    4365   DataCheckIncl.h, DataCheckLinkDef.h, MHistosAdc.cc, MHistosAdc.h,
    4466   MDumpEvtHeader.cc, MDumpEvtHeader.h, MShowSpect.cc, MShowSpect.h,
  • trunk/MagicSoft/Mars/Makefile

    r466 r543  
    1818include Makefile.conf.general
    1919
    20 # @endcode
    21 
    22 # @code
     20#
    2321
    2422PROGRAMS = merpp readraw mars
     
    3028#
    3129#    WARNING: the result (whether the linkage works or not) depends on the
    32 #             order of the libraries
     30#             order of the libraries. It seems, that the most base library
     31#             must be the last one
    3332#
    34 #
    35 INCLUDES = -I. -Imgui -Imbase -Imraw -Imdatacheck
    3633
    3734#
    3835#  ----->>>   mars libraries
    3936#
     37SUBDIRS = mgui mdatacheck mbase mraw
    4038
    41 MARS_LIB = -Llib -lmgui -lmdatacheck -lmraw -lmbase
    42 MARS_LIBB = libmbase.a libmgui.a libmraw.a libmdatacheck.a
     39#
     40# Library rules
     41#
     42MARS_LIB  = -Llib $(SUBDIRS:%=-l%)
     43MARS_LIBB = $(SUBDIRS:%=lib%.a)
     44INCLUDES  = -I. $(SUBDIRS:%=-I%)
    4345
    4446
     
    4648
    4749.SUFFIXES: .c .cc .h .o
    48 
    4950
    5051SRCFILES =
     
    6364        $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@
    6465
    65 $(SOLIB): $(MARS_LIBB) $(OBJS) MCint.o
     66$(SOLIB): $(OBJS) $(MARS_LIBB) MCint.o
    6667        @echo " Linking $(SOLIB) ..."
    67         $(CXX) $(CXXFLAGS) -shared  $(OBJS2) $(OBJS) $(MARS_LIB) MCint.o $(ROOTLIBS) $(ROOTGLIBS) -o $@
     68        $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:%=%/*.o) $(ROOTGLIBS) -o $@
    6869        mv mars.so lib
    6970
    70 libmbase.a:
    71         @echo " Creating libmbase.a:"
    72         (cd mbase; make; cd ..; mv mbase/libmbase.a lib)
     71$(MARS_LIBB):
     72        @echo " Creating $@:"
     73        (cd $(@:lib%.a=%); make; cd ..; mv $(@:lib%.a=%)/$@ lib)
    7374
    74 libmraw.a:
    75         @echo " Creating libmraw.a:"
    76         (cd mraw; make; cd ..; mv mraw/libmraw.a lib)
    77 
    78 libmgui.a:
    79         @echo " Creating libmgui.a:"
    80         (cd mgui; make; cd ..; mv mgui/libmgui.a lib)
    81 
    82 libmdatacheck.a:
    83         @echo " Creating libmdatacheck.a:"
    84         (cd mdatacheck; make; cd ..; mv mdatacheck/libmdatacheck.a lib)
    85        
    8675dox:
    8776        @echo " Creating html documentation:"
  • trunk/MagicSoft/Mars/Makefile.conf.linux-gnu

    r454 r543  
    1010# @code
    1111
    12 #
    13 #  ----->>>  includes
    14 #
    15 
    16 INCLUDE_ROOT    = ${ROOTSYS}/include
    17 INCLUDE_CPLUS   = /usr/include/g++
    18 INCLUDE_MBASE   = ./mbase
    19 
    20 
    2112# compilers
    2213
    23 CC            = g++
     14CC            = gcc
    2415CXX           = g++
    2516F77           = f77
     
    3425# uncomment this for quiet compilation
    3526
    36 .SILENT:
     27#.SILENT:
    3728
    3829# @endcode
Note: See TracChangeset for help on using the changeset viewer.