Changeset 3927 for trunk/MagicSoft/Mars/Makefile
- Timestamp:
- 05/01/04 16:33:16 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Makefile
r3806 r3927 67 67 mtools 68 68 69 # monline \70 71 69 #LIBRARIES = $(SUBDIRS:%=lib/lib%.a) 72 70 LIBRARIES = $(SUBDIRS:=.a) … … 76 74 77 75 #------------------------------------------------------------------------------ 78 79 76 .SUFFIXES: .c .cc .h .o 80 77 81 78 SRCFILES = 82 79 83 SRCS = $(SRCFILES)84 HEADERS = $(SRCFILES:.cc=.h)85 OBJS = $(SRCFILES:.cc=.o) MCint.o86 87 80 ############################################################ 88 all: rmlib$(SOLIB) $(PROGRAMS)81 all: $(SOLIB) $(PROGRAMS) 89 82 @echo " Done. " 90 83 @echo " " 91 84 92 85 static: LIBS=$(SUBDIRS:=/*.o) $(OBJS) 93 static: rmlib $(LIBRARIES) $(PROGRAMS) 86 #static: rmlib $(LIBRARIES) $(PROGRAMS) 87 static: $(LIBRARIES) $(PROGRAMS) 94 88 @echo " Done. " 95 89 @echo " " … … 104 98 @echo " Linking $(SOLIB) ..." 105 99 $(CXX) $(CXXFLAGS) $(DYNLIB) $(OBJS) $(SUBDIRS:=/*.o) $(ROOTGLIBS) -o $@ 106 # $(CXX) $(CXXFLAGS) $(DYNLIB) $(OBJS) -Wl,--export-dynamic -Llib $(LIBRARIES:%.a=-l%) -o $@107 100 108 $(PROGRAMS): $( LIBS) $(PROGRAMS:=.o)101 $(PROGRAMS): $(SOLIB) $(PROGRAMS:=.o) 109 102 @echo " Linking $@ ..." 110 $(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(LIBS) $@.o $(MARS_LIB) -o $@ 111 112 # FOR CONVINIENCE CREATE Dep-file first! 113 $(LIBRARIES): 114 @echo " Creating lib$@:" 115 (cd $*; $(MAKE) -f Makefile; cd ..; mv $*/$@ lib/lib$@) 116 117 $(MRPROPERS): 118 @echo " Doing Mr.Proper in $(@:.mrproper=)" 119 (cd $(@:.mrproper=); ($(MAKE) -f Makefile mrproper > /dev/null); cd ..;) 120 121 $(CLEANERS): 122 @echo "Cleaning $(@:.clean=):" 123 (cd $(@:.clean=); $(MAKE) -f Makefile clean; cd ..;) 103 $(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(SOLIB) $@.o $(MARS_LIB) -o $@ 124 104 125 105 dox: $(SOLIB)
Note:
See TracChangeset
for help on using the changeset viewer.