Make File!
Date: 1998/01/15
Message-ID: <69jlgm$am3$6_at_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 \
-lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnls
rtl3 -lc3v6 -lcore3 \
-lnlsrtl3 -lcore3 -lnlsrtl3
all: $(PROGS)
main : main.pc
#
#
PROC=proc
PROCFLAGS=dbms=v6_char
#
CC=gcc
CFLAGS= $(ORA_INC) -I.
#
#
#
PROGS= main
$(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 CET