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

Home -> Community -> Usenet -> c.d.o.misc -> Make File!

Make File!

From: Lau Anna <ylau1_at_umbc.edu>
Date: 1998/01/15
Message-ID: <69jl5a$am3$2@news.umbc.edu>#1/1

HI, sorry to bother you but I am desperate to finish up my project. I have written a program in PRO*C but I have trouble in compiling it. I am using a make file provided by the professor who won't be back until the 20th (and I need to finish up the project before the 21st to graduate).

I would appreciate any help you can give me or any advice on whom I can ask. Thanks!

                                                                
                                                                ANNA

Following is the make file, my program name is main.pc

#Sample simple Makefile for the Pro*C Precompiler:
# precompiling, compliling, and linking using the gcc compiler.
#
#
#ORACLE_HOME=/u01/app/oracle/product/7.3.2
#

ORA_INC=-I$(ORACLE_HOME)/precomp/public
ORA_LIBDIR=-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib -L$(ORACLE_HOME)/precomp/lib \

        -L$(ORACLE_HOME)/sqlplus/lib -L$(ORACLE_HOME)/otrace/lib ORA_LIBS= -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric -lsqlnet \

        -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnls rtl3 -lc3v6 -lcore3 \

        -lnlsrtl3 -lcore3 -lnlsrtl3
#
#

PROC=proc
PROCFLAGS=dbms=v6_char
#

CC=gcc
CFLAGS= $(ORA_INC) -I.
#
#
#

PROGS= main

all: $(PROGS)
main : main.pc

        $(PROC) $(PROCFLAGS) iname=main.pc
        $(CC) $(CFLAGS) -c main.c
        $(CC) $(CFLAGS) -o main main.o $(ORA_LIBDIR) $(O
RA_LIBS) -lm  

clean:

        rm *.o main.c $(PROGS) Received on Thu Jan 15 1998 - 00:00:00 CST

Original text of this message

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