]> jfr.im git - irc/rakaur/praxis.git/blame - src/Makefile.in
Fixes from clang warnings.
[irc/rakaur/praxis.git] / src / Makefile.in
CommitLineData
9af9ec33
EW
1# praxis: services for TSora IRC networks.
2# Makefile.in: Makefile stub for autoconf.
3#
4# Copyright (c) 2004 Eric Will <rakaur@malkier.net>
5# Copyright (c) 2003-2004 praxis development team.
6#
7# $Id$
8
9CC = @CC@
10AR = @AR@
11RM = @RM@
12MV = @MV@
13CP = @CP@
14INSTALL = @INSTALL@
15PREFIX = @prefix@
16BIN = praxis@EXEEXT@
17MKDEP = @CC@ -MM -I../include -DPREFIX=\"@prefix@\"
18
19# Default CFLAGS
20#CFLAGS = -g -O2 -Wall
21
22# Developer CFLAGS
512f83e1 23CFLAGS = -g -O0 -Wunused -Wall -ggdb -std=gnu99 -pedantic -Wshadow -Wmissing-declarations -Wno-long-long
9af9ec33
EW
24
25CFLAGS += -I../include -DPREFIX=\"@prefix@\"
26
27VERSION = devel
28
29LIBS = @LIBS@ ../sqlite/libsqlite.a
30LDFLAGS = @LDFLAGS@ -L../sqlite -lsqlite
31CPPFLAGS = @CPPFLAGS@
32
33default: all
34
35CORE_SRCS = \
36 core/balloc.c \
37 core/channel.c \
38 core/config.c \
39 core/configparse.c \
40 core/connection.c \
41 core/dlink.c \
42 core/event.c \
43 core/hash.c \
44 core/ilog.c \
45 core/imem.c \
46 core/io.c \
47 core/irc.c \
48 core/module.c \
49 core/net.c \
50 core/praxis.c \
51 core/send.c \
52 core/sendq.c \
53 core/server.c \
54 core/timer.c \
55 core/token.c \
56 core/uplink.c \
57 core/util.c \
58 core/user.c \
59 core/version.c
60
61IRC_SRCS = \
62 irc/m_error.c \
0725acfa 63 irc/m_kill.c \
9af9ec33
EW
64 irc/m_nick.c \
65 irc/m_pass.c \
66 irc/m_ping.c \
67 irc/m_quit.c \
68 irc/m_server.c \
de0dff5f
EW
69 irc/m_sid.c \
70 irc/m_squit.c \
9af9ec33
EW
71 irc/m_uid.c
72
73USERSERV_SRCS = \
74 userserv/m_test.c \
75 userserv/m_test2.c \
76
77ALL_SRCS = ${CORE_SRCS} ${IRC_SRCS}
78
79OBJS = ${ALL_SRCS:.c=.o}
80USERSERV_OBJS = ${USERSERV_SRCS:.c=.o}
81
82all: version praxis
83
84build: all
85
86shared_modules: ${USERSERV_OBJS}
87 ${CC} ${CFLAGS} -shared -fPIC -DPIC -o userserv/m_userserv.so ${USERSERV_OBJS}
88 ${MV} userserv/m_userserv.so ../modules
89
90static_modules: libuserserv.a
91
92libuserserv.a: $(USERSERV_OBJS)
93 $(RM) -f userserv/$@
94 $(AR) cqv userserv/$@ $(USERSERV_OBJS)
95 $(RANLIB) userserv/$@
96
97praxis: $(OBJS)
98 ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
99 $(MV) core/version.c core/version.c.last
100
101install: build
102 $(INSTALL) -m 755 -d $(PREFIX)/bin
103 $(INSTALL) -m 755 -c $(BIN) $(PREFIX)/bin
104
105deinstall:
106 if [ -d ${PREFIX} ] ; then \
107 $(RM) -rf ${PREFIX}; \
108 fi
109
110version:
111 /bin/sh ./core/version.sh $(VERSION)
112
113.c.o:
114 ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@
115
116.PHONY: depend clean distclean
117depend:
118 ${MKDEP} ${CPPFLAGS} ${ALL_SRCS} > .depend
119
120clean:
121 ${RM} -f core/*.o *.exe core/*~ core/version.c core/praxis.core core/core praxis
122 ${RM} -f irc/*.o irc/*~
123 ${RM} -f userserv/*.o userserv/*.so userserv/*~ userserv/*.a
124
125distclean: clean
126 ${RM} -f Makefile core/version.c.last
127
128include .depend