conserver/console/Makefile.in

62 lines
1.4 KiB
Makefile
Raw Normal View History

2001-02-19 06:50:29 +00:00
### 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@
2003-12-02 16:40:59 +00:00
CFLAGS = @CFLAGS@
2001-02-19 06:50:29 +00: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
2003-11-20 14:49:09 +00:00
CONSOLE_OBJS = console.o getpassword.o ../conserver/cutil.o
2003-12-02 16:40:59 +00:00
CONSOLE_HDRS = ../config.h $(top_srcdir)/compat.h \
$(top_srcdir)/conserver/cutil.h \
$(top_srcdir)/conserver/version.h \
$(srcdir)/getpassword.h
2001-02-19 06:50:29 +00:00
ALL = console
all: $(ALL)
2003-12-02 16:40:59 +00:00
$(CONSOLE_OBJS): $(CONSOLE_HDRS)
2001-02-19 06:50:29 +00:00
console: $(CONSOLE_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o console $(CONSOLE_OBJS) $(LIBS)
2003-12-02 16:40:59 +00:00
../conserver/cutil.o:
( cd ../conserver && $(MAKE) $(MAKE_FLAGS) cutil.o ) || exit 1;
2001-07-05 16:18:19 +00:00
2001-06-16 00:44:07 +00:00
.c.o:
2001-02-19 06:50:29 +00:00
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
clean:
rm -f *~ *.o $(ALL) core
distclean: clean
rm -f Makefile
2001-06-16 00:44:07 +00:00
install: console
2001-02-19 06:50:29 +00:00
$(MKDIR) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) console $(DESTDIR)$(bindir)
$(MKDIR) $(DESTDIR)$(mandir)/man1
2001-05-03 13:44:08 +00:00
$(INSTALL) console.man $(DESTDIR)$(mandir)/man1/console.1
2001-02-19 06:50:29 +00:00
2001-07-27 00:05:04 +00:00
.PHONY: clean distclean install