pro*c 를 위한 Makefile
CC = cc
RM = rm -rf
LD = ld
CFLAGS = -I$(ORACLE_HOME)/precomp/public -L$(ORACLE_HOME)/lib -l clntsh
PROINC = proc oracle INCLUDE=include/ \
include=$(ORACLE_HOME)/precomp/public/ \
include=$(ORACLE_HOME)/rdbms/demo/ \
include=$(ORACLE_HOME)/rdbms/public/ \
include=$(ORACLE_HOME)/network/public/
ORA_OPT = PARSE=NONE RELEASE_CURSOR=YES MODE=ORACLE dbms=v8 unsafe_null=yes
test : test.o
$(CC) -o test.o $(CFLAGS)
test.o: test.c
$(CC) -c DataReceiveDaemon.c
test.c: test.pc
proc test INCLUDE=include/ \include=$(ORACLE_HOME)/precomp/public/ include=$(ORACLE_HOME)/rdbms/demo/ include=$(ORACLE_HOME)/rdbms/public/ include=$(ORACLE_HOME)/network/public/ $(ORA_OPT)
clean :
$(RM) tp* test.c test.o test.lis test
$( ) 앞에공백이 스페이스가 아닌 Tab 을 해야된다는걸 염두해두자.
test.pc 가 proc로 컴파일할 파일