Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Having problem with MAKEFILE pro*c 8.0.4: Need a working makefile
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
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
![]() |
![]() |