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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Makefile

    r543 r546  
    3737SUBDIRS = mgui mdatacheck mbase mraw
    3838
    39 #
    40 # Library rules
    41 #
    42 MARS_LIB  = -Llib $(SUBDIRS:%=-l%)
    43 MARS_LIBB = $(SUBDIRS:%=lib%.a)
    44 INCLUDES  = -I. $(SUBDIRS:%=-I%)
    45 
     39LIBRARIES = $(SUBDIRS:=.a)
    4640
    4741#------------------------------------------------------------------------------
     
    6054
    6155# Use $(CXX) -v ... for a more verbose output
    62 $(PROGRAMS): $(MARS_LIBB) $(PROGRAMS:=.o) $(OBJS) MCint.o
     56$(PROGRAMS): $(LIBRARIES) $(OBJS) MCint.o $(PROGRAMS:=.o)
    6357        @echo " Linking $@ ..."
    6458        $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@
    6559
    66 $(SOLIB): $(OBJS) $(MARS_LIBB) MCint.o
     60$(SOLIB): $(LIBRARIES) $(OBJS) MCint.o
    6761        @echo " Linking $(SOLIB) ..."
    68         $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:%=%/*.o) $(ROOTGLIBS) -o $@
     62        $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@
    6963        mv mars.so lib
    7064
    71 $(MARS_LIBB):
    72         @echo " Creating $@:"
    73         (cd $(@:lib%.a=%); make; cd ..; mv $(@:lib%.a=%)/$@ lib)
     65$(LIBRARIES):
     66        @echo " Creating lib$@:"
     67        (cd $*; make; cd ..; mv $*/$@ lib/lib$@)
    7468
    7569dox:
    7670        @echo " Creating html documentation:"
    7771        root -b -q dohtml.C
    78 
    7972
    8073include Makefile.rules
Note: See TracChangeset for help on using the changeset viewer.