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=convert.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,5 +0,0 @@
# DO NOT DELETE
inttostr.o: inttostr.h
misc.o: misc.h text.h
text.o: text.h

View File

@@ -1 +0,0 @@
o = inttostr.o misc.o text.o