Changeset 543 for trunk/MagicSoft/Mars/Makefile
- Timestamp:
- 01/17/01 15:48:50 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Makefile
r466 r543 18 18 include Makefile.conf.general 19 19 20 # @endcode 21 22 # @code 20 # 23 21 24 22 PROGRAMS = merpp readraw mars … … 30 28 # 31 29 # 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 33 32 # 34 #35 INCLUDES = -I. -Imgui -Imbase -Imraw -Imdatacheck36 33 37 34 # 38 35 # ----->>> mars libraries 39 36 # 37 SUBDIRS = mgui mdatacheck mbase mraw 40 38 41 MARS_LIB = -Llib -lmgui -lmdatacheck -lmraw -lmbase 42 MARS_LIBB = libmbase.a libmgui.a libmraw.a libmdatacheck.a 39 # 40 # Library rules 41 # 42 MARS_LIB = -Llib $(SUBDIRS:%=-l%) 43 MARS_LIBB = $(SUBDIRS:%=lib%.a) 44 INCLUDES = -I. $(SUBDIRS:%=-I%) 43 45 44 46 … … 46 48 47 49 .SUFFIXES: .c .cc .h .o 48 49 50 50 51 SRCFILES = … … 63 64 $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@ 64 65 65 $(SOLIB): $( MARS_LIBB) $(OBJS) MCint.o66 $(SOLIB): $(OBJS) $(MARS_LIBB) MCint.o 66 67 @echo " Linking $(SOLIB) ..." 67 $(CXX) $(CXXFLAGS) -shared $(OBJS2) $(OBJS) $(MARS_LIB) MCint.o $(ROOTLIBS) $(ROOTGLIBS) -o $@68 $(CXX) -shared $(CXXFLAGS) $(SUBDIRS:%=%/*.o) $(ROOTGLIBS) -o $@ 68 69 mv mars.so lib 69 70 70 libmbase.a:71 @echo " Creating libmbase.a:"72 (cd mbase; make; cd ..; mv mbase/libmbase.alib)71 $(MARS_LIBB): 72 @echo " Creating $@:" 73 (cd $(@:lib%.a=%); make; cd ..; mv $(@:lib%.a=%)/$@ lib) 73 74 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 86 75 dox: 87 76 @echo " Creating html documentation:"
Note:
See TracChangeset
for help on using the changeset viewer.