Print this page
8411 Build should warn when linking against libraries outside proto area


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #


  26 
  27 include         ../Makefile.cmd
  28 
  29 PROG =          oawk
  30 LINKPROG =      awk
  31 
  32 SRCS =          b.c lib.c main.c parse.c run.c tran.c
  33 
  34 #TXTS =         README EXPLAIN
  35 
  36 OBJS =          awk.g.o awk.lx.o proctab.o tmptoken.o           \
  37                 $(SRCS:%.c=%.o)
  38 
  39 #
  40 # for message catalogue
  41 #
  42 POFILES=        $(OBJS:%.o=%.po)
  43 POFILE=         oawk.po
  44 XGETFLAGS +=    -a -x oawk.xcl
  45 
  46 NATIVEDIR =     native
  47 MAKEPRCTAB =    $(NATIVEDIR)/makeprctab
  48 
  49 NATIVEOBJS =    $(NATIVEDIR)/makeprctab.o $(NATIVEDIR)/tmptoken.o
  50 $(MAKEPRCTAB) :=        CC = $(NATIVECC)
  51 $(MAKEPRCTAB) :=        POST_PROCESS=
  52 $(MAKEPRCTAB) :=        POST_PROCESS_O=

  53 
  54 CLEANFILES =    proctab.c y.tab.h y.tab.c awk.h awk.g.c         \
  55                 tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
  56                 temp
  57 
  58 YFLAGS =        -d
  59 XLDLIBS5CC +=   -lm 
  60 LDLIBS +=       -lm
  61 CPPFLAGS =      -I. $(CPPFLAGS.master)
  62 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  63 
  64 ROOTLINK =      $(LINKPROG:%=$(ROOTBIN)/%)
  65 
  66 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  67 CERRWARN +=     -_gcc=-Wno-unused-label
  68 CERRWARN +=     -_gcc=-Wno-unused-variable
  69 CERRWARN +=     -_gcc=-Wno-extra
  70 CERRWARN +=     -_gcc=-Wno-parentheses
  71 
  72 .KEEP_STATE :




   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10 # or http://www.opensolaris.org/os/licensing.
  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 #
  23 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright 2017 RackTop Systems.
  27 #
  28 
  29 include         ../Makefile.cmd
  30 
  31 PROG =          oawk
  32 LINKPROG =      awk
  33 
  34 SRCS =          b.c lib.c main.c parse.c run.c tran.c
  35 
  36 #TXTS =         README EXPLAIN
  37 
  38 OBJS =          awk.g.o awk.lx.o proctab.o tmptoken.o           \
  39                 $(SRCS:%.c=%.o)
  40 
  41 #
  42 # for message catalogue
  43 #
  44 POFILES=        $(OBJS:%.o=%.po)
  45 POFILE=         oawk.po
  46 XGETFLAGS +=    -a -x oawk.xcl
  47 
  48 NATIVEDIR =     native
  49 MAKEPRCTAB =    $(NATIVEDIR)/makeprctab
  50 
  51 NATIVEOBJS =    $(NATIVEDIR)/makeprctab.o $(NATIVEDIR)/tmptoken.o
  52 $(MAKEPRCTAB) :=        CC = $(NATIVECC)
  53 $(MAKEPRCTAB) :=        POST_PROCESS=
  54 $(MAKEPRCTAB) :=        POST_PROCESS_O=
  55 $(MAKEPRCTAB) :=        ZASSERTDEFLIB=
  56 
  57 CLEANFILES =    proctab.c y.tab.h y.tab.c awk.h awk.g.c         \
  58                 tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
  59                 temp
  60 
  61 YFLAGS =        -d
  62 XLDLIBS5CC +=   -lm 
  63 LDLIBS +=       -lm
  64 CPPFLAGS =      -I. $(CPPFLAGS.master)
  65 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  66 
  67 ROOTLINK =      $(LINKPROG:%=$(ROOTBIN)/%)
  68 
  69 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  70 CERRWARN +=     -_gcc=-Wno-unused-label
  71 CERRWARN +=     -_gcc=-Wno-unused-variable
  72 CERRWARN +=     -_gcc=-Wno-extra
  73 CERRWARN +=     -_gcc=-Wno-parentheses
  74 
  75 .KEEP_STATE :