changed: the way of building
core.a content.a templates.a confparser.a have gone away there is only: cmslu.a now (in the global directory 'cmslu') changed: the way of building in Makefile(s) we dont longer use explicitly a variable 'o = file1.o file2.o...' it was put into Makefile.o.dep and is generated automatically when 'make depend' is invoked changed: some #include "..." directives were put from *.h to *.cpp files fewer dependences git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@501 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1,26 +1,22 @@
|
||||
o = content.o priv.o emacs.o login.o rm.o cat.o logout.o ls.o node.o mkdir.o default.o run.o last.o who.o thread.o createthread.o
|
||||
include Makefile.o.dep
|
||||
|
||||
|
||||
all: content.a
|
||||
|
||||
content.a: $(o)
|
||||
ar rcs content.a $(o)
|
||||
all: $(o)
|
||||
|
||||
|
||||
.SUFFIXES: .cpp .o
|
||||
|
||||
.cpp.o:
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
$(CXX) -c $(CXXFLAGS) $<
|
||||
|
||||
|
||||
|
||||
depend:
|
||||
makedepend $(DEPMACROS) -Y. -f- *.cpp > Makefile.dep
|
||||
|
||||
echo -n "o = " > Makefile.o.dep
|
||||
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f *.a
|
||||
|
||||
|
||||
|
||||
include Makefile.dep
|
||||
|
Reference in New Issue
Block a user