-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (46 loc) · 1.72 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# just a Makefile to compile and link cjabber.
#
# This file is part of libcjabber.
#
# cjabber is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# cjabber is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with cjabber; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
CC=gcc
SRC=src
LIBS=-lssl `xml2-config --libs` -lcrypto
#CFLAGS=-Wall -DDEBUG -Iinclude -ggdb3 -g
#CFLAGS=-Wall -DDEBUG -ggdb3 -Iinclude -I./include -fPIC `xml2-config --cflags`
CFLAGS=-Wall -I./include -fPIC `xml2-config --cflags` -O1
OBJ=jid.o messages.o presence.o convert.o subscription.o roster.o base64.o sha.o
all: jabber
jabber: ${OBJ} jabber.o
${CC} -o jabber ${SRC}/*.o ${LIBS} ${CFLAGS}
jid.o:
${CC} -c ${SRC}/jid.c -o ${SRC}/jid.o ${CFLAGS}
messages.o:
${CC} -c ${SRC}/messages.c -o ${SRC}/messages.o ${CFLAGS}
convert.o:
${CC} -c ${SRC}/convert.c -o ${SRC}/convert.o ${CFLAGS}
presence.o:
${CC} -c ${SRC}/presence.c -o ${SRC}/presence.o ${CFLAGS}
subscription.o:
${CC} -c ${SRC}/subscription.c -o ${SRC}/subscription.o ${CFLAGS}
roster.o:
${CC} -c ${SRC}/roster.c -o ${SRC}/roster.o ${CFLAGS}
base64.o:
${CC} -c ${SRC}/base64.c -o ${SRC}/base64.o ${CFLAGS}
sha.o:
${CC} -c ${SRC}/sha.c -o ${SRC}/sha.o ${CFLAGS}
jabber.o: ${OBJ}
${CC} -c ${SRC}/jabber.c -o ${SRC}/jabber.o ${CFLAGS}
clean:
rm jabber ${SRC}/*.o