Clean a bit - to be continued...
[seven-1.x.git] / libseven / Makefile.in
blobe2bebe281cff5144671a09fe53d76a1d695f2535
2 # Makefile.in for ircd/src/io
4 CC = @CC@
5 INSTALL = @INSTALL@
6 INSTALL_BIN = @INSTALL_PROGRAM@
7 INSTALL_DATA = @INSTALL_DATA@
8 INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
9 RM = @RM@
10 LEX = @LEX@
11 LEXLIB = @LEXLIB@
12 CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
13 LDFLAGS = @LDFLAGS@
14 MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
15 MV = @MV@
16 RM = @RM@
17 YACC = @YACC@
18 AR = @AR@
19 RANLIB = @RANLIB@
21 prefix = @prefix@
22 exec_prefix = @exec_prefix@
23 bindir = @bindir@
24 libexecdir = @libexecdir@
25 sysconfdir = @sysconfdir@
26 localstatedir = @localstatedir@
27 # Change this later! -- adrian
28 moduledir = @prefix@/modules
29 automoduledir = @prefix@/modules/autoload
31 INCLUDES = -I../include -I../adns -I.
32 CPPFLAGS = ${INCLUDES} @CPPFLAGS@
34 default: all
36 BASE_SRCS = \
37 balloc.c \
38 commio.c \
39 event.c \
40 libseven.c \
41 linebuf.c \
42 memory.c \
43 snprintf.c \
44 tools.c
46 SRCS = ${BASE_SRCS} @SELECT_TYPE@.c
48 OBJS = ${SRCS:.c=.o}
50 all: libseven.a
52 build: all
54 libseven.a: ${OBJS}
55 rm -f $@
56 ${AR} cqv $@ ${OBJS}
57 ${RANLIB} $@
59 # this is really the default rule for c files
60 .c.o:
61 ${CC} ${CPPFLAGS} ${CFLAGS} -c $<
63 .PHONY: depend clean distclean
65 install:
67 depend:
68 @${MKDEP} ${CPPFLAGS} ${BASE_SRCS} ${EXTRA_SRCS} > .depend.tmp
69 @sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
70 @echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
71 @echo '# make depend needs it.' >>Makefile.depend
72 @cat .depend.tmp >>Makefile.depend
73 @mv Makefile.depend Makefile
74 @rm -f .depend.tmp
76 clean:
77 ${RM} -f *.o *.exe *~ libseven.a
79 lint:
81 distclean: clean
82 ${RM} -f Makefile version.c.last
84 # DO NOT DELETE THIS LINE!!!
85 # make depend needs it.