Add back shared{} module flag which I managed to lose in a git-fubar...
[seven-1.x.git] / tools / Makefile.in
blob9c37fef8ecdaf08a9faa7708832c7379bead36d0
1 # $Id: Makefile.in 117 2006-10-15 17:41:44Z spb $
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@
18 IRCDLIBS = @LIBS@
19 INCLUDES = -I../include
20 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 bindir = @bindir@
25 libexecdir = @libexecdir@
26 confdir = @confdir@
27 localstatedir = @localstatedir@
29 PROGS = viconf mkpasswd convertilines convertklines
31 all: $(PROGS)
33 build: all
35 mkpasswd: mkpasswd.c
36 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) mkpasswd.c -o mkpasswd $(IRCDLIBS)
38 viconf: viconf.c
39 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) viconf.c -o viconf $(IRCDLIBS)
41 convertilines: convertilines.c
42 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertilines.c -o convertilines $(IRCDLIBS)
44 convertklines: convertklines.c
45 $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) convertklines.c -o convertklines $(IRCDLIBS)
47 clean:
48 $(RM) -f encspeed viconf chkconf mkpasswd *~ core *.exe convertklines convertilines
50 distclean: clean
51 $(RM) -f Makefile
53 lint:
54 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(convertklines_SOURCES) $(mkpasswd_SOURCES) $(viconf_SOURCES) $(encspeed_SOURCES) >>../lint.out
56 depend:
58 .c.o:
59 $(CC) $(CFLAGS) $(INCLUDES) $(CPPFLAGS) -c $<
61 # DO NOT DELETE
63 viconf.o: ../include/config.h ../include/setup.h
64 viconf.o:
67 prefix = @prefix@
68 exec_prefix = @exec_prefix@
69 exec_suffix = @exec_suffix@
70 bindir = @bindir@
71 libexecdir = @libexecdir@
72 confdir = @confdir@
73 localstatedir = @localstatedir@
74 # Change this later! -- adrian
75 moduledir = @moduledir@
76 automoduledir = @moduledir@/autoload
80 install-mkdirs:
81 -@if test ! -d $(DESTDIR)$(prefix); then \
82 echo "ircd: setting up tools directory structure"; \
83 mkdir -p $(DESTDIR)$(prefix); \
85 -@if test ! -d $(DESTDIR)$(exec_prefix); then \
86 mkdir -p $(DESTDIR)$(exec_prefix); \
88 -@if test ! -d $(DESTDIR)$(bindir); then \
89 mkdir -p $(DESTDIR)$(bindir); \
92 install: install-mkdirs build
93 @echo "ircd: installing tools ($(PROGS))"
94 @for i in $(PROGS); do \
95 if test -f $(DESTDIR)$(bindir)/$$i; then \
96 $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
97 fi; \
98 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
99 done; \
100 $(RM) -f $(DESTDIR)$(bindir)/vimotd $(DESTDIR)$(bindir)/viklines
101 $(LN) $(DESTDIR)$(bindir)/viconf $(DESTDIR)$(bindir)/vimotd
102 $(LN) $(DESTDIR)$(bindir)/viconf $(DESTDIR)$(bindir)/viklines