Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Having problem with MAKEFILE pro*c 8.0.4: Need a working makefile

Re: Having problem with MAKEFILE pro*c 8.0.4: Need a working makefile

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Mon, 20 Jul 1998 15:27:21 GMT
Message-ID: <35b46169.3658070@192.86.155.100>


A copy of this was sent to "Pierre" <proussin_at_tactik.com> (if that email address didn't require changing) On Thu, 16 Jul 1998 20:12:47 GMT, you wrote:

>Hi,
> I'm getting strange errors with my makefile (pro*c 8.0.4). I need a
>working one
> so I can trace the problem.
>
> Thanks in advance
> Please e-mail me the file at proussin_at_tactik.com
>
> CIAO Pierre
>

This is the makefile I use with 8.0.4 (and 7.3, 7.2, 7.1, 7.0)....

You define TARGET to be the name of the program you want to build

You set source = a.pc b.pc c.pc .... (a list of your .pc files to build)

and thats it... It'll precompile and then compile your application.


$(TARGET): $(SOURCE) $(SOURCE:.pc=.c) $(SOURCE:.pc=.o)

    $(CC) $(LDFLAGS) -t -o $(TARGET) \

        $(SOURCE:.pc=.o) -L$(ORACLE_HOME)/lib $(PROLDLIBS)

include $(ORACLE_HOME)/precomp/demo/proc/demo_proc.mk

PROCFLAGS= ireclen=255 lines=yes $(PROC_ENV_FLAGS) \

           include=$(ORACLE_HOME)/proc/lib PROFLAGS=$(PROCFLAGS)


 

Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Herndon VA  

http://govt.us.oracle.com/ -- downloadable utilities  



Opinions are mine and do not necessarily reflect those of Oracle Corporation  

Anti-Anti Spam Msg: if you want an answer emailed to you, you have to make it easy to get email to you. Any bounced email will be treated the same way i treat SPAM-- I delete it. Received on Mon Jul 20 1998 - 10:27:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US