Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Pro*C makefile for UNIX??
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.
$(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
![]() |
![]() |