]> jfr.im git - irc/rqf/shadowircd.git/blob - servlink/Makefile.in
[svn] - the new plan:
[irc/rqf/shadowircd.git] / servlink / Makefile.in
1 #
2 # Makefile.in for servlink/src
3 #
4 # $Id: Makefile.in 1285 2006-05-05 15:03:53Z nenolod $
5 #
6
7 CC = @CC@
8 INSTALL = @INSTALL@
9 INSTALL_BIN = @INSTALL_PROGRAM@
10 INSTALL_DATA = @INSTALL_DATA@
11 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
12 RM = @RM@
13 LEX = @LEX@
14 LEXLIB = @LEXLIB@
15 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
16 LDFLAGS = @LDFLAGS@
17 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
18 MV = @MV@
19 RM = @RM@
20 prefix = @prefix@
21 exec_prefix = @exec_prefix@
22 bindir = @bindir@
23 libexecdir = @libexecdir@
24 confdir = @confdir@
25 localstatedir = @localstatedir@
26
27 ZIP_LIB = @ZLIB_LD@
28
29 IRCDLIBS = @LIBS@ $(ZIP_LIB)
30
31 INCLUDES = -I. -I../include $(SSL_INCLUDES)
32 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
33
34 PROGS = servlink
35
36 SOURCES = \
37 servlink.c \
38 io.c \
39 control.c
40
41
42 OBJECTS = ${SOURCES:.c=.o}
43
44 all: servlink
45
46 build: all
47
48 servlink: ${OBJECTS}
49 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${IRCDLIBS}
50
51 install: build
52 @echo "ircd: installing servlink ($(PROGS))"
53 @for i in $(PROGS); do \
54 if test -f $(DESTDIR)$(bindir)/$$i; then \
55 $(MV) $(DESTDIR)$(bindir)/$$i $(DESTDIR)$(bindir)/$$i.old; \
56 fi; \
57 $(INSTALL_BIN) $$i $(DESTDIR)$(bindir); \
58 done
59
60 .c.o:
61 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
62
63 .PHONY: depend clean distclean
64 depend:
65 @${MKDEP} ${CPPFLAGS} ${SOURCES} > .depend.tmp
66 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
67 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
68 @echo '# make depend needs it.' >>Makefile.depend
69 @cat .depend.tmp >>Makefile.depend
70 @mv Makefile.depend Makefile
71 @rm -f .depend.tmp
72
73 clean:
74 ${RM} -f *.o *~ *.core core servlink
75
76 lint:
77 lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(SOURCES) >>../lint.out
78
79 distclean: clean
80 ${RM} -f Makefile
81
82 # End of Makefile