炽翼铁冰's Blog

Trying to become a programmer
tuxedo示例程序运过程中遇到的问题和解决
crontab 无法写入的问题

编译proc程序可用makefile文件

炽翼铁冰 posted @ 2010年11月11日 09:00 in C(转载) , 5093 阅读

 

#---------------------------------------------
# rules of making *.pc, DON'T change anytime !
# Author: 
.c.o:
	$(CC) $*.c ;
	echo    "        $(CC) $*.c\n";
.pc.o:
	$(PROC) iname=$*.pc
	$(CC) $*.c  
	@rm     $*.c
	@rm *.lis
	@echo   " "

.SUFFIXES:      .pc  .c  .o
#---------------------------------------------
OS=Linux
MACRO=TUXEDO
MACRO1=FUN

#PROCFLAGS = unsafe_null= yes dynamic=ansi mode=oracle dbms=v8 parse=full
PROCFLAGS = mode=oracle dbms=v8 dynamic=ansi unsafe_null=yes PARSE=none code=ansi_c lines=yes


CC      =       gcc $(INCL) -D$(OS) -D$(MACRO) -c  
PROC    =       proc $(INCL_PC) $(PROCFLAGS)
INCL    =	-I$(HOME)/incl -I$(HOME)/tbincl -I$(TUXDIR)/include \
		-I$(ORACLE_HOME)/precomp/public -I$(ORACLE_HOME)/rdbms/public\
		

INCL_PC =	include=$(ORACLE_HOME)/precomp/public \
		include=$(TUXDIR)/include \
                include=$(ORACLE_HOME)/rdbms/public \


LIB	=	 -f $(ORACLE_HOME)/lib/libclntsh.so
#将foo替换为需要编译的程序
OBJS    =	foo.o

FOBJS    =	-f foo.o

SOBJS    =	-s foo.o

BIN	=	foo

$(BIN):$(OBJS)

	#gcc -o $(BIN) $(OBJS) -L $(ORACLE_HOME)/lib -lcurses  -l clntsh $(LIB)
	buildclient $(FOBJS) $(LIB) -o $(BIN) -v -w
	@rm *.o
	@rm tp??????
	@echo   " "
	@echo	"       ==================MAKE [$(BIN)] SUCCESS!!=============="
#mv $(BIN) $(HOME)/bin

 

Avatar_small
cleaning services 说:
2019年9月23日 17:23

A lot of cleaning providers and cleaning service services offer various options, originating from a deep-down one-time cleaning up to consistently scheduled cleaning up services. Subject to how much you enjoy (and also hate! )#) cleaning up house, how big your property is and the best way messy elements get, you’ll often find more than enough options to uncover the right one for your personal circumstances.

Avatar_small
seo service london 说:
2024年5月18日 19:05

Wow, wonderful weblog layout! How lengthy have you ever been blogging for The total glance of your web site is magnificent, let alone the content!..For hottest information you have to pay a visit the web and on internet I found this web site as a most excellent web page for most recent updates.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter