Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG = th_manage th_define
  27 SHFILES = th_script
  28 
  29 include ../Makefile.cmd
  30 
  31 CFLAGS += -I$(SRC)/uts/common
  32 LINTFLAGS += -I$(SRC)/uts/common
  33 CSTD= $(CSTD_GNU99)
  34 CFLAGS += $(CCVERBOSE)
  35 CERRWARN += -_gcc=-Wno-parentheses
  36 CERRWARN += -_gcc=-Wno-uninitialized
  37 
  38 SRCS = $(PROG:%=%.c)
  39 OBJECTS = $(SRCS:%.c=%.o)
  40 
  41 LDLIBS += -ldevinfo
  42 th_manage := LDLIBS += -ldevice
  43 
  44 ROOTPROG = $(PROG:%=$(ROOTUSRSBIN)/%)
  45 
  46 CLOBBERFILES = $(PROG) $(SHFILES)
  47 
  48 $(ROOTPROG) := FILEMODE = 0555
  49 
  50 .KEEP_STATE:
  51 
  52 all: $(PROG) $(SHFILES)
  53 
  54 $(SHFILES): $(SHFILES).sh
  55         $(RM) $(SHFILES)
  56         $(CP) $(SHFILES).sh $(SHFILES)


  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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG = th_manage th_define
  27 SHFILES = th_script
  28 
  29 include ../Makefile.cmd
  30 
  31 CFLAGS += -I$(SRC)/uts/common
  32 LINTFLAGS += -I$(SRC)/uts/common
  33 CSTD= $(CSTD_GNU99)
  34 CFLAGS += $(CCVERBOSE)
  35 CERRWARN += -_gcc=-Wno-parentheses
  36 CERRWARN += $(CNOWARN_UNINIT)
  37 
  38 SRCS = $(PROG:%=%.c)
  39 OBJECTS = $(SRCS:%.c=%.o)
  40 
  41 LDLIBS += -ldevinfo
  42 th_manage := LDLIBS += -ldevice
  43 
  44 ROOTPROG = $(PROG:%=$(ROOTUSRSBIN)/%)
  45 
  46 CLOBBERFILES = $(PROG) $(SHFILES)
  47 
  48 $(ROOTPROG) := FILEMODE = 0555
  49 
  50 .KEEP_STATE:
  51 
  52 all: $(PROG) $(SHFILES)
  53 
  54 $(SHFILES): $(SHFILES).sh
  55         $(RM) $(SHFILES)
  56         $(CP) $(SHFILES).sh $(SHFILES)