]> jfr.im git - irc/rqf/shadowircd.git/blame - tools/Makefile.in
Remove all the DEFINE's and the random places they were used for the .conf-based...
[irc/rqf/shadowircd.git] / tools / Makefile.in
CommitLineData
212380e3 1# $Id: Makefile.in 6 2005-09-10 01:02:21Z nenolod $
2
3CC = @CC@
4INSTALL = @INSTALL@
5INSTALL_BIN = @INSTALL_PROGRAM@
6INSTALL_DATA = @INSTALL_DATA@
7INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
8RM = @RM@
9LEX = @LEX@
10LEXLIB = @LEXLIB@
11CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
12LDFLAGS = @LDFLAGS@
13MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
14MV = @MV@
15RM = @RM@
16LN = @LN@
17
00ba96a1
JT
18IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@
19INCLUDES = -I../include -I../libratbox/include
212380e3 20CPPFLAGS = ${INCLUDES} @CPPFLAGS@
21
22prefix = @prefix@
23exec_prefix = @exec_prefix@
24bindir = @bindir@
00ba96a1 25libdir = @libdir@
212380e3 26libexecdir = @libexecdir@
27confdir = @confdir@
28localstatedir = @localstatedir@
29
0042c7a1 30PROGS = viconf mkpasswd convertilines convertklines genssl.sh
212380e3 31
32all: $(PROGS)
33
34build: all
35
36mkpasswd: mkpasswd.c
37 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
38
39viconf: viconf.c
40 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
41
42convertilines: convertilines.c
43 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS)
44
45convertklines: convertklines.c
46 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
47
0042c7a1
WP
48genssl.sh:
49
212380e3 50clean:
51 $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
52
53distclean: clean
54 $(RM) -f Makefile
55
56lint:
57 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out
58
59depend:
60
61.c.o:
62 $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $<
63
64# DO NOT DELETE
65
66viconf.o: ../include/config.h ../include/setup.h
67viconf.o:
68
69
70prefix = @prefix@
71exec_prefix = @exec_prefix@
72exec_suffix = @exec_suffix@
73bindir = @bindir@
74libexecdir = @libexecdir@
75confdir = @confdir@
76localstatedir = @localstatedir@
77# Change this later! -- adrian
78moduledir = @moduledir@
79automoduledir = @moduledir@/autoload
80
81
82
83install-mkdirs:
84 -@if test ! -d $(DESTDIR)$(prefix); then \
85 echo "ircd: setting up tools directory structure"; \
86 mkdir $(DESTDIR)$(prefix); \
87 fi
88 -@if test ! -d $(DESTDIR)$(exec_prefix); then \
89 mkdir $(DESTDIR)$(exec_prefix); \
90 fi
91 -@if test ! -d $(DESTDIR)$(bindir); then \
92 mkdir $(DESTDIR)$(bindir); \
93 fi
94
95install: install-mkdirs build
96 @echo "ircd: installing tools ($(PROGS))"
97 @for i in $(PROGS); do \
98 if test -f $(DESTDIR)$(bindir)/$$i; then \
99 $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
100 fi; \
101 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
102 done; \
3e742e4d 103 $(RM) -f $(DESTDIR)$(bindir)/vimotd
212380e3 104 $(LN) $(DESTDIR)$(bindir)/viconf $(DESTDIR)$(bindir)/vimotd
212380e3 105