automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: using libtool with Oracle Pro*C precompiler


From: Keenan, Rod
Subject: RE: using libtool with Oracle Pro*C precompiler
Date: Thu, 10 May 2001 18:28:12 -0500

Tom,

Thanks you very much for the quick help.

I made the changes that you suggested and my makefile.am now looks like:

***** start makefile.am *****
AUTOMAKE_OPTIONS = foreign

lib_LTLIBRARIES = libGenericTCP.la

libGenericTCP_la_SOURCES = db_dequeue_generic_tcp_msg.pc
db_enqueue_generic_tcp_msg.pc

libGenericTCP_la_LDFLAGS = -version-info 1:0:0

INCLUDES = -I$(ORACLE_HOME)/precomp/public -I$(top_builddir)/include

CLEANFILES = db_dequeue_generic_tcp_msg.c db_enqueue_generic_tcp_msg.c

SUFFIXES = .o .c .pc
.pc.c:
    $(ORACLE_HOME)/bin/proc -DANSI_PRO_C mode=ansi code=ansi_c
userid=userid/password sqlcheck=semantics lines=yes iname=$<
***** end makefile.am *****

The error message now reads:
make[3]: *** No rule to make target `db_dequeue_generic_tcp_msg.c', needed
by `libGenericTCP.la'.  Stop.

I'm puzzled ;-)

Rod


-----Original Message-----
From: Tom Tromey [mailto:address@hidden
Sent: Thursday, May 10, 2001 7:20 PM
To: Keenan, Rod
Cc: 'address@hidden'
Subject: Re: using libtool with Oracle Pro*C precompiler


>>>>> "Rod" == Keenan, Rod <address@hidden> writes:

Rod> I'm using automake 1.4 and libtool 1.3.

1.4 handled BUILT_SOURCES in a fairly dumb way.
I would recommend not using BUILT_SOURCES with that automake.

Rod> BUILT_SOURCES = db_dequeue_generic_tcp_msg.c
db_enqueue_generic_tcp_msg.c

make thinks these are prerequisites to building Makefile.
Eww.

I recommend trying this instead:

- Remove BUILT_SOURCES

Rod> libGenericTCP_la_SOURCES = 

- Change this to read:

libGenericTCP_la_SOURCES = db_enqueue_generic_tcp_msg.pc \
    db_enqueue_generic_tcp_msg.pc

Rod> libGenericTCP_la_LIBADD = db_dequeue_generic_tcp_msg.o

- Remove this

I imagine that will work.

Tom





---------------------------------------------------------------------
This message (including any attachments) contains confidential, proprietary
or privileged information intended for a specific purpose and individual(s),
and is protected by law.  If you receive this message in error, please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender.  Any unauthorized disclosure,
copying or distribution of any part of this message, or the taking of any
unauthorized action based on it, is strictly prohibited.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]