conserver/contrib/chat/Makefile.in
2003-09-29 08:50:27 -07:00

53 lines
1001 B
Makefile

### 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@
DEFS = @DEFS@
CPPFLAGS = -I$(top_srcdir) -I$(srcdir) $(DEFS) @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
@SET_MAKE@
### Makefile rules - no user-servicable parts below
CHAT_OBJS = chat.o
CHAT_HDRS = ../../config.h
ALL = chat
all: $(ALL)
chat: $(CHAT_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o chat $(CHAT_OBJS) $(LIBS)
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
clean:
rm -f *~ *.o $(ALL) core
distclean: clean
rm -f Makefile
install: chat
$(MKDIR) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) chat $(DESTDIR)$(bindir)
$(MKDIR) $(DESTDIR)$(mandir)/man1
$(INSTALL) chat.man $(DESTDIR)$(mandir)/man1/chat.1
.PHONY: clean distclean install