Ignore:
Timestamp:
01/17/01 15:48:50 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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:"
Note: See TracChangeset for help on using the changeset viewer.