]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
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 | ||
c74836dc NPB |
18 | PROGRAM_PREFIX = @PROGRAM_PREFIX@ |
19 | ||
f1d07f6b JT |
20 | IRCDLIBS = -L../libratbox/src/.libs -lratbox @LIBS@ |
21 | INCLUDES = -I../include -I../libratbox/include | |
212380e3 AC |
22 | CPPFLAGS = ${INCLUDES} @CPPFLAGS@ |
23 | ||
24 | prefix = @prefix@ | |
25 | exec_prefix = @exec_prefix@ | |
26 | bindir = @bindir@ | |
f1d07f6b | 27 | libdir = @libdir@ |
212380e3 | 28 | libexecdir = @libexecdir@ |
634d4aad | 29 | sysconfdir = @sysconfdir@ |
212380e3 AC |
30 | localstatedir = @localstatedir@ |
31 | ||
14048b96 | 32 | PROGS = viconf mkpasswd convertilines convertklines genssl |
212380e3 AC |
33 | |
34 | all: $(PROGS) | |
35 | ||
36 | build: all | |
37 | ||
38 | mkpasswd: mkpasswd.c | |
39 | $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS) | |
40 | ||
f2ee5e62 | 41 | viconf: viconf.c ../include/setup.h ../include/config.h |
212380e3 AC |
42 | $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS) |
43 | ||
44 | convertilines: convertilines.c | |
45 | $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS) | |
46 | ||
47 | convertklines: convertklines.c | |
48 | $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS) | |
49 | ||
14048b96 AB |
50 | genssl: genssl.in |
51 | cd .. && ./config.status tools/genssl && ./config.status tools/genssl_chmod | |
9d129b8a | 52 | |
212380e3 AC |
53 | clean: |
54 | $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines | |
55 | ||
56 | distclean: clean | |
14048b96 | 57 | $(RM) -f genssl Makefile |
212380e3 AC |
58 | |
59 | lint: | |
60 | lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out | |
61 | ||
62 | depend: | |
63 | ||
64 | .c.o: | |
65 | $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $< | |
66 | ||
67 | # DO NOT DELETE | |
68 | ||
212380e3 AC |
69 | prefix = @prefix@ |
70 | exec_prefix = @exec_prefix@ | |
71 | exec_suffix = @exec_suffix@ | |
72 | bindir = @bindir@ | |
73 | libexecdir = @libexecdir@ | |
634d4aad | 74 | sysconfdir = @sysconfdir@ |
212380e3 AC |
75 | localstatedir = @localstatedir@ |
76 | # Change this later! -- adrian | |
77 | moduledir = @moduledir@ | |
78 | automoduledir = @moduledir@/autoload | |
79 | ||
80 | ||
81 | ||
82 | install-mkdirs: | |
83 | -@if test ! -d $(DESTDIR)$(prefix); then \ | |
84 | echo "ircd: setting up tools directory structure"; \ | |
85 | mkdir $(DESTDIR)$(prefix); \ | |
86 | fi | |
87 | -@if test ! -d $(DESTDIR)$(exec_prefix); then \ | |
88 | mkdir $(DESTDIR)$(exec_prefix); \ | |
89 | fi | |
90 | -@if test ! -d $(DESTDIR)$(bindir); then \ | |
91 | mkdir $(DESTDIR)$(bindir); \ | |
92 | fi | |
93 | ||
94 | install: install-mkdirs build | |
95 | @echo "ircd: installing tools ($(PROGS))" | |
96 | @for i in $(PROGS); do \ | |
c74836dc NPB |
97 | if test -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; then \ |
98 | $(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \ | |
212380e3 | 99 | fi; \ |
c74836dc | 100 | $(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \ |
212380e3 | 101 | done; \ |
c74836dc NPB |
102 | $(RM) -f $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd |
103 | $(LN) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)viconf $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)vimotd | |
212380e3 | 104 |