|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Oracle programming, please enlighten heroes Which is the mastermind of the makefile procedure programming samples to be given a, a brother Xianxie. |
Oracle programming, please enlighten heroes You look at the environment, there are no middleware |
Oracle programming, please enlighten heroes Oracle in the pre-alone catalog example makefile |
Oracle programming, please enlighten heroes CC = cc-g
STDCC_LIBS = -lpthread -rdynamic -ldl -lnsl -lm
ORAPROC = $ (ORACLE_HOME) /bin/proc
ORAPROCFLAGS = char_map=STRING dynamic=ansi threads=YES include=/usr/i386-glibc
-2.1-linux/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/include/
ORAINCLPATH = -I$ (ORACLE_HOME) /precomp/public
COMPILE = $ (CC) $ (STDCC_LIBS)
Impserv all :
Impserv : impserv.o common.o ora.o
$ (COMPILE) $ (ORALIBPATH) impserv.o common.o ora.o -o impserv
Impserv.o impserv.c common.h :
$ (CC) - c impserv.c
Common.o : common.c common.h
$ (CC) - c common.c
Ora.o ora.c common.h :
$ (CC) $ (ORAINCLPATH) - c ora.c
Ora.c : ora.pc
($ ORAPROC) $ (ORAPROCFLAGS) ora.pc
Clean :
Rm-f *.o *.lis *.dcl *.cod *.cud ora.c impserv |
| |