ITPub博客

首页 > Linux操作系统 > Linux操作系统 > make -f 问题

make -f 问题

原创 Linux操作系统 作者:msscisd 时间:2009-06-07 08:08:38 0 删除 编辑

[hr:hr]/>make  -f  90mk

提示:

make -f $PROC build  EXE=$PRGM_NAME BJS=$PRGM_NAME.o ALPSTARGET=DUMMY 32BIT=NULL 有错误.

但是[hr:hr]/>make  -f  /procReks.mk  build  EXE=90F BJS=90F.o ALPSTARGET=DUMMY 32BIT=NULL 编译正常.

为何?

[hr:hr]/>more 90mk
PRGM_NAME=90F

echo ':: <' $PRGM_NAME '> Making Start at ' `date | cut -c1-28` '::***************************'
echo
echo '    OPTION        : ' [$PRGM_NAME]

# < Making Start >---------------------------------------*
NLS_LANG=American_America.JA16SJIS; export NLS_LANG

PROC=/procReks.mk
make -f $PROC build  EXE=$PRGM_NAME BJS=$PRGM_NAME.o ALPSTARGET=DUMMY 32BIT=NULL

# < Remove *.c  *.o >------------------------------------*
rm *.c
rm *.o
rm *.lis

# < Making End >-----------------------------------------*
cd
echo '    Finished Time : ' `date | cut -c1-28`
echo

# < FILE END >********************************************

[rssbalps:bhlt]/home6/rsb/OST0090/src>more procReks.mk
#
# $Header: Makefile@@/main/osdo_7.3.2/pl_hpux_7.3.2/0 \
# Checked out on Wed Apr 10 12:51:55 PDT 1996 by kthrift \
# Copyright (c) 1996 by Oracle Corporation. All Rights Reserved. \
# $
#
# To link program with client shared library, ORA_CLIENT_LIB environment
# variable needs to be set to "shared" before the make command.
# e.g.  setenv ORA_CLIENT_LIB shared / export ORA_CLIENT_LIB=shared;
#       make -f proc.mk EXE=xyz BJS=xyz.o [ build ]
#

NLS_LANG=American_America.JA16SJIS

include $(ORACLE_HOME)/precomp/lib/env_precomp.mk       ### Oracle 9 ###

.SUFFIXES: .pc .c .o

MAKEFILE=procReks.mk

PROCFLAGS= sqlcheck=SEMANTICS userid=$(USERID)
USERID=hr/hr

INCLUDE=$(I_SYM). $(PRECOMPPUBLIC)
LDFLAGSSHARED=-Wl,-Bimmediate

build: $(OBJS)
        @if [ "$(ORA_CLIENT_LIB)" = "shared" ]; then \
        echodo $(CC) $(LDFLAGSSHARED) -o $(EXE) $(OBJS) $(LIBHOME)/libclntsh.sl `cat $(ORACLE_HOME)/rdbms/lib/sysliblis
t `; \
        else \
            if [ "`file /stand/vmunix | grep ELF-64 | sed 's/^.*\\(ELF-64\\).*$\/\\1/'`" = "ELF-64" ]; then \
              echo "@@@@@ `uname -s` 64bit"; \
            else \
              echo "@@@@@ `uname -s` 32bit"; \
            fi; \
            echodo $(CC) $(CFLAGS) -o $(EXE) $(OBJS) -L$(LIBHOME) $(PROLDLIBS); \
        fi

.pc.c:
        $(PROC) $(PROCFLAGS) iname=$*.pc

.pc.o:
        $(PROC) $(PROCFLAGS) iname=$*.pc
        @if [ "$(32BIT)" = "32BIT" ]; then \
          if [ "`file /stand/vmunix | grep ELF-64 | sed 's/^.*\\(ELF-64\\).*$\/\\1/'`" = "ELF-64" ]; then \
            echo "@@@@@ MQ at `uname -s` 64bit"; \
            echodo $(CC) $(CFLAGS32) -c $*.c; \
          else \
            echo "@@@@@ MQ at `uname -s` 32bit"; \
            echodo $(CC) $(CFLAGS) -c $*.c; \
          fi \
        else \
          if [ "`file /stand/vmunix | grep ELF-64 | sed 's/^.*\\(ELF-64\\).*$\/\\1/'`" = "ELF-64" ]; then \
            echo "@@@@@ `uname -s` 64bit"; \
          else \
            echo "@@@@@ `uname -s` 32bit"; \
          fi; \
          echodo $(CC) $(CFLAGS) -c $*.c; \
        fi

.c.o:
          if [ "`file /stand/vmunix | grep ELF-64 | sed 's/^.*\\(ELF-64\\).*$\/\\1/'`" = "ELF-64" ]; then \
            echo "@@@@@ `uname -s` 64bit"; \
          else \
            echo "@@@@@ `uname -s` 32bit"; \
          fi; \
          echodo $(CC) $(CFLAGS) -c $*.c; \

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/2639443/viewspace-605348/,如需转载,请注明出处,否则将追究法律责任。

下一篇: NLS_LANG值
请登录后发表评论 登录
全部评论

注册时间:2009-06-06

  • 博文量
    15
  • 访问量
    11338