Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Make File!
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) $(ORA_LIBS) -lm
clean:
rm *.o main.c $(PROGS) Received on Thu Jan 15 1998 - 00:00:00 CST
![]() |
![]() |