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


  48                 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  49                 $(POST_PROCESS)
  50 
  51 check_struct_layout: gen_struct_layout gen_layout_obj.o
  52         sed -e '/^#include <struct_layout.h>/q' \
  53           ../common/struct_layout_$(ARCH).c | sed -e '$$d' \
  54           > struct_layout_$(ARCH).tmp
  55         ./gen_struct_layout gen_layout_obj.o $(ARCH) \
  56           >> struct_layout_$(ARCH).tmp
  57         @diff -u struct_layout_$(ARCH).tmp \
  58           ../common/struct_layout_$(ARCH).c ||\
  59         { echo "Error: struct_layout_$(ARCH).c needs update!" ; exit 1; }
  60         touch $@
  61 
  62 # We need CTF data in this object.
  63 gen_layout_obj.o := CFLAGS += $(CTF_FLAGS)
  64 gen_layout_obj.o := CFLAGS64 += $(CTF_FLAGS)
  65 gen_layout_obj.o := POST_PROCESS_O = $(CTFCONVERT_O)
  66 
  67 gen_struct_layout:      ../common/gen_struct_layout.c
  68                 $(NATIVECC) $(NATIVECC_CFLAGS) -o $@ \
  69                         ../common/gen_struct_layout.c -lctf
  70 
  71 clean:
  72                 $(RM) $(OBJS) $(CLEANFILES) gen_struct_layout \
  73                   check_struct_layout gen_layout_obj.o \
  74                   struct_layout_$(ARCH).tmp
  75 
  76 delete:
  77                 $(RM) $(PROG)
  78 
  79 package \
  80 install:        all $(VAR_SGSBINPROG) $(VAR_SGSCCSLINK)
  81 
  82 .PARALLEL:      $(LINTOUT32) $(LINTOUT64)
  83 
  84 lint:           $(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT)
  85 
  86 include         $(SRC)/cmd/Makefile.targ
  87 include         $(SRC)/cmd/sgs/Makefile.targ
  88 


  48                 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  49                 $(POST_PROCESS)
  50 
  51 check_struct_layout: gen_struct_layout gen_layout_obj.o
  52         sed -e '/^#include <struct_layout.h>/q' \
  53           ../common/struct_layout_$(ARCH).c | sed -e '$$d' \
  54           > struct_layout_$(ARCH).tmp
  55         ./gen_struct_layout gen_layout_obj.o $(ARCH) \
  56           >> struct_layout_$(ARCH).tmp
  57         @diff -u struct_layout_$(ARCH).tmp \
  58           ../common/struct_layout_$(ARCH).c ||\
  59         { echo "Error: struct_layout_$(ARCH).c needs update!" ; exit 1; }
  60         touch $@
  61 
  62 # We need CTF data in this object.
  63 gen_layout_obj.o := CFLAGS += $(CTF_FLAGS)
  64 gen_layout_obj.o := CFLAGS64 += $(CTF_FLAGS)
  65 gen_layout_obj.o := POST_PROCESS_O = $(CTFCONVERT_O)
  66 
  67 gen_struct_layout:      ../common/gen_struct_layout.c
  68                 $(NATIVECC) $(NATIVE_CFLAGS) -o $@ \
  69                         ../common/gen_struct_layout.c -lctf
  70 
  71 clean:
  72                 $(RM) $(OBJS) $(CLEANFILES) gen_struct_layout \
  73                   check_struct_layout gen_layout_obj.o \
  74                   struct_layout_$(ARCH).tmp
  75 
  76 delete:
  77                 $(RM) $(PROG)
  78 
  79 package \
  80 install:        all $(VAR_SGSBINPROG) $(VAR_SGSCCSLINK)
  81 
  82 .PARALLEL:      $(LINTOUT32) $(LINTOUT64)
  83 
  84 lint:           $(LINTOUT32) $(LINTOUT64) $(SGSLINTOUT)
  85 
  86 include         $(SRC)/cmd/Makefile.targ
  87 include         $(SRC)/cmd/sgs/Makefile.targ
  88