added: namespace PT, global Makefile file

git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@374 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-01-12 02:46:16 +00:00
parent f2ba48a10e
commit d0ffdd336c
16 changed files with 165 additions and 89 deletions

View File

@@ -1,29 +1,27 @@
include Makefile.o.dep
libname=confparser.a
all: $(libname)
$(libname): $(o)
ar rcs $(libname) $(o)
.SUFFIXES: .cpp .o
.cpp.o:
$(CXX) -c $(CXXFLAGS) $<
depend:
makedepend -Y. -I.. -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 $(libname)
include Makefile.dep
include Makefile.o.dep
libname=confparser.a
all: $(libname)
$(libname): $(o)
ar rcs $(libname) $(o)
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) $<
depend:
makedepend -Y. -I.. -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 $(libname)
include Makefile.dep

View File

@@ -1,4 +1,4 @@
# DO NOT DELETE
confparser.o: confparser.h ../utf8/utf8.h
space.o: confparser.h ../utf8/utf8.h
confparser.o: confparser.h space.h ../utf8/utf8.h
space.o: space.h ../utf8/utf8.h

View File

@@ -1,5 +1,5 @@
/*
* This file is a part of PicoTools
* This file is a part of PikoTools
* and is distributed under the (new) BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/

View File

@@ -1,5 +1,5 @@
/*
* This file is a part of PicoTools
* This file is a part of PikoTools
* and is distributed under the (new) BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
@@ -39,10 +39,6 @@
#define headerfile_picotools_confparser_confparser
#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <map>
#include "space.h"

View File

@@ -1,5 +1,5 @@
/*
* This file is a part of PicoTools
* This file is a part of PikoTools
* and is distributed under the (new) BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
@@ -35,9 +35,9 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <cstdlib>
//#include <cstdlib>
#include <wchar.h>
#include "confparser.h"
#include "space.h"
#include "utf8/utf8.h"

View File

@@ -1,5 +1,5 @@
/*
* This file is a part of PicoTools
* This file is a part of PikoTools
* and is distributed under the (new) BSD licence.
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
@@ -38,10 +38,8 @@
#ifndef headerfile_picotools_confparser_space
#define headerfile_picotools_confparser_space
#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <map>