]> jfr.im git - irc/rqf/shadowircd.git/blob - 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
1 # $Id: Makefile.in 6 2005-09-10 01:02:21Z nenolod $
2
3 CC = @CC@
4 INSTALL = @INSTALL@
5 INSTALL_BIN = @INSTALL_PROGRAM@
6 INSTALL_DATA = @INSTALL_DATA@
7 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
8 RM = @RM@
9 LEX = @LEX@
10 LEXLIB = @LEXLIB@
11 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
12 LDFLAGS = @LDFLAGS@
13 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
14 MV = @MV@
15 RM = @RM@
16 LN = @LN@
17
18 IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@
19 INCLUDES = -I../include -I../libratbox/include
20 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
21
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 bindir = @bindir@
25 libdir = @libdir@
26 libexecdir = @libexecdir@
27 confdir = @confdir@
28 localstatedir = @localstatedir@
29
30 PROGS = viconf mkpasswd convertilines convertklines genssl.sh
31
32 all: $(PROGS)
33
34 build: all
35
36 mkpasswd: mkpasswd.c
37 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
38
39 viconf: viconf.c
40 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
41
42 convertilines: convertilines.c
43 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS)
44
45 convertklines: convertklines.c
46 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
47
48 genssl.sh:
49
50 clean:
51 $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
52
53 distclean: clean
54 $(RM) -f Makefile
55
56 lint:
57 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out
58
59 depend:
60
61 .c.o:
62 $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $<
63
64 # DO NOT DELETE
65
66 viconf.o: ../include/config.h ../include/setup.h
67 viconf.o:
68
69
70 prefix = @prefix@
71 exec_prefix = @exec_prefix@
72 exec_suffix = @exec_suffix@
73 bindir = @bindir@
74 libexecdir = @libexecdir@
75 confdir = @confdir@
76 localstatedir = @localstatedir@
77 # Change this later! -- adrian
78 moduledir = @moduledir@
79 automoduledir = @moduledir@/autoload
80
81
82
83 install-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
95 install: 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; \
103 $(RM) -f $(DESTDIR)$(bindir)/vimotd
104 $(LN) $(DESTDIR)$(bindir)/viconf $(DESTDIR)$(bindir)/vimotd
105