mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
36e50ccfa5
Hybrid 6 is old enough that the conversion tools can go away now. They are for I and K lines; the ircd.conf converter was already removed. This removes compiler/analyzer warnings about these tools.
98 lines
2.5 KiB
Makefile
98 lines
2.5 KiB
Makefile
# $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@
|
|
|
|
PROGRAM_PREFIX = @PROGRAM_PREFIX@
|
|
|
|
IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@
|
|
INCLUDES = -I../include -I../libratbox/include
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
libdir = @libdir@
|
|
libexecdir = @libexecdir@
|
|
sysconfdir = @sysconfdir@
|
|
localstatedir = @localstatedir@
|
|
|
|
PROGS = viconf mkpasswd genssl
|
|
|
|
all: $(PROGS)
|
|
|
|
build: all
|
|
|
|
mkpasswd: mkpasswd.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
|
|
|
|
viconf: viconf.c ../include/setup.h ../include/config.h
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
|
|
|
|
genssl: genssl.in
|
|
cd .. && ./config.status tools/genssl && ./config.status tools/genssl_chmod
|
|
|
|
clean:
|
|
$(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe
|
|
|
|
distclean: clean
|
|
$(RM) -f genssl Makefile
|
|
|
|
lint:
|
|
lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(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@
|
|
sysconfdir = @sysconfdir@
|
|
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 \
|
|
if test -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; then \
|
|
$(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \
|
|
fi; \
|
|
$(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \
|
|
done; \
|
|
$(RM) -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd
|
|
$(LN) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)viconf $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd
|
|
|