Oracle's database development needs to use PROC,PROC is embedded C
This article mainly introduces the Oracle database development, Linux under the proc Makefile example:
1 . Suffixes:. C. o2 3Cc=GCC4Proc=proc5 6procsrcs=oracle.pc7srcs=$ (procsrcs:.pc=. C)8objs=$ (srcs:.c=. O)9 Tenoracle_home=/opt/oracle/product/11.2.0 Oneoraflags1=/usr/include/Linux Aoraflags2=/usr/lib/gcc/i686-redhat-linux/4.4.4/include - -Exe=ABC the - All : $ (OBJS) -$ (CC)-O $ (EXE) $ (OBJS)-l$ (oracle_home)/lib-Lclntsh -@echo'^_^ ^_^ ^_^ ^_^ ^_^ OK ^_^ ^_^ ^_^ ^_^ ^_^' + - . C.O: $ (SRCS) +$ (CC)-wall-g-o [email protected]-C $< A at $ (SRCS): -$ (PROC) iname=$ (Procsrcs) include=$ (ORAFLAGS1) include=$ (ORAFLAGS2) cpool=yes mode=ansi code=ansi_c parse=partial Threads=yes oname=$ (SRCS) - - - Clean : --RM-F $ (OBJS) in-RM-F $ (SRCS) --rm-f core*
As for the meaning of the parameters inside, see:
---You can list all options and the current default value by entering the proc command with no options at the command line
---proc option =? You can view the option description
Authoring templates for Oracle proc development makefile