jeyochen2013-03-03 17:26
CC=gcc
INCL=-I/opt/oracle/product/11.2.0/db_1/precomp/public
CFLAGS= -g
OBJS=t1.o
PROG=t1
all:${PROG}
${PROG}:${OBJS}
${CC} ${CFLAGS} -o ${PROG} ${OBJS} ${INCL}
%.o:%.c
${CC} ${CFLAGS} -c $< ${INCL}
%.c:%.pc
proc parse=full iname=./t1.pc oname=./t1.c
.PHONY:clean cleanobj
clean:
-rm -f ./t1 t1.o t1.c
cleanobj:
-rm -f ${OBJS}
~