Re: question regarding makefile for PRO*C
Date: 1997/09/16
Message-ID: <341F3F5C.7CB2F58_at_pangeasystems.com>#1/1
Simple one:
include $(ORACLE_HOME)/precomp/env_precomp.mk
get_authors.cc: get_authors.pc
proc $(PRECOMPPUBLIC) code=cpp parse=partial include=/usr/include
include=/usr/local/lib/g++-include include=. DEFINE=_PROC_PRECOMP
iname=get_authors.pc oname=get_authors.cc
get_authors: get_authors.cc get_authors.pc
g++ -g $(PRECOMPPUBLIC) get_authors.cc -o get_authors -L$(LIBHOME)
$(PROLDLIBS)
-A
qiu mei wrote:
> Hello,
>
> I tried to compile the sample PRO*C codes that comes with Oracle 7.3
> on a
> Solaris machine. Oracle provided a makefile under the demo directory
> under precomp called "proc.mk". I have to change this proc.mk file
> because
> we don't have compiler cc installed on this machine. So I have to use
> gcc,
> and during compilation, gcc complained about some options such as
> "-Xc",
> "-K PIC", etc, which are cc specific options. So I changed another
> file
> called "env_precomp.mk", one line in it originally looks like:
>
> CCFLAGS= -Xc -xstrconst -xcg92 -xF -mr -K PIC -DSLXMX_ENABLE
> -DSLTS_ENABLE
> -D_REENTRANT
>
> I cut off all the things before and include PIC. Now it successfully
> compiles sample1 through sample8. However, I am not sure know what
> those
> options are for. Will the change cause problems later on? If so, what
> options should I use with gcc?
>
> Thanks.
>
> Mei Qiu
-- --------------------------------------------------------------------------- Archie Russell Scientific Applications Specialist Pangea Systems, Inc. 1999 Harrison Street, Suite 1100 Oakland, California 94612 ph 510-628-0100 ext 312 fx 510-628-0108 archier_at_pangeasystems.com http://www.pangeasystems.com http://www.csua.berkeley.edu/~archier ---------------------------------------------------------------------------Received on Tue Sep 16 1997 - 00:00:00 CEST