1 |
## |
################################################################### |
2 |
## Made by romain parmantier |
# [Marvin Projet - GUI based on LibSIP, LibNN and gpgme |
3 |
## |
# Copyright (C) 2002 - 2003 PARMANTIER Romain |
4 |
## Started on Mon May 26 18:30:06 2003 romain parmantier |
# |
5 |
## Last update Thu Sep 11 01:37:40 2003 C@stor |
# This program is free software; you can redistribute it and/or |
6 |
## |
# modify it under the terms of the GNU General Public License |
7 |
|
# as published by the Free Software Foundation; either version 2 |
8 |
|
# of the License, or (at your option) any later version. This |
9 |
|
# program is distributed in the hope that it will be useful, |
10 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
|
# GNU General Public License for more details. You should have |
13 |
|
# received a copy of the GNU General Public License |
14 |
|
# along with this program; if not, write to the Free Software |
15 |
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
16 |
|
# USA. |
17 |
|
# |
18 |
|
# SPECIAL NOTE (the beerware clause): |
19 |
|
# This software is free software. However, it also falls under the beerware |
20 |
|
# special category. That is, if you find this software useful, or use it |
21 |
|
# every day, or want to grant us for our modest contribution to the |
22 |
|
# free software community, feel free to send us a beer from one of |
23 |
|
# your local brewery. Our preference goes to Belgium abbey beers and |
24 |
|
# irish stout (Guiness for strength!), but we like to try new stuffs. |
25 |
|
# |
26 |
|
# Authors: |
27 |
|
# |
28 |
|
# PARMANTIER Romain |
29 |
|
# Paper mail : |
30 |
|
# E-mail : romain.parmantier@loutor.org |
31 |
|
# |
32 |
|
################################################################### |
33 |
|
|
34 |
|
include common.Makefile |
35 |
|
|
36 |
|
# main target |
37 |
|
############# |
38 |
|
|
39 |
|
NAME = marvin_project |
40 |
|
|
41 |
|
RM = rm -rf |
42 |
|
|
43 |
|
all: $(NAME) |
44 |
|
|
45 |
|
# Recompiles everything from scratch |
46 |
|
re: clean all |
47 |
|
|
48 |
|
# bytecode and native-code compilation |
49 |
|
###################################### |
50 |
|
|
51 |
|
$(NAME): echo ${OBJ} |
52 |
|
@echo " /" |
53 |
|
@echo " | building $@ ..." |
54 |
|
@echo " \\" |
55 |
|
@$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME) $(LPATH) $(LIBS) |
56 |
|
|
57 |
|
echo: |
58 |
|
@echo " /" |
59 |
|
@echo " | building object file ..." |
60 |
|
@echo " \\" |
61 |
|
|
62 |
|
# documentation |
63 |
|
############### |
64 |
|
|
65 |
|
.PHONY: doc |
66 |
|
|
67 |
|
doc: |
68 |
|
@echo " /" |
69 |
|
@echo " | doing make doc..." |
70 |
|
@echo " \\" |
71 |
|
@cd doc;\ |
72 |
|
@$(DOXYGEN) 2> /dev/null |
73 |
|
@echo " /" |
74 |
|
@echo " | the doc have been successfully generate in ./doc/" |
75 |
|
@echo " \\" |
76 |
|
|
77 |
|
# clean |
78 |
|
####### |
79 |
|
|
80 |
|
clean: default-clean |
81 |
|
@echo " /" |
82 |
|
@echo " | doing make clean in subdirectories..." |
83 |
|
@echo " \\" |
84 |
|
@for i in $(SUBDIRS);\ |
85 |
|
do\ |
86 |
|
( cd $$i ;\ |
87 |
|
@$(RM) *.o lib$$i.a *~ \#*;\ |
88 |
|
);\ |
89 |
|
done |
90 |
|
@echo " /" |
91 |
|
@echo " | cleaning current directory..." |
92 |
|
@echo " \\" |
93 |
|
@$(RM) $(NAME) |
94 |
|
|
95 |
|
default-clean: |
96 |
|
@$(RM) *.o *~ \#* |
97 |
|
|
98 |
|
doc-clean: |
99 |
|
@echo " /" |
100 |
|
@echo " | doing make doc-clean..." |
101 |
|
@echo " \\" |
102 |
|
|
103 |
|
dist-clean distclean:: clean doc-clean |
104 |
|
@$(RM) config.cache config.log config.status |
105 |
|
@$(RM) configure common.Makefile dpc/Doxyfile |
106 |
|
@$(RM) autom4te.cache |
107 |
|
|
108 |
NAME = marvin_project |
Makefile: common.Makefile |
|
|
|
|
SRC = main.cc\ |
|
|
user.cc\ |
|
|
user_list.cc\ |
|
|
record.cc\ |
|
|
action.cc\ |
|
|
crypt.cc\ |
|
|
decrypt.cc\ |
|
|
identify_user.cc\ |
|
|
misc.cc\ |
|
|
file.cc |
|
|
|
|
|
|
|
|
OBJ = $(SRC:.cc=.o) |
|
|
|
|
|
CXX = g++-3.2 |
|
|
|
|
|
CXXFLAGS = -Wall -g |
|
|
|
|
|
LANGUAGE = -DFR |
|
|
|
|
|
LIBS = `gpgme-config --libs` -lsip |
|
|
|
|
|
LPATH = -I../libsip/ -L../libsip |
|
|
|
|
|
all : make_lib $(OBJ) |
|
|
$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME) $(LPATH) $(LIBS) |
|
|
|
|
|
make_lib : |
|
|
(cd ../libsip; autoreconf; ./configure ; make) |
|
|
# (cd ../libnn; autoreconf; ./configure; make) |
|
|
|
|
|
.cc.o : |
|
|
$(CXX) $(CXXFLAGS) $(LANGUAGE) -c $< |
|
|
|
|
|
clean : |
|
|
@(cd language; rm -rf *~ \#*) |
|
|
@rm -rf $(OBJ) |
|
|
@rm -rf *~ |
|
|
@rm -rf \#* |
|
|
@rm -rf *.db* |
|
|
|
|
|
distclean : clean |
|
|
@rm -rf $(NAME) |
|
|
|
|
|
re : distclean all |
|
|
|
|
|
save : distclean |
|
|
@tar -C.. -z -c -f \ |
|
|
../save_`basename $(PWD)`_`date +%Y_%m_%d_%Hh%Mm%Ss`_src.tgz \ |
|
|
`basename $(PWD)` |
|
|
@chmod 600 ../save_*_src.tgz |
|