knipknap
December 4th, 2005, 09:17 PM
Hi,
I am trying to fiddle with the Automake files for the following file structure:
.
|-Makefile.am
|-autogen.sh
|-configure.ac
|-data
| |-Makefile.am
| |-com.nokia.mcclient.service.in
| |-mcclient.desktop
| `-mcclient.desktop.in.in
|-libmcc
| |-Makefile
| |-McClient.c
| |-McClient.h
| |-McClient.marshall.list
| |-TcpListener.c
| |-TcpListener.h
| |-TcpListener.marshall.list
| `-test.c
|-po
| |-Makefile.am
| |-POTFILES.in
| `-en_GB.po
`-src
|-Makefile.am
|-appdata.h
|-main.c
`-ui
|-callbacks.c
|-callbacks.h
|-interface.c
`-interface.h
Current behavior:
- Using "make" in the libmcc/ directory successfully builds a binary out of test.c. That build also includes running a code generator that created four files out of *.marshall.list. The makefile is here:
http://debain.org/stuff/mcrec/mcclient/libmcc/Makefile
- Using "make" in the root directory builds a binary from src/main.c. The makefiles are here:
http://debain.org/stuff/mcrec/mcclient/Makefile.am
http://debain.org/stuff/mcrec/mcclient/src/Makefile.am
What I would like it to do:
Using "make" in the root directory should
a) build a library out of libmcc/ (test.c no longer needed) and
b) link the executable in src/ statically agains that library.
Why does it not work so far?:
a) I have no idea how to port libmcc/ from automake to autoconf, because the code generator for *.marshall.list needs to be triggered from that script.
b) I don't know how to compile libmcc/ as a library.
c) I don't know how to link against that library in src/Makefile.am.
Other information:
Browse the source online here:
http://svn.gna.org/viewcvs/mcreceiver/trunk/mcclient/
A tarball is here:
http://debain.org/stuff/mcrec/mcclient.tgz
Any help appreciated.
I am trying to fiddle with the Automake files for the following file structure:
.
|-Makefile.am
|-autogen.sh
|-configure.ac
|-data
| |-Makefile.am
| |-com.nokia.mcclient.service.in
| |-mcclient.desktop
| `-mcclient.desktop.in.in
|-libmcc
| |-Makefile
| |-McClient.c
| |-McClient.h
| |-McClient.marshall.list
| |-TcpListener.c
| |-TcpListener.h
| |-TcpListener.marshall.list
| `-test.c
|-po
| |-Makefile.am
| |-POTFILES.in
| `-en_GB.po
`-src
|-Makefile.am
|-appdata.h
|-main.c
`-ui
|-callbacks.c
|-callbacks.h
|-interface.c
`-interface.h
Current behavior:
- Using "make" in the libmcc/ directory successfully builds a binary out of test.c. That build also includes running a code generator that created four files out of *.marshall.list. The makefile is here:
http://debain.org/stuff/mcrec/mcclient/libmcc/Makefile
- Using "make" in the root directory builds a binary from src/main.c. The makefiles are here:
http://debain.org/stuff/mcrec/mcclient/Makefile.am
http://debain.org/stuff/mcrec/mcclient/src/Makefile.am
What I would like it to do:
Using "make" in the root directory should
a) build a library out of libmcc/ (test.c no longer needed) and
b) link the executable in src/ statically agains that library.
Why does it not work so far?:
a) I have no idea how to port libmcc/ from automake to autoconf, because the code generator for *.marshall.list needs to be triggered from that script.
b) I don't know how to compile libmcc/ as a library.
c) I don't know how to link against that library in src/Makefile.am.
Other information:
Browse the source online here:
http://svn.gna.org/viewcvs/mcreceiver/trunk/mcclient/
A tarball is here:
http://debain.org/stuff/mcrec/mcclient.tgz
Any help appreciated.