### Path settings srcdir = . top_srcdir = .. prefix = exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sysconfdir = ${prefix}/etc mandir = ${prefix}/man ### Installation programs and flags INSTALL = /usr/bin/install -c -o root -g wheel INSTALL_PROGRAM = install -s -o root -g wheel -m 555 -s LN_S = ln -s MKDIR = mkdir -p -m 755 ### Compiler and link options CC = cc CFLAGS = -fno-common DEFS = -DHAVE_CONFIG_H -DSYSCONFDIR=\"$(sysconfdir)\" CPPFLAGS = -I.. -I$(top_srcdir) -I$(srcdir) -I$(top_srcdir)/conserver $(DEFS) LDFLAGS = LIBS = -lbsm ### Makefile rules - no user-servicable parts below CONSOLE_OBJS = console.o getpassword.o readconf.o ../conserver/cutil.o CONSOLE_HDRS = ../config.h $(top_srcdir)/compat.h \ $(top_srcdir)/conserver/cutil.h \ $(top_srcdir)/conserver/version.h \ $(srcdir)/getpassword.h $(srcdir)/readconf.h ALL = console all: $(ALL) $(CONSOLE_OBJS): $(CONSOLE_HDRS) console: $(CONSOLE_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o console $(CONSOLE_OBJS) $(LIBS) ../conserver/cutil.o: ( cd ../conserver && $(MAKE) $(MAKE_FLAGS) cutil.o ) || exit 1; .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< clean: rm -f *~ *.o $(ALL) core distclean: clean rm -f Makefile install: console $(MKDIR) $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) console $(DESTDIR)$(bindir) $(MKDIR) $(DESTDIR)$(mandir)/man1 $(INSTALL) console.man $(DESTDIR)$(mandir)/man1/console.1 .PHONY: clean distclean install