Print this page
5468 Missing dependencies in lib/Makefile
@@ -20,10 +20,12 @@
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright 2015 RackTop Systems.
+#
PROG= vtdaemon vtinfo vtxlock
VTDAEMON_SRC= vtdaemon.c
VTINFO_SRC= vtinfo.c
@@ -31,28 +33,33 @@
include ../Makefile.cmd
CFLAGS += $(CCVERBOSE)
CERRWARN += -_gcc=-Wno-uninitialized
-LDLIBS += -lpam -lbsm
+vtdaemon := LDLIBS += -lpam -lbsm
+lint_vtdaemon := LDLIBS += -lpam -lbsm
.KEEP_STATE:
all: $(PROG)
vtdaemon: $(VTDAEMON_SRC)
$(LINK.c) -o $@ $(VTDAEMON_SRC) $(LDLIBS)
$(POST_PROCESS)
vtinfo: $(VTINFO_SRC)
- $(LINK.c) -o $@ $(VTINFO_SRC)
+ $(LINK.c) -o $@ $(VTINFO_SRC) $(LDLIBS)
$(POST_PROCESS)
install: all $(ROOTLIBPROG)
clean:
-lint:
+lint: lint_vtdaemon lint_vtinfo
+
+lint_vtdaemon:
$(LINT.c) $(VTDAEMON_SRC) $(LDLIBS)
- $(LINT.c) $(VTINFO_SRC)
+
+lint_vtinfo:
+ $(LINT.c) $(VTINFO_SRC) $(LDLIBS)
include ../Makefile.targ