Print this page
12312 fix unused lib dependencies


   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 (c) 2018, Joyent, Inc.
  27 
  28 include         ../Makefile.cmd
  29 
  30 PROG =          oawk
  31 LINKPROG =      awk
  32 
  33 SRCS =          b.c lib.c main.c parse.c run.c tran.c
  34 
  35 #TXTS =         README EXPLAIN
  36 
  37 OBJS =          awk.g.o awk.lx.o proctab.o tmptoken.o           \
  38                 $(SRCS:%.c=%.o)
  39 
  40 #
  41 # for message catalogue
  42 #
  43 POFILES=        $(OBJS:%.o=%.po)
  44 POFILE=         oawk.po
  45 XGETFLAGS +=    -a -x oawk.xcl
  46 
  47 NATIVEDIR =     native
  48 MAKEPRCTAB =    $(NATIVEDIR)/makeprctab
  49 
  50 NATIVEOBJS =    $(NATIVEDIR)/makeprctab.o $(NATIVEDIR)/tmptoken.o
  51 $(MAKEPRCTAB) :=        CC = $(NATIVECC)
  52 $(MAKEPRCTAB) :=        POST_PROCESS=
  53 $(MAKEPRCTAB) :=        POST_PROCESS_O=
  54 $(MAKEPRCTAB) :=        NATIVE_LIBS += libm.so libc.so
  55 
  56 CLEANFILES =    proctab.c y.tab.h y.tab.c awk.h awk.g.c         \
  57                 tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
  58                 temp
  59 
  60 YFLAGS =        -d
  61 XLDLIBS5CC +=   -lm
  62 LDLIBS +=       -lm
  63 CPPFLAGS =      -I. $(CPPFLAGS.master)
  64 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  65 
  66 ROOTLINK =      $(LINKPROG:%=$(ROOTBIN)/%)
  67 
  68 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  69 CERRWARN +=     -_gcc=-Wno-unused-label
  70 CERRWARN +=     -_gcc=-Wno-unused-variable
  71 CERRWARN +=     -_gcc=-Wno-extra
  72 CERRWARN +=     -_gcc=-Wno-parentheses
  73 
  74 # missing type declarations
  75 SMATCH =        off
  76 
  77 .KEEP_STATE :
  78 
  79 all :           $(PROG) $(TXTS)
  80 
  81 $(PROG) :       $(OBJS)




   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 2020 Joyent, Inc.
  27 
  28 include         ../Makefile.cmd
  29 
  30 PROG =          oawk
  31 LINKPROG =      awk
  32 
  33 SRCS =          b.c lib.c main.c parse.c run.c tran.c
  34 
  35 #TXTS =         README EXPLAIN
  36 
  37 OBJS =          awk.g.o awk.lx.o proctab.o tmptoken.o           \
  38                 $(SRCS:%.c=%.o)
  39 
  40 #
  41 # for message catalogue
  42 #
  43 POFILES=        $(OBJS:%.o=%.po)
  44 POFILE=         oawk.po
  45 XGETFLAGS +=    -a -x oawk.xcl
  46 
  47 NATIVEDIR =     native
  48 MAKEPRCTAB =    $(NATIVEDIR)/makeprctab
  49 
  50 NATIVEOBJS =    $(NATIVEDIR)/makeprctab.o $(NATIVEDIR)/tmptoken.o
  51 $(MAKEPRCTAB) :=        CC = $(NATIVECC)
  52 $(MAKEPRCTAB) :=        POST_PROCESS=
  53 $(MAKEPRCTAB) :=        POST_PROCESS_O=
  54 $(MAKEPRCTAB) :=        NATIVE_LIBS += libm.so libc.so
  55 
  56 CLEANFILES =    proctab.c y.tab.h y.tab.c awk.h awk.g.c         \
  57                 tmptoken.c awk.lx.c $(NATIVEOBJS) $(MAKEPRCTAB) \
  58                 temp
  59 
  60 YFLAGS =        -d

  61 LDLIBS += -lm
  62 CPPFLAGS =      -I. $(CPPFLAGS.master)
  63 CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  64 
  65 ROOTLINK =      $(LINKPROG:%=$(ROOTBIN)/%)
  66 
  67 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  68 CERRWARN +=     -_gcc=-Wno-unused-label
  69 CERRWARN +=     -_gcc=-Wno-unused-variable
  70 CERRWARN +=     -_gcc=-Wno-extra
  71 CERRWARN +=     -_gcc=-Wno-parentheses
  72 
  73 # missing type declarations
  74 SMATCH =        off
  75 
  76 .KEEP_STATE :
  77 
  78 all :           $(PROG) $(TXTS)
  79 
  80 $(PROG) :       $(OBJS)