[go: up one dir, main page]

File: Makefile

package info (click to toggle)
althea 0.5.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,196 kB
  • ctags: 725
  • sloc: cpp: 8,194; makefile: 214; sh: 44
file content (196 lines) | stat: -rw-r--r-- 6,105 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# Modified for Debian by Jimmy Kaplowitz <jimmy@kaplowitz.org> at:
# Sat, 21 Apr 2001 21:30:40 -0400
#
# Note - I have changed the meaning of ${DESTDIR} to refer to the destination
# prefix and not the bin dir. Also, people familiar with Debian packages
# should note that ${DESTDIR} here is like the --prefix option to configure;
# the make install will install into ${INSTALLROOT} instead.
#
# Hopefully these changes will make it into the upstream distribution so that
# they don't have to be reapplied for each release; they shouldn't break
# anything on non-Debian systems, and the only changes that will be noticed is
# that the althea binary and the documentation are moved to /usr/X11R6/bin and
# /usr/share/doc/althea, respectively.
#
# Update on 13 Jun 2001 - the binary has been moved back to /usr/bin as per
# Debian Policy section 12.8.7.

#Changes to make compile possible on Suns and BSD boxen thanks to Thomas Strmberg


OBJS =    support.o \
	  callbacks.o \
	  new_message_window.o \
	  about_window.o \
	  main_window.o \
	  Message.o \
	  Folder.o \
	  Server.o \
          Configuration.o \
	  Althea.o \
	  ABEntry.o \
	  Addressbook.o \
	  load_config.o \
	  SendMail.o \
	  tcpUtilities.o \
	  imap.o \
          basicNetwork.o \
          SelectFolder.o \
	  print_dialog.o \
	  helpDialog.o \
	  smtp.o \
	  save_config.o \
	  configwindow.o \
	  registerwindow.o \
	  register.o \
	  crypto.o \
	  promptwindow.o \
	  progressbar.o \
	  tolower.o \
	  MIME.o

#comment the next two lines and uncomment the two after those...
NOSSLFLAG = -DNOSSL
SSLFLAGS =
#SSLFLAGS = -lssl -lcrypto
#NOSSLFLAG =


PACKAGE=\"althea\"
LOCALEDIR=\"/usr/share/locale\"


#mail poll interval in ms

MAIL_POLL_INTERVAL = 60000

CFLAGS = `gtk-config --cflags` -DPACKAGE=${PACKAGE} -DLOCALEDIR=${LOCALEDIR}
DEBUGFLAGS = -Wall -ftemplate-depth-30 -g ${NOSSLFLAG}
LDADD = `gtk-config --libs` ${LDFLAGS}

DESTDIR = /usr

BINDIR = ${DESTDIR}/bin
PIXDIR = ${DESTDIR}/share/althea
DOCDIR = ${DESTDIR}/share/doc/althea

all : ${OBJS} 
	g++ ${DEBUGFLAGS} ${SSLFLAGS} -o althea main.cpp -DPIXDIR=\"${PIXDIR}\" ${OBJS} ${CFLAGS} ${LDADD}


ABEntry.o : ABEntry.h ABEntry.cpp
	g++ ${DEBUGFLAGS} -c ABEntry.cpp

Addressbook.o : ABEntry.h Addressbook.h Addressbook.cpp
	g++ ${DEBUGFLAGS} -c Addressbook.cpp 

Althea.o : Althea.h Althea.cpp
	g++ ${DEBUGFLAGS} -c Althea.cpp ${CFLAGS}

Configuration.o : Configuration.h Configuration.cpp
	g++ ${DEBUGFLAGS} -c Configuration.cpp ${CFLAGS}

Folder.o : Server.h SelectFolder.h Folder.h Folder.cpp connection.h
	g++ ${DEBUGFLAGS} -c Folder.cpp ${CFLAGS}

Message.o : Server.h imap.h Message.h Message.cpp connection.h
	g++ ${DEBUGFLAGS} -c Message.cpp ${CFLAGS}

SelectFolder.o : imap.h basicNetwork.h tcpUtilities.h SelectFolder.h SelectFolder.cpp connection.h progressbar.h progressbar.cpp tolower.h
	g++ ${DEBUGFLAGS} -c SelectFolder.cpp ${CFLAGS}

SendMail.o : Message.h SendMail.h SendMail.cpp smtp.h support.h
	g++ ${DEBUGFLAGS} -c SendMail.cpp ${CFLAGS}

Server.o : imap.h Server.h Server.cpp connection.h
	g++ ${DEBUGFLAGS} -c Server.cpp ${CFLAGS}

about_window.o : callbacks.h support.h about_window.h about_window.cpp

	g++ ${DEBUGFLAGS} -c about_window.cpp ${CFLAGS}

configwindow.o : callbacks.h support.h configwindow.h configwindow.cpp
	g++ ${DEBUGFLAGS} -c configwindow.cpp ${CFLAGS}

registerwindow.o : callbacks.h support.h registerwindow.h registerwindow.cpp
	g++ ${DEBUGFLAGS} -c registerwindow.cpp ${CFLAGS}

basicNetwork.o : tcpUtilities.h basicNetwork.h basicNetwork.cpp connection.h
	g++ ${DEBUGFLAGS} -c basicNetwork.cpp ${CFLAGS}

tolower.o : tolower.h tolower.cpp
	g++ ${DEBUGFLAGS} -c tolower.cpp

MIME.o : MIME.h MIME.cpp
	 g++ ${DEBUGFLAGS} -c MIME.cpp

callbacks.o : main_window.h new_message_window.h Althea.h callbacks.h callbacks.cpp promptwindow.h MIME.h tolower.h support.h
	g++ ${DEBUGFLAGS} -DMAIL_POLL_INTERVAL=${MAIL_POLL_INTERVAL} -c callbacks.cpp ${CFLAGS}

imap.o : basicNetwork.h imap.h imap.cpp imapLiterals.h errors.h connection.h
	g++ ${DEBUGFLAGS} -c imap.cpp ${CFLAGS}

register.o : tcpUtilities.h register.h register.cpp connection.h
	g++ ${DEBUGFLAGS} -c register.cpp ${CFLAGS}

promptwindow.o : promptwindow.h promptwindow.cpp
	g++ ${DEBUGFLAGS} -c promptwindow.cpp ${CFLAGS}

progressbar.o : progressbar.h progressbar.cpp
	g++ ${DEBUGFLAGS} -c progressbar.cpp ${CFLAGS}

load_config.o : Althea.h Server.h Configuration.h load_config.h load_config.cpp crypto.h promptwindow.h
	g++ ${DEBUGFLAGS} -c load_config.cpp ${CFLAGS}

save_config.o : Althea.h Server.h Configuration.h save_config.h save_config.cpp crypto.h
	g++ ${DEBUGFLAGS} -c save_config.cpp ${CFLAGS}

main_window.o : Althea.h main_window.h main_window.cpp
	g++ ${DEBUGFLAGS} -c main_window.cpp ${CFLAGS}

new_message_window.o : new_message_window.h new_message_window.cpp
	g++ ${DEBUGFLAGS} -c new_message_window.cpp ${CFLAGS}

support.o : callbacks.h support.h support.cpp
	g++ ${DEBUGFLAGS} -c support.cpp ${CFLAGS}

tcpUtilities.o : tcpUtilities.h tcpUtilities.cpp connection.h
	g++ ${DEBUGFLAGS} ${NOSSLFLAG} -c tcpUtilities.cpp

crypto.o : crypto.h crypto.cpp
	g++ ${DEBUGFLAGS} -c crypto.cpp

print_dialog.o : print_dialog.cpp print_dialog.h
	g++ ${DEBUGFLAGS} -c print_dialog.cpp ${CFLAGS}

smtp.o : smtp.cpp smtp.h errors.h connection.h
	g++ ${DEBUGFLAGS} ${NOSSLFLAG} -c smtp.cpp ${CFLAGS}

helpDialog.o : helpDialog.cpp helpDialog.h
	g++ ${DEBUGFLAGS} -c helpDialog.cpp -DDOCDIR=\"${DOCDIR}\" ${CFLAGS}

${INSTALLROOT}${BINDIR} :
	mkdir -p ${INSTALLROOT}${BINDIR}

${INSTALLROOT}${DOCDIR} :
	mkdir -p ${INSTALLROOT}${DOCDIR}

${INSTALLROOT}${PIXDIR} :
	mkdir -p ${INSTALLROOT}${PIXDIR}

install : althea pixmaps Documentation ${INSTALLROOT}${BINDIR} ${INSTALLROOT}${DOCDIR} ${INSTALLROOT}${PIXDIR}
	cp ./althea ${INSTALLROOT}${BINDIR}
	cp -r Documentation/* ${INSTALLROOT}${DOCDIR}
	cp -r pixmaps/* ${INSTALLROOT}${PIXDIR}

uninstall: 
	rm -f ${INSTALLROOT}${BINDIR}/althea
	rm -rf ${INSTALLROOT}${DOCDIR}/*
	rmdir ${INSTALLROOT}${DOCDIR}
	rm -rf ${INSTALLROOT}${PIXDIR}/*
	rmdir ${INSTALLROOT}${PIXDIR}

clean :
	rm -f althea
	rm -f *.o
	rm -f *~