2007-01-25 06:40:21 +00:00
|
|
|
# $Id: Makefile.in 6 2005-09-10 01:02:21Z nenolod $
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_BIN = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
|
|
|
|
RM = @RM@
|
|
|
|
LEX = @LEX@
|
|
|
|
LEXLIB = @LEXLIB@
|
|
|
|
CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
MV = @MV@
|
|
|
|
RM = @RM@
|
|
|
|
LN = @LN@
|
|
|
|
|
2012-03-01 02:41:09 +00:00
|
|
|
PROGRAM_PREFIX = @PROGRAM_PREFIX@
|
|
|
|
|
2009-02-21 23:59:16 +00:00
|
|
|
IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@
|
|
|
|
INCLUDES = -I../include -I../libratbox/include
|
2007-01-25 06:40:21 +00:00
|
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
2009-02-21 23:59:16 +00:00
|
|
|
libdir = @libdir@
|
2007-01-25 06:40:21 +00:00
|
|
|
libexecdir = @libexecdir@
|
|
|
|
confdir = @confdir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
|
2008-04-25 19:52:17 +00:00
|
|
|
PROGS = viconf mkpasswd convertilines convertklines genssl.sh
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
build: all
|
|
|
|
|
|
|
|
mkpasswd: mkpasswd.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
|
|
|
|
|
2012-02-29 07:43:54 +00:00
|
|
|
viconf: viconf.c ../include/setup.h ../include/config.h
|
2007-01-25 06:40:21 +00:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
|
|
|
|
|
|
|
|
convertilines: convertilines.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS)
|
|
|
|
|
|
|
|
convertklines: convertklines.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
|
|
|
|
|
2012-03-01 02:41:09 +00:00
|
|
|
genssl.sh: genssl.sh.in
|
|
|
|
cd .. && ./config.status tools/genssl.sh && ./config.status tools/genssl.sh_chmod
|
2008-04-25 19:52:17 +00:00
|
|
|
|
2007-01-25 06:40:21 +00:00
|
|
|
clean:
|
|
|
|
$(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
|
|
|
|
|
|
|
|
distclean: clean
|
2012-03-01 02:41:09 +00:00
|
|
|
$(RM) -f genssl.sh Makefile
|
2007-01-25 06:40:21 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out
|
|
|
|
|
|
|
|
depend:
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $<
|
|
|
|
|
|
|
|
# DO NOT DELETE
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
exec_suffix = @exec_suffix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
confdir = @confdir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
# Change this later! -- adrian
|
|
|
|
moduledir = @moduledir@
|
|
|
|
automoduledir = @moduledir@/autoload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install-mkdirs:
|
|
|
|
-@if test ! -d $(DESTDIR)$(prefix); then \
|
|
|
|
echo "ircd: setting up tools directory structure"; \
|
|
|
|
mkdir $(DESTDIR)$(prefix); \
|
|
|
|
fi
|
|
|
|
-@if test ! -d $(DESTDIR)$(exec_prefix); then \
|
|
|
|
mkdir $(DESTDIR)$(exec_prefix); \
|
|
|
|
fi
|
|
|
|
-@if test ! -d $(DESTDIR)$(bindir); then \
|
|
|
|
mkdir $(DESTDIR)$(bindir); \
|
|
|
|
fi
|
|
|
|
|
|
|
|
install: install-mkdirs build
|
|
|
|
@echo "ircd: installing tools ($(PROGS))"
|
|
|
|
@for i in $(PROGS); do \
|
2012-03-01 02:41:09 +00:00
|
|
|
if test -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; then \
|
|
|
|
$(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \
|
2007-01-25 06:40:21 +00:00
|
|
|
fi; \
|
2012-03-01 02:41:09 +00:00
|
|
|
$(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \
|
2007-01-25 06:40:21 +00:00
|
|
|
done; \
|
2012-03-01 02:41:09 +00:00
|
|
|
$(RM) -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd
|
|
|
|
$(LN) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)viconf $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd
|
2007-01-25 06:40:21 +00:00
|
|
|
|