changed: if EZC_USE_WINIX_LOGGER macro is defined then we add -I../../winix flag
for compiling git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@442 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
ac37982ee7
commit
23ce3e83df
10
src/Makefile
10
src/Makefile
|
@ -7,12 +7,20 @@ all: $(libname)
|
||||||
$(libname): $(o)
|
$(libname): $(o)
|
||||||
ar rcs $(libname) $(o)
|
ar rcs $(libname) $(o)
|
||||||
|
|
||||||
|
additionalinclude =
|
||||||
|
|
||||||
|
ifdef EZC_USE_WINIX_LOGGER
|
||||||
|
additionalinclude = -I../../winix
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CXX) -c $(CXXFLAGS) $<
|
$(CXX) -c $(CXXFLAGS) -I../../pikotools $(additionalinclude) $<
|
||||||
|
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
|
# we do not use $(additionalinclude) here because the dependencies would be added to the repository
|
||||||
|
# and messes other projects
|
||||||
makedepend -Y. -I../../pikotools -f- *.cpp > Makefile.dep
|
makedepend -Y. -I../../pikotools -f- *.cpp > Makefile.dep
|
||||||
echo -n "o = " > Makefile.o.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
|
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
|
||||||
|
|
Loading…
Reference in New Issue