Changeset 463 for trunk/MagicSoft/Mars/Makefile
- Timestamp:
- 01/11/01 12:54:21 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Makefile
r454 r463 22 22 # @code 23 23 24 PROGRAM1 = merpp 25 PROGRAM2 = readraw 24 PROGRAMS = merpp readraw mars 26 25 SOLIB = mars.so 27 26 … … 29 28 # connect the include files defined in the config.mk file 30 29 # 31 INCLUDES = -I. -Imbase -Imraw 30 # WARNING: the result (whether the linkage works or not) depends on the 31 # order of the libraries 32 # 33 # 34 INCLUDES = -I. -Imgui -Imbase -Imraw -Imdatacheck 32 35 33 36 # … … 35 38 # 36 39 37 MARS_LIB = -Llib -lm base -lmraw38 MARS_LIBB = libmbase.a libm raw.a40 MARS_LIB = -Llib -lmgui -lmdatacheck -lmraw -lmbase 41 MARS_LIBB = libmbase.a libmgui.a libmraw.a libmdatacheck.a 39 42 40 43 41 44 #------------------------------------------------------------------------------ 42 45 43 #.SILENT: 44 45 .SUFFIXES: .c .cc .cxx .h .hxx .o 46 .SUFFIXES: .c .cc .h .o 46 47 47 48 … … 51 52 HEADERS = $(SRCFILES:.cc=.h) 52 53 OBJS = $(SRCFILES:.cc=.o) 53 OBJS1 = merpp.o54 OBJS2 = readraw.o55 54 56 55 ############################################################ 57 56 58 all: rmlib $(PROGRAM 1) $(PROGRAM2) $(SOLIB)57 all: rmlib $(PROGRAMS) $(SOLIB) 59 58 60 $(PROGRAM1): $(MARS_LIBB) $(OBJS1) $(OBJS) MCint.o 61 @echo " Linking $(PROGRAM1) ..." 62 $(CXX) $(CXXFLAGS) $(OBJS1) $(OBJS) $(MARS_LIB) MCint.o $(ROOTLIBS) $(ROOTGLIBS) -o $@ 63 64 $(PROGRAM2): $(MARS_LIBB) $(OBJS2) $(OBJS) MCint.o 65 @echo " Linking $(PROGRAM2) ..." 66 $(CXX) $(CXXFLAGS) $(OBJS2) $(OBJS) $(MARS_LIB) MCint.o $(ROOTLIBS) $(ROOTGLIBS) -o $@ 67 59 # Use $(CXX) -v ... for a more verbose output 60 $(PROGRAMS): $(MARS_LIBB) $(PROGRAMS:=.o) $(OBJS) MCint.o 61 @echo " Linking $@ ..." 62 $(CXX) $(CXXFLAGS) $@.o $(OBJS) $(MARS_LIB) MCint.o $(ROOTGLIBS) -o $@ 63 68 64 $(SOLIB): $(MARS_LIBB) $(OBJS) MCint.o 69 65 @echo " Linking $(SOLIB) ..." … … 79 75 (cd mraw; make; cd ..; mv mraw/libmraw.a lib) 80 76 81 libmocttest.a: 82 @echo " Creating libmocttest.a:" 83 (cd mocttest; make; cd .., mv mocttest/libmocttest.a lib) 77 libmgui.a: 78 @echo " Creating libmgui.a:" 79 (cd mgui; make; cd ..; mv mgui/libmgui.a lib) 80 81 libmdatacheck.a: 82 @echo " Creating libmdatacheck.a:" 83 (cd mdatacheck; make; cd ..; mv mdatacheck/libmdatacheck.a lib) 84 84 85 85 dox:
Note:
See TracChangeset
for help on using the changeset viewer.