include Makefile.o.dep libname=ezc.a all: $(libname) $(libname): $(o) ar rcs $(libname) $(o) additionalinclude = ifdef EZC_USE_WINIX_LOGGER additionalinclude = -I../../winix endif %.o: %.cpp $(CXX) -c $(CXXFLAGS) -I../../pikotools $(additionalinclude) $< 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 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