]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | # |
2 | # Makefile.in for ircd/unsupported | |
3 | # | |
297c7db4 | 4 | # $Id: Makefile.in 3478 2007-05-24 15:10:06Z jilles $ |
212380e3 AC |
5 | # |
6 | CC = @CC@ | |
7 | RM = @RM@ | |
8 | SED = @SED@ | |
9 | LEX = @LEX@ | |
10 | LEXLIB = @LEXLIB@ | |
11 | CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\" | |
12 | PICFLAGS = @PICFLAGS@ | |
13 | MKDEP = @MKDEP@ | |
14 | INSTALL = @INSTALL@ | |
15 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
16 | INSTALL_DATA = @INSTALL_DATA@ | |
17 | INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755 | |
18 | SHELL = /bin/sh | |
19 | AUTOMODULEDIR = @moduledir@/unsupported | |
20 | ||
21 | SSL_LIBS = @SSL_LIBS@ | |
22 | SSL_INCLUDES = @SSL_INCLUDES@ | |
23 | ||
24 | IRCDLIBS = @LIBS@ $(SSL_LIBS) | |
25 | ||
26 | INCLUDES = -I. -I../include -I../libcharybdis -I../adns $(SSL_INCLUDES) | |
27 | CPPFLAGS = ${INCLUDES} @CPPFLAGS@ | |
28 | ||
29 | SRCS = \ | |
30 | m_clearchan.c \ | |
297c7db4 JT |
31 | m_force.c \ |
32 | sno_channeljoin.c | |
212380e3 AC |
33 | |
34 | OBJS = ${SRCS:.c=.so} | |
35 | ||
36 | default: build | |
37 | build: all | |
38 | all: $(OBJS) | |
39 | ||
40 | install: all | |
41 | -@if test ! -d $(DESTDIR)$(AUTOMODULEDIR); then \ | |
42 | mkdir $(DESTDIR)$(AUTOMODULEDIR); \ | |
43 | fi | |
44 | @echo "Installing modules into $(DESTDIR)$(AUTOMODULEDIR) .." | |
45 | @for file in $(OBJS); do \ | |
46 | $(INSTALL_DATA) $$file $(DESTDIR)$(AUTOMODULEDIR); \ | |
47 | done | |
48 | ||
49 | .SUFFIXES: .so | |
50 | ||
51 | .c.so: | |
52 | ${CC} ${PICFLAGS} ${CPPFLAGS} ${CFLAGS} $< -o $@ | |
53 | ||
54 | .PHONY: depend clean distclean | |
55 | depend: | |
56 | @${MKDEP} ${CPPFLAGS} ${SRCS} > .depend | |
57 | @sed s/\\\.o/\\\.so/ < .depend > .depend.tmp | |
58 | @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend | |
59 | @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend | |
60 | @echo '# make depend needs it.' >>Makefile.depend | |
61 | @cat .depend.tmp >>Makefile.depend | |
62 | @mv Makefile.depend Makefile | |
63 | @rm -f .depend.tmp .depend | |
64 | ||
65 | clean: | |
66 | ${RM} -f *.so *~ | |
67 | ||
68 | distclean: clean | |
69 | ${RM} -f Makefile | |
70 |