Print this page
6117 Many small bugs prevent a clean build on SPARC


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

  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG=           lex
  27 
  28 MACHOBJS=       main.o sub1.o sub2.o sub3.o header.o parser.o
  29 POBJECTS=       $(MACHOBJS)
  30 POBJS=          $(POBJECTS:%=objs/%)
  31 
  32 LIBRARY=        libl.a
  33 VERS=           .1
  34 
  35 LIBOBJS=        allprint.o libmain.o reject.o yyless.o yywrap.o
  36 LIBOBJS_W=      allprint_w.o reject_w.o yyless_w.o
  37 LIBOBJS_E=      reject_e.o yyless_e.o
  38 OBJECTS=        $(LIBOBJS) $(LIBOBJS_W) $(LIBOBJS_E)
  39 
  40 FORMS=          nceucform ncform nrform
  41 


  59 LIBS =          $(DYNLIB) $(LINTLIB)
  60 
  61 LINTSRCS=       ../common/llib-l$(LIBNAME)
  62 
  63 INCLIST=        $(INCLIST_$(MACH)) -I../../include -I../../include/$(MACH)
  64 DEFLIST=        -DELF
  65 
  66 # It is not very clean to base the conditional definitions as below, but
  67 # this will have to do for now.
  68 #
  69 #$(LIBOBJS_W):= DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  70 objs/%_w.o:=    DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  71 pics/%_w.o:=    DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  72 
  73 #$(LIBOBJS_E):= DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  74 objs/%_e.o:=    DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  75 pics/%_e.o:=    DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  76 
  77 CPPFLAGS=       $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
  78 BUILD.AR=       $(AR) $(ARFLAGS) $@ `$(LORDER) $(OBJS) | $(TSORT)`
  79 LINTFLAGS=      -amux

  80 LINTPOUT=       lint.out
  81 
  82 $(LINTLIB):=    LINTFLAGS = -nvx
  83 $(ROOTPROG):=   FILEMODE = 0555
  84 
  85 ROOTFORMS=      $(FORMS:%=$(ROOTSHLIBCCS)/%)
  86 
  87 ROOTLINTDIR=    $(ROOTLIBDIR)
  88 ROOTLINT=       $(LINTSRCS:../common/%=$(ROOTLINTDIR)/%)
  89 
  90 DYNLINKLIBDIR=  $(ROOTLIBDIR)
  91 DYNLINKLIB=     $(LIBLINKS:%=$(DYNLINKLIBDIR)/%)
  92 
  93 # Need to make sure lib-make's are warning free
  94 $(DYNLIB) :=    CFLAGS += $(CCVERBOSE)
  95 $(DYNLIB) :=    CFLAGS64 += $(CCVERBOSE)
  96 
  97 $(DYNLIB) :=    LDLIBS += -lc
  98 
  99 CLEANFILES +=   ../common/parser.c $(LINTPOUT)
 100 CLOBBERFILES += $(LIBS) $(LIBRARY)


   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2015 Gary Mills
  23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 PROG=           lex
  28 
  29 MACHOBJS=       main.o sub1.o sub2.o sub3.o header.o parser.o
  30 POBJECTS=       $(MACHOBJS)
  31 POBJS=          $(POBJECTS:%=objs/%)
  32 
  33 LIBRARY=        libl.a
  34 VERS=           .1
  35 
  36 LIBOBJS=        allprint.o libmain.o reject.o yyless.o yywrap.o
  37 LIBOBJS_W=      allprint_w.o reject_w.o yyless_w.o
  38 LIBOBJS_E=      reject_e.o yyless_e.o
  39 OBJECTS=        $(LIBOBJS) $(LIBOBJS_W) $(LIBOBJS_E)
  40 
  41 FORMS=          nceucform ncform nrform
  42 


  60 LIBS =          $(DYNLIB) $(LINTLIB)
  61 
  62 LINTSRCS=       ../common/llib-l$(LIBNAME)
  63 
  64 INCLIST=        $(INCLIST_$(MACH)) -I../../include -I../../include/$(MACH)
  65 DEFLIST=        -DELF
  66 
  67 # It is not very clean to base the conditional definitions as below, but
  68 # this will have to do for now.
  69 #
  70 #$(LIBOBJS_W):= DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  71 objs/%_w.o:=    DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  72 pics/%_w.o:=    DEFLIST = -DEUC -DJLSLEX  -DWOPTION -D$*=$*_w
  73 
  74 #$(LIBOBJS_E):= DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  75 objs/%_e.o:=    DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  76 pics/%_e.o:=    DEFLIST = -DEUC -DJLSLEX  -DEOPTION -D$*=$*_e
  77 
  78 CPPFLAGS=       $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
  79 BUILD.AR=       $(AR) $(ARFLAGS) $@ `$(LORDER) $(OBJS) | $(TSORT)`
  80 LINTFLAGS=      -nuaxm
  81 LINTFLAGS64=    -nuaxm -m64
  82 LINTPOUT=       lint.out
  83 

  84 $(ROOTPROG):=   FILEMODE = 0555
  85 
  86 ROOTFORMS=      $(FORMS:%=$(ROOTSHLIBCCS)/%)
  87 
  88 ROOTLINTDIR=    $(ROOTLIBDIR)
  89 ROOTLINT=       $(LINTSRCS:../common/%=$(ROOTLINTDIR)/%)
  90 
  91 DYNLINKLIBDIR=  $(ROOTLIBDIR)
  92 DYNLINKLIB=     $(LIBLINKS:%=$(DYNLINKLIBDIR)/%)
  93 
  94 # Need to make sure lib-make's are warning free
  95 $(DYNLIB) :=    CFLAGS += $(CCVERBOSE)
  96 $(DYNLIB) :=    CFLAGS64 += $(CCVERBOSE)
  97 
  98 $(DYNLIB) :=    LDLIBS += -lc
  99 
 100 CLEANFILES +=   ../common/parser.c $(LINTPOUT)
 101 CLOBBERFILES += $(LIBS) $(LIBRARY)