### Path settings srcdir = @srcdir@ top_srcdir = @top_srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ sysconfdir = @sysconfdir@ mandir = @mandir@ ### Installation programs and flags INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s LN_S = @LN_S@ MKDIR = @MKDIR@ ### Compiler and link options CC = @CC@ CFLAGS = @CFLAGS@ # -DPUCC -DSUN5 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)\" CPPFLAGS = -I.. -I$(top_srcdir) -I$(srcdir) -I$(top_srcdir)/conserver $(DEFS) @CPPFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ @SET_MAKE@ ### Makefile rules - no user-servicable parts below CONSOLE_OBJS = console.o CONSOLE_HDRS = ../config.h $(top_srcdir)/compat.h $(top_srcdir)/conserver/port.h ALL = console all: $(ALL) .PHONY: clean distclean install console: $(CONSOLE_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o console $(CONSOLE_OBJS) $(LIBS) %.o: $(srcdir)/%.c $(CONSOLE_HDRS) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< clean: rm -f *~ *.o $(ALL) core distclean: clean rm -f Makefile install: $(MKDIR) $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) console $(DESTDIR)$(bindir) $(MKDIR) $(DESTDIR)$(mandir)/man1 $(INSTALL) console.man $(DESTDIR)$(mandir)/man8/console.1