cdemo_odbc.mk

来自「本源代码是通过oci连接oracle数据库的代码。适合初步接触Oracle的开发」· MK 代码 · 共 71 行

MK
71
字号
# This Makefile builds the sample ODBC programs in $(ORACLE_HOME)/odbc/demo/cdemo# and can serve as a template for linking customer applications.include $(ORACLE_HOME)/odbc/lib/env_odbc.mk# SAMPLES is a list of the C ODBC sample programs.SAMPLES=connect select insert1 insert2# These targets build all of a class of samples in one call to make.samples: $(SAMPLES)#------------------------------------------------------------------------# The target 'build' puts together an executable $(EXE) from the .o files# in $(OBJS) and the libraries in $(PROLDLIBS).  It is used to build the# c ODBC sample programs.build: $(OBJS)	$(DEMO_ODBC_BUILD_SHARED)build_static: $(OBJS)	$(DEMO_ODBC_BUILD_STATIC)$(SAMPLES) $(OBJECT_SAMPLES):	$(MAKE) -f $(MAKEFILE) OBJS=$@.$(OBJ_EXT) EXE=$@ build#---------------------------------------------------------------------------# Clean up all executables and *.oclean:ifndef OBJSifndef EXE	$(SILENT)$(RMF) $(SAMPLES) 	$(SILENT)$(RMF) *.$(OBJ_EXT)endifendififdef OBJS		$(RMF) $(OBJS)endififdef EXE		$(RMF) $(EXE)endif#---------------------------------------------------------------------------# Here are some rules for converting .c -> .o## We use a macro INCLUDE to hadle the other required header files. The general # format of the INCLUDE macro is #   INCLUDE= $(I_SYM)dir1 $(I_SYM)dir2 ...## Normally, I_SYM=-I, for the c compiler..SUFFIXES: .c  .$(OBJ_EXT) .c.$(OBJ_EXT):	$(C2O)connect.$(OBJ_EXT): connect.c 	$(C2O)select.$(OBJ_EXT): select.c 	$(C2O)insert1.$(OBJ_EXT): insert1.c 	$(C2O)insert2.$(OBJ_EXT): insert2.c 	$(C2O)# These macro definitions fill in some details or override some defaultsMAKEFILE=cdemo_odbc.mk

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?