changed the way how the library is built

- now there is only one Makefile in the root directory and we have only one pikotools.a lib file
- removed: mainparser
This commit is contained in:
2021-03-17 13:16:01 +01:00
parent 61291cf7ad
commit 5b5a1dfbb6
27 changed files with 77 additions and 801 deletions

View File

@@ -1,27 +0,0 @@
include Makefile.o.dep
libname=mainspaceparser.a
all: $(libname)
$(libname): $(o)
$(AR) rcs $(libname) $(o)
%.o: %.cpp
$(CXX) -c $(CXXFLAGS) -I.. $<
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,7 +0,0 @@
# DO NOT DELETE
mainspaceparser.o: mainspaceparser.h ../space/space.h ../textstream/types.h
mainspaceparser.o: ../convert/inttostr.h ../utf8/utf8.h
mainspaceparser.o: ../textstream/textstream.h ../date/date.h
mainspaceparser.o: ../membuffer/membuffer.h ../textstream/types.h
mainspaceparser.o: ../utf8/utf8_templates.h ../utf8/utf8_private.h

View File

@@ -1 +0,0 @@
o = mainspaceparser.o