> Ok, now I see the issue - the tar extract created the mxml directory in the root (not
> under the created directory elog-2.5.9). Is there a reason why these includes are not
> placed in the src dir like the regex.h/.c include?
Yes. I use these files in several other projects as well, and want to maintain only a
single copy. So I have
elogd-x.x.x/
elogd-x.x.x/src/
....
mxml/
mxml/strlcpy.h
mxml/strlcpy.c
mxml/mxml.c
mxml/mxml.c
...
other-project-x.x.x/
other-project-x.x.x/
So both elogd and "other-project" can use strlcpy.c and mxml.c. If I would copy it to
elogd-x.x.x/src and fix a bug there, "other-project" would use a separate copy and not
profit from the bug fix. So I would have to mainain verious copies of the same file, which
make things complicated. I compile everything also under windows, so I cannot use soft
links. If there is a better way of how to do it, please let me know. |