Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: proc.mk or demo_proc.mk?
"Eric Gorely" <eric.gorely_at_mci.com> writes:
> Hi all,
>
> I hope I am posting in the correct newsgroup...please advise if I should be
> in .misc or elsewhere.
> We are switching from Informix to Oracle and I am learning about the
> makefiles and how Oracle uses them. From what I understand, there are
> 'sample' makefiles that should be used. I have seen a lot of mention of
> proc.mk on deja.com, but I don't have this makefile on my system...we have
> demo_proc.mk, but I'm not sure this is what I am supposed to be using. It
> does have the following lines in it:
> build: $(OBJS)
> $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(PROLDLIBS)
> build_static: $(OBJS)
> $(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(STATICPROLDLIBS)
> $(SAMPLES) $(OBJECT_SAMPLES):
> $(MAKE) -f $(MAKEFILE) OBJS=$@.o EXE=$@ build
>
> Is this the correct makefile for me?
proc.mk used to be the sample makefile in older releases.
demo_proc.mk is the correct one
To build your Pro*C programs, you either take the makefile 'as is'
like :
make -f demo_proc.mk build EXE=myexe OBJS="obj1.o obj2.o ..."
or, you write your own makefile, using the macros defined in the
demo_proc.mk ($(PROLDLIBS) $(PROCFLAGS) ...)
>
> OS: DEC UNIX 4.0D
> Pro*C/C++: Release 8.1.5.0.0 (Oracle 8.1.5)
>
> TIA for your help!
>
>
--
The fundamental aim of King Crimson is to organize anarchy, to utilize
the latent power of chaos and to allow the varying influences to
interact and find their own equilibrium. -Robert FrippReceived on Thu Nov 11 1999 - 00:39:18 CST