Print this page
6648 illumos build should be explicit about C standards

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zic/Makefile
          +++ new/usr/src/cmd/zic/Makefile
↓ open down ↓ 58 lines elided ↑ open up ↑
  59   59  
  60   60  $(PROG): $(OBJS)
  61   61          $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  62   62          $(POST_PROCESS)
  63   63  
  64   64  install: all $(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTUSRSBINPROG) \
  65   65                  $(ROOTLIBTZSRCFILES) $(ROOTLIBTZTABFILES) $(ROOTKSHPROG)
  66   66          $(NPROG) -d $(ROOTTZD) $(TZFILES)
  67   67  
  68   68  $(NPROG): $(NATIVE) $(NOBJS)
  69      -        $(NATIVECC) -o $@ $(NOBJS)
       69 +        $(NATIVECC) $(NATIVE_CFLAGS) -o $@ $(NOBJS)
  70   70  
  71   71  #
  72   72  # XXX
  73   73  # There is a .ksh rule in Makefile.targ, but we need our custom POFILE rules.
  74   74  #
  75   75  $(KSHPROG):     $(KSHPROG).ksh
  76   76          $(RM) $@
  77   77          $(CAT) $(KSHPROG).ksh > $@
  78   78          $(CHMOD) +x $@
  79   79  
↓ open down ↓ 8 lines elided ↑ open up ↑
  88   88  
  89   89  $(NATIVE):
  90   90          -@mkdir -p $@
  91   91  
  92   92  clean:
  93   93          $(RM) $(OBJS)
  94   94  
  95   95  lint: lint_SRCS
  96   96  
  97   97  $(NOBJS): $$(@F:.o=.c)
  98      -        $(NATIVECC) -O $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
       98 +        $(NATIVECC) -O $(NATIVE_CFLAGS) $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
  99   99  
 100  100  $(NATIVE)/zic.o: $(NATIVE)/tzfile.h
 101  101  
 102      -#$(NATIVE)/scheck.o: scheck.c
 103      -#       $(NATIVECC) -c -o $@ scheck.c
 104      -
 105      -#$(NATIVE)/ialloc.o: ialloc.c
 106      -#       $(NATIVECC) -c -o $@ ialloc.c
 107      -
 108  102  $(NATIVE)/tzfile.h: $(ROOT)/usr/include/tzfile.h
 109  103          $(RM) $@; cp $(ROOT)/usr/include/tzfile.h $@
 110  104  
 111  105  #
 112  106  # From ../Makefile.targ
 113  107  #
 114  108  clobber: clean
 115  109          -$(RM) $(PROG) $(CLOBBERFILES)
 116  110  
 117  111  lint_PROG:
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX