I have to recompile a few C-programs on UNIX. I found a Makefile but it seems to be old (It refers to an old version of oracle) . The command "make" gives errors. How can I recompile the programs ?
I have now experience in C. The author of this progarm left the company.
Here is the current Makefile :
SHELL=/usr/bin/ksh
CC=cc
LINK=cc
#INCLUDEDIR=/tmp/981715/include
INCLUDEDIR=/opt/lmlogging/source/include
CFLAGS=-g -c -DCONNECTION_KEEPALIVE -I$(INCLUDEDIR)
LDFLAGS= -lc -lm
EXE=lmc00200
ORACLE_HOME=/opt/app/oracle/product/7.3.4
PROC = /opt/app/oracle/product/7.3.4/bin/proc MODE=ANSI PARSE=PARTIAL INCLUDE=$(INCLUDEDIR) INAME=
#COMDIRS = /tmp/981715/uls
#COMDIRS_OBJ = /tmp/981715/uls/*.o
COMDIRS = /opt/lmlogging/source/include
COMDIRS_OBJ = /opt/lmlogging/source/uls/*.o
ALL: $(EXE)
ORALIBS = $(ORACLE_HOME)/lib/libnlsrtl3.a $(ORACLE_HOME)/lib/libcore3.a $(ORACLE_HOME)/lib/libsqlnet.a $(ORACLE_HOME)/lib/libepc.a $(ORACLE_HOME)/lib/libncr.a $(ORACLE_HOME)/lib/libsql.a $(ORACLE_HOME)/lib/libclient.a $(ORACLE_HOME)/lib/libgeneric.a $(ORACLE_HOME)/lib/libcommon.a $(ORACLE_HOME)/lib/libc3v6.a
$(EXE).c: $(EXE).sqc
$(PROC)$(EXE).sqc
$(EXE).o: $(EXE).c
$(CC) $(CFLAGS) $(EXE).c
$(EXE): $(EXE).o
$(LINK) $(ORALIBS) $(LDFLAGS) -o $(EXE) $(EXE).o $(COMDIRS_OBJ)
Can you give me some advise ?
I have now experience in C. The author of this progarm left the company.
Here is the current Makefile :
SHELL=/usr/bin/ksh
CC=cc
LINK=cc
#INCLUDEDIR=/tmp/981715/include
INCLUDEDIR=/opt/lmlogging/source/include
CFLAGS=-g -c -DCONNECTION_KEEPALIVE -I$(INCLUDEDIR)
LDFLAGS= -lc -lm
EXE=lmc00200
ORACLE_HOME=/opt/app/oracle/product/7.3.4
PROC = /opt/app/oracle/product/7.3.4/bin/proc MODE=ANSI PARSE=PARTIAL INCLUDE=$(INCLUDEDIR) INAME=
#COMDIRS = /tmp/981715/uls
#COMDIRS_OBJ = /tmp/981715/uls/*.o
COMDIRS = /opt/lmlogging/source/include
COMDIRS_OBJ = /opt/lmlogging/source/uls/*.o
ALL: $(EXE)
ORALIBS = $(ORACLE_HOME)/lib/libnlsrtl3.a $(ORACLE_HOME)/lib/libcore3.a $(ORACLE_HOME)/lib/libsqlnet.a $(ORACLE_HOME)/lib/libepc.a $(ORACLE_HOME)/lib/libncr.a $(ORACLE_HOME)/lib/libsql.a $(ORACLE_HOME)/lib/libclient.a $(ORACLE_HOME)/lib/libgeneric.a $(ORACLE_HOME)/lib/libcommon.a $(ORACLE_HOME)/lib/libc3v6.a
$(EXE).c: $(EXE).sqc
$(PROC)$(EXE).sqc
$(EXE).o: $(EXE).c
$(CC) $(CFLAGS) $(EXE).c
$(EXE): $(EXE).o
$(LINK) $(ORALIBS) $(LDFLAGS) -o $(EXE) $(EXE).o $(COMDIRS_OBJ)
Can you give me some advise ?