Switch to unified view

a/src/lib/Makefile b/src/lib/Makefile
1
depth = ..
2
include $(depth)/mk/sysconf
1
3
2
UNACCFLAGS = -g -I. -I../unac $(INCICONV) -DUNAC_VERSION=\"1.0.7\"
4
UNACCFLAGS = -g -I. -I$(depth)/unac $(INCICONV) -DUNAC_VERSION=\"1.0.7\"
3
5
4
LIBS = librcl.a
6
LIBS = librcl.a
5
7
6
all: depend $(LIBS)
8
all: depend $(LIBS)
7
9
...
...
13
     mimehandler.o mimeparse.o mimetype.o myhtmlparse.o pathhash.o pathut.o \
15
     mimehandler.o mimeparse.o mimetype.o myhtmlparse.o pathhash.o pathut.o \
14
     rclconfig.o rcldb.o rclinit.o readfile.o smallut.o \
16
     rclconfig.o rcldb.o rclinit.o readfile.o smallut.o \
15
     textsplit.o transcode.o \
17
     textsplit.o transcode.o \
16
     unacpp.o unac.o docseq.o sortseq.o copyfile.o
18
     unacpp.o unac.o docseq.o sortseq.o copyfile.o
17
19
18
SRCS =  ../utils/conftree.cpp \
20
SRCS =  \
19
     ../index/csguess.cpp ../utils/debuglog.cpp \
21
     $(depth)/utils/conftree.cpp $(depth)/index/csguess.cpp \
20
     ../utils/execmd.cpp ../utils/idfile.cpp ../utils/md5.cpp \
22
     $(depth)/utils/debuglog.cpp $(depth)/utils/execmd.cpp \
23
     $(depth)/utils/idfile.cpp $(depth)/utils/md5.cpp \
21
     ../utils/wipedir.cpp ../utils/fstreewalk.cpp \
24
     $(depth)/utils/wipedir.cpp $(depth)/utils/fstreewalk.cpp \
22
     ../common/mh_html.cpp ../common/mh_mail.cpp ../common/mh_exec.cpp \
25
     $(depth)/common/mh_html.cpp $(depth)/common/mh_mail.cpp \
23
     ../common/mh_text.cpp ../common/htmlparse.cpp \
26
     $(depth)/common/mh_exec.cpp $(depth)/common/mh_text.cpp \
24
     ../index/indexer.cpp ../common/internfile.cpp \
27
     $(depth)/common/htmlparse.cpp $(depth)/index/indexer.cpp \
25
     ../common/mimehandler.cpp ../utils/mimeparse.cpp ../index/mimetype.cpp \
28
     $(depth)/common/internfile.cpp $(depth)/common/mimehandler.cpp \
26
     ../common/myhtmlparse.cpp ../common/pathhash.cpp ../utils/pathut.cpp \
29
     $(depth)/utils/mimeparse.cpp $(depth)/index/mimetype.cpp \
27
     ../common/rclconfig.cpp ../common/rcldb.cpp ../common/rclinit.cpp \
30
     $(depth)/common/myhtmlparse.cpp $(depth)/common/pathhash.cpp \
28
     ../utils/base64.cpp ../utils/readfile.cpp ../utils/smallut.cpp \
31
     $(depth)/utils/pathut.cpp $(depth)/common/rclconfig.cpp \
29
     ../common/textsplit.cpp ../utils/transcode.cpp \
32
     $(depth)/common/rcldb.cpp $(depth)/common/rclinit.cpp \
30
     ../common/unacpp.cpp ../unac/unac.c ../query/history.cpp \
33
     $(depth)/utils/base64.cpp $(depth)/utils/readfile.cpp \
31
     ../query/docseq.cpp ../query/sortseq.cpp ../utils/copyfile.cpp
34
     $(depth)/utils/smallut.cpp $(depth)/common/textsplit.cpp \
35
     $(depth)/utils/transcode.cpp $(depth)/common/unacpp.cpp \
36
     $(depth)/unac/unac.c $(depth)/query/history.cpp \
37
     $(depth)/query/docseq.cpp $(depth)/query/sortseq.cpp \
38
     $(depth)/utils/copyfile.cpp
32
39
33
librcl.a : $(OBJS)
40
librcl.a : $(OBJS)
34
    ar ru librcl.a $(OBJS)
41
    ar ru librcl.a $(OBJS)
35
    $(RANLIB) librcl.a
42
    $(RANLIB) librcl.a
36
43
37
unac.o : ../unac/unac.c ../unac/unac.h
44
unac.o : $(depth)/unac/unac.c $(depth)/unac/unac.h
38
    $(CC) $(UNACCFLAGS) -c $<
45
    $(CC) $(UNACCFLAGS) -c $<
39
46
40
# $(CXX) $(CXXFLAGS) -c $<
41
conftree.o : ../utils/conftree.cpp 
47
conftree.o : $(depth)/utils/conftree.cpp 
42
    $(CXX) $(CXXFLAGS) -c $<
48
    $(CXX) $(ALL_CXXFLAGS) -c $<
43
csguess.o : ../index/csguess.cpp 
49
csguess.o : $(depth)/index/csguess.cpp 
44
    $(CXX) $(CXXFLAGS) -c $<
50
    $(CXX) $(ALL_CXXFLAGS) -c $<
45
debuglog.o : ../utils/debuglog.cpp 
51
debuglog.o : $(depth)/utils/debuglog.cpp 
46
    $(CXX) $(CXXFLAGS) -c $<
52
    $(CXX) $(ALL_CXXFLAGS) -c $<
47
execmd.o : ../utils/execmd.cpp 
53
execmd.o : $(depth)/utils/execmd.cpp 
48
    $(CXX) $(CXXFLAGS) -c $<
54
    $(CXX) $(ALL_CXXFLAGS) -c $<
49
wipedir.o : ../utils/wipedir.cpp 
55
wipedir.o : $(depth)/utils/wipedir.cpp 
50
    $(CXX) $(CXXFLAGS) -c $<
56
    $(CXX) $(ALL_CXXFLAGS) -c $<
51
fstreewalk.o : ../utils/fstreewalk.cpp 
57
fstreewalk.o : $(depth)/utils/fstreewalk.cpp 
52
    $(CXX) $(CXXFLAGS) -c $<
58
    $(CXX) $(ALL_CXXFLAGS) -c $<
53
history.o : ../query/history.cpp 
59
history.o : $(depth)/query/history.cpp 
54
    $(CXX) $(CXXFLAGS) -c $<
60
    $(CXX) $(ALL_CXXFLAGS) -c $<
55
sortseq.o : ../query/sortseq.cpp 
61
sortseq.o : $(depth)/query/sortseq.cpp 
56
    $(CXX) $(CXXFLAGS) -c $<
62
    $(CXX) $(ALL_CXXFLAGS) -c $<
57
docseq.o : ../query/docseq.cpp 
63
docseq.o : $(depth)/query/docseq.cpp 
58
    $(CXX) $(CXXFLAGS) -c $<
64
    $(CXX) $(ALL_CXXFLAGS) -c $<
59
mh_html.o : ../common/mh_html.cpp 
65
mh_html.o : $(depth)/common/mh_html.cpp 
60
    $(CXX) $(CXXFLAGS) -c $<
66
    $(CXX) $(ALL_CXXFLAGS) -c $<
61
mh_exec.o : ../common/mh_exec.cpp 
67
mh_exec.o : $(depth)/common/mh_exec.cpp 
62
    $(CXX) $(CXXFLAGS) -c $<
68
    $(CXX) $(ALL_CXXFLAGS) -c $<
63
mh_text.o : ../common/mh_text.cpp 
69
mh_text.o : $(depth)/common/mh_text.cpp 
64
    $(CXX) $(CXXFLAGS) -c $<
70
    $(CXX) $(ALL_CXXFLAGS) -c $<
65
htmlparse.o : ../common/htmlparse.cpp 
71
htmlparse.o : $(depth)/common/htmlparse.cpp 
66
    $(CXX) $(CXXFLAGS) -c $<
72
    $(CXX) $(ALL_CXXFLAGS) -c $<
67
idfile.o : ../utils/idfile.cpp 
73
idfile.o : $(depth)/utils/idfile.cpp 
68
    $(CXX) $(CXXFLAGS) -c $<
74
    $(CXX) $(ALL_CXXFLAGS) -c $<
69
indexer.o : ../index/indexer.cpp 
75
indexer.o : $(depth)/index/indexer.cpp 
70
    $(CXX) $(CXXFLAGS) -c $<
76
    $(CXX) $(ALL_CXXFLAGS) -c $<
71
internfile.o : ../common/internfile.cpp 
77
internfile.o : $(depth)/common/internfile.cpp 
72
    $(CXX) $(CXXFLAGS) -c $<
78
    $(CXX) $(ALL_CXXFLAGS) -c $<
73
mh_mail.o : ../common/mh_mail.cpp 
79
mh_mail.o : $(depth)/common/mh_mail.cpp 
74
    $(CXX) $(CXXFLAGS) -c $<
80
    $(CXX) $(ALL_CXXFLAGS) -c $<
75
mimehandler.o : ../common/mimehandler.cpp 
81
mimehandler.o : $(depth)/common/mimehandler.cpp 
76
    $(CXX) $(CXXFLAGS) -c $<
82
    $(CXX) $(ALL_CXXFLAGS) -c $<
77
mimeparse.o : ../utils/mimeparse.cpp 
83
mimeparse.o : $(depth)/utils/mimeparse.cpp 
78
    $(CXX) $(CXXFLAGS) -c $<
84
    $(CXX) $(ALL_CXXFLAGS) -c $<
79
mimetype.o : ../index/mimetype.cpp 
85
mimetype.o : $(depth)/index/mimetype.cpp 
80
    $(CXX) $(CXXFLAGS) -c $<
86
    $(CXX) $(ALL_CXXFLAGS) -c $<
81
myhtmlparse.o : ../common/myhtmlparse.cpp 
87
myhtmlparse.o : $(depth)/common/myhtmlparse.cpp 
82
    $(CXX) $(CXXFLAGS) -c $<
88
    $(CXX) $(ALL_CXXFLAGS) -c $<
83
pathut.o : ../utils/pathut.cpp 
89
pathut.o : $(depth)/utils/pathut.cpp 
84
    $(CXX) $(CXXFLAGS) -c $<
90
    $(CXX) $(ALL_CXXFLAGS) -c $<
85
pathhash.o : ../common/pathhash.cpp 
91
pathhash.o : $(depth)/common/pathhash.cpp 
86
    $(CXX) $(CXXFLAGS) -c $<
92
    $(CXX) $(ALL_CXXFLAGS) -c $<
87
rclconfig.o : ../common/rclconfig.cpp 
93
rclconfig.o : $(depth)/common/rclconfig.cpp 
88
    $(CXX) $(CXXFLAGS) -c $<
94
    $(CXX) $(ALL_CXXFLAGS) -c $<
89
rclinit.o : ../common/rclinit.cpp 
95
rclinit.o : $(depth)/common/rclinit.cpp 
90
    $(CXX) $(CXXFLAGS) -c $<
96
    $(CXX) $(ALL_CXXFLAGS) -c $<
91
rcldb.o : ../common/rcldb.cpp 
97
rcldb.o : $(depth)/common/rcldb.cpp 
92
    $(CXX) $(CXXFLAGS) -c $<
98
    $(CXX) $(ALL_CXXFLAGS) -c $<
93
readfile.o : ../utils/readfile.cpp 
99
readfile.o : $(depth)/utils/readfile.cpp 
94
    $(CXX) $(CXXFLAGS) -c $<
100
    $(CXX) $(ALL_CXXFLAGS) -c $<
95
base64.o : ../utils/base64.cpp 
101
base64.o : $(depth)/utils/base64.cpp 
96
    $(CXX) $(CXXFLAGS) -c $<
102
    $(CXX) $(ALL_CXXFLAGS) -c $<
97
smallut.o : ../utils/smallut.cpp 
103
smallut.o : $(depth)/utils/smallut.cpp 
98
    $(CXX) $(CXXFLAGS) -c $<
104
    $(CXX) $(ALL_CXXFLAGS) -c $<
99
textsplit.o : ../common/textsplit.cpp 
105
textsplit.o : $(depth)/common/textsplit.cpp 
100
    $(CXX) $(CXXFLAGS) -c $<
106
    $(CXX) $(ALL_CXXFLAGS) -c $<
101
transcode.o : ../utils/transcode.cpp 
107
transcode.o : $(depth)/utils/transcode.cpp 
102
    $(CXX) $(CXXFLAGS) -c $<
108
    $(CXX) $(ALL_CXXFLAGS) -c $<
103
md5.o : ../utils/md5.cpp 
109
md5.o : $(depth)/utils/md5.cpp 
104
    $(CXX) $(CXXFLAGS) -c $<
110
    $(CXX) $(ALL_CXXFLAGS) -c $<
105
unacpp.o : ../common/unacpp.cpp 
111
unacpp.o : $(depth)/common/unacpp.cpp 
106
    $(CXX) $(CXXFLAGS) -c $<
112
    $(CXX) $(ALL_CXXFLAGS) -c $<
107
copyfile.o : ../utils/copyfile.cpp 
113
copyfile.o : $(depth)/utils/copyfile.cpp 
108
    $(CXX) $(CXXFLAGS) -c $<
114
    $(CXX) $(ALL_CXXFLAGS) -c $<
109
115
110
depend: alldeps.stamp
116
depend: alldeps.stamp
111
alldeps.stamp : $(SRCS)
117
alldeps.stamp : $(SRCS)
112
    $(CXX) -M $(CXXFLAGS) $(SRCS) > alldeps
118
    $(CXX) -M $(ALL_CXXFLAGS) $(SRCS) > alldeps
113
    touch alldeps.stamp
119
    touch alldeps.stamp
114
120
115
clean:
121
clean:
116
    cp /dev/null alldeps
122
    cp /dev/null alldeps
117
    rm -f alldeps.stamp
123
    rm -f alldeps.stamp
118
    rm -f $(OBJS) $(LIBS)
124
    rm -f $(OBJS) $(LIBS)
119
125
120
include alldeps
126
include alldeps
121
include ../mk/sysconf