Print this page
10080 smatch Makefile changes for usr/src/cmd

*** 20,30 **** # # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # ! # include ../Makefile.sp UCBPROGS = lpr lpq lprm lpc BINPROGS = lp lpstat cancel enable disable $(UCBPROGS) --- 20,30 ---- # # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # ! # Copyright (c) 2018, Joyent, Inc. include ../Makefile.sp UCBPROGS = lpr lpq lprm lpc BINPROGS = lp lpstat cancel enable disable $(UCBPROGS)
*** 65,74 **** --- 65,77 ---- in.lpd:= LDLIBS += -lnsl -lsocket CERRWARN += -_gcc=-Wno-unused-variable CERRWARN += -_gcc=-Wno-uninitialized + # not linted + SMATCH=off + all: $(BINPROGS) $(SBINPROGS) # each program needs common.o as well $(BINPROGS) $(SBINPROGS) $(LIBPRINTPROGS): $(BINPROGS:%=%.c) $(SBINPROGS:%=%.c) $(LIBPRINTPROGS:%=%.c) common.o $(LINK.c) -o $@ $@.c common.o $(LDLIBS)