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: Pro*C makefile for UNIX??

Re: Pro*C makefile for UNIX??

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 1997/09/11
Message-ID: <341a3fa7.13304090@newshost>#1/1

On Thu, 11 Sep 1997 16:57:47 +0100, Dietmar Leibecke <Dietmar.Leibecke_at_gamos.de.---> wrote:

>Hi,
>
>I am just porting a Pro*C application from Windows NT to UNIX. As I run
>into problems with the makefile, I'm looking for a simple makefile for
>the UNIX environment. The Pro*C sample makefile (proc.mk) is oversized
>for my application, which consists of five .pc and one .c module.
>
>Any input welcome and TIA,

Here is one I use with 7.3 (7.2 and below would change the include since the proc.mk is in a different place)

You set up target, souce ( equal to a list of .pc files ) and it does the rest.



$(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/proc.mk

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

           include=$(ORACLE_HOME)/proc/lib PROFLAGS=$(PROCFLAGS)   CFLAGS=-I. -g $(CC_ENV_FLAGS)


Thomas Kyte
tkyte_at_us.oracle.com
Oracle Government
Bethesda MD

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



Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Sep 11 1997 - 00:00:00 CDT

Original text of this message

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