[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: hids
Bert Timmerman wrote:
> This was Phase I for the "DXF HID" project.
>
> Sofar the one and only problem starting Phase II (implementing dxf.c in
> pcb), occurs when I try to do a ./configure --with-exporter=dxf --> make
> session.
>
> make[4]: *** No rule to make target `libdxf.a', needed by `all-am'. Stop.
>
> What I did for creating a dxf HID was copy the bom HID files to a newly made
> dxf subdir and replacing all the "bom" references for "dxf".
>
> I don't know how or where to tell configure (or make) to let the dxf.c hid
> create a libdxf.a (see the included build log).
>
> ./configure and Makefile are a bit obfuscated to me, and not really my
> friends ... yet.
edit configure.ac in the top level directory. If you need any external
libs for dxf, take a look at the way the png hid works (just search for
png). Otherwise look at how "bom" shows up (really simple, you just
list "dxf" in the 1 line where "bom" shows up).
Now edit src/Makefile.am and again, use the bom hid as a guide. You'll
want to add libdxf.a to EXTRA_LIBRARIES, add $(srcdir)/hid/dxf/hid.conf
to EXTRA_DIST, and add
libdxf_a_SOURCES = \
hid/hidint.h \
hid/dxf/dxf.c
finally, you may or may not need to add hid/dxf/dxf_lists.h to
BUILT_SOURCES -- look at the ps or png hid's here for example.s
Now that you have edited configure.ac and Makefile.am run "./autogen.sh"
from the top directory. This recreates configure and all of the
Makefile.in's. Now you should be able to ./configure and have it all
Just Work.
-Dan
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev