Changeset 546 for trunk/MagicSoft/Mars/Makefile
- Timestamp:
- 01/17/01 17:28:21 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Makefile
r543 r546 37 37 SUBDIRS = mgui mdatacheck mbase mraw 38 38 39 # 40 # Library rules 41 # 42 MARS_LIB = -Llib $(SUBDIRS:%=-l%) 43 MARS_LIBB = $(SUBDIRS:%=lib%.a) 44 INCLUDES = -I. $(SUBDIRS:%=-I%) 45 39 LIBRARIES = $(SUBDIRS:=.a) 46 40 47 41 #------------------------------------------------------------------------------ … … 60 54 61 55 # Use $(CXX) -v ... for a more verbose output 62 $(PROGRAMS): $( MARS_LIBB) $(PROGRAMS:=.o) $(OBJS) MCint.o56 $(PROGRAMS): $(LIBRARIES) $(OBJS) MCint.o $(PROGRAMS:=.o) 63 57 @echo " Linking $@ ..." 64 58 $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@ 65 59 66 $(SOLIB): $( OBJS) $(MARS_LIBB) MCint.o60 $(SOLIB): $(LIBRARIES) $(OBJS) MCint.o 67 61 @echo " Linking $(SOLIB) ..." 68 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS: %=%/*.o) $(ROOTGLIBS) -o $@62 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@ 69 63 mv mars.so lib 70 64 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$@) 74 68 75 69 dox: 76 70 @echo " Creating html documentation:" 77 71 root -b -q dohtml.C 78 79 72 80 73 include Makefile.rules
Note:
See TracChangeset
for help on using the changeset viewer.