|
From: | Rasmus Storjohann |
Subject: | [Help-tar] Changing the tar build process |
Date: | Thu, 01 Nov 2007 14:00:09 -0700 |
User-agent: | Debian Thunderbird 1.0.2 (X11/20051002) |
Hi I'm making a modified version of tar. I have added the following files: tar/lib/foo.c tar/lib/foo.h tar/src/bar.h tar/src/bar.cas well as modifying existing tar source files. foo.h is #included in src/create.c and src/bar.c, and bar.h is #included in src/create.c as well.
What I would like is: lib/foo.c should be compiled into lib/foo.o; lib/foo.o should be included in lib/libtar.a; src/bar.c should be compiled into src/bar.o; src/bar.o should be included in the linking step to create src/tar.
I can do this manually and I get a working tar binary, but how can I get the tar build system to do this? I've tried to play with configure.ac, lib/Makefile.am and src/Makefile.am but my additional files are ignored.
Also, how to I get the build system to include an additional library -lbaz in the step to link src/tar.
It would seem to me that these changes should not be terribly complicated to implement, but I'm stuck. Any pointers are appreciated.
Thanks Rasmus
[Prev in Thread] | Current Thread | [Next in Thread] |