2001-02-18 22:50:29 -08:00
|
|
|
### Path settings
|
2013-09-26 11:07:01 -07:00
|
|
|
datarootdir = @datarootdir@
|
2001-02-18 22:50:29 -08:00
|
|
|
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@
|
2003-12-02 08:40:59 -08:00
|
|
|
CFLAGS = @CFLAGS@
|
2001-02-18 22:50:29 -08:00
|
|
|
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
|
|
|
|
|
2004-05-25 17:41:29 -07:00
|
|
|
CONSOLE_OBJS = console.o getpassword.o readconf.o ../conserver/cutil.o
|
2003-12-02 08:40:59 -08:00
|
|
|
CONSOLE_HDRS = ../config.h $(top_srcdir)/compat.h \
|
|
|
|
$(top_srcdir)/conserver/cutil.h \
|
|
|
|
$(top_srcdir)/conserver/version.h \
|
2004-05-25 17:41:29 -07:00
|
|
|
$(srcdir)/getpassword.h $(srcdir)/readconf.h
|
2001-02-18 22:50:29 -08:00
|
|
|
ALL = console
|
|
|
|
|
|
|
|
|
|
|
|
all: $(ALL)
|
|
|
|
|
2003-12-02 08:40:59 -08:00
|
|
|
$(CONSOLE_OBJS): $(CONSOLE_HDRS)
|
|
|
|
|
2001-02-18 22:50:29 -08:00
|
|
|
console: $(CONSOLE_OBJS)
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o console $(CONSOLE_OBJS) $(LIBS)
|
|
|
|
|
2003-12-02 08:40:59 -08:00
|
|
|
../conserver/cutil.o:
|
|
|
|
( cd ../conserver && $(MAKE) $(MAKE_FLAGS) cutil.o ) || exit 1;
|
2001-07-05 09:18:19 -07:00
|
|
|
|
2001-06-15 17:44:07 -07:00
|
|
|
.c.o:
|
2001-02-18 22:50:29 -08:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o $(ALL) core
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
2001-06-15 17:44:07 -07:00
|
|
|
install: console
|
2001-02-18 22:50:29 -08:00
|
|
|
$(MKDIR) $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_PROGRAM) console $(DESTDIR)$(bindir)
|
|
|
|
$(MKDIR) $(DESTDIR)$(mandir)/man1
|
2010-11-11 14:53:37 -08:00
|
|
|
$(INSTALL) -m 0644 console.man $(DESTDIR)$(mandir)/man1/console.1
|
2001-02-18 22:50:29 -08:00
|
|
|
|
2001-07-26 17:05:04 -07:00
|
|
|
.PHONY: clean distclean install
|