1 # $Id: Makefile.in 6 2005-09-10 01:02:21Z nenolod $
5 INSTALL_BIN = @INSTALL_PROGRAM@
6 INSTALL_DATA = @INSTALL_DATA@
7 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
11 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
13 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
18 PROGRAM_PREFIX = @PROGRAM_PREFIX@
20 IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@
21 INCLUDES = -I../include -I../libratbox/include
22 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
25 exec_prefix = @exec_prefix@
28 libexecdir = @libexecdir@
29 sysconfdir = @sysconfdir@
30 localstatedir = @localstatedir@
32 PROGS = viconf mkpasswd convertilines convertklines genssl
39 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
41 viconf: viconf.c ../include/setup.h ../include/config.h
42 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
44 convertilines: convertilines.c
45 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS)
47 convertklines: convertklines.c
48 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
51 cd .. && ./config.status tools/genssl && ./config.status tools/genssl_chmod
54 $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
57 $(RM) -f genssl Makefile
60 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out
65 $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $<
70 exec_prefix = @exec_prefix@
71 exec_suffix = @exec_suffix@
73 libexecdir = @libexecdir@
74 sysconfdir = @sysconfdir@
75 localstatedir = @localstatedir@
76 # Change this later! -- adrian
77 moduledir = @moduledir@
78 automoduledir = @moduledir@/autoload
83 -@if test ! -d $(DESTDIR)$(prefix); then \
84 echo "ircd: setting up tools directory structure"; \
85 mkdir $(DESTDIR)$(prefix); \
87 -@if test ! -d $(DESTDIR)$(exec_prefix); then \
88 mkdir $(DESTDIR)$(exec_prefix); \
90 -@if test ! -d $(DESTDIR)$(bindir); then \
91 mkdir $(DESTDIR)$(bindir); \
94 install: install-mkdirs build
95 @echo "ircd: installing tools ($(PROGS))"
96 @for i in $(PROGS); do \
97 if test -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; then \
98 $(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \
100 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \
102 $(RM) -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd
103 $(LN) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)viconf $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd