|
a/src/common/Makefile |
|
b/src/common/Makefile |
1 |
# @(#$Id: Makefile,v 1.8 2006-01-06 13:18:17 dockes Exp $ (C) 2005 J.F.Dockes
|
1 |
# @(#$Id: Makefile,v 1.9 2006-01-19 12:01:42 dockes Exp $ (C) 2005 J.F.Dockes
|
2 |
|
2 |
depth = ..
|
3 |
include ../mk/sysconf
|
3 |
include $(depth)/mk/sysconf
|
4 |
|
4 |
|
5 |
# Only test executables get build in here
|
5 |
# Only test executables get build in here
|
6 |
PROGS = internfile unacpp textsplit
|
6 |
PROGS = internfile unacpp textsplit
|
7 |
|
7 |
|
8 |
all: $(BIGLIB) $(PROGS)
|
8 |
all: $(BIGLIB) $(PROGS)
|
9 |
|
9 |
|
10 |
$(BIGLIB):
|
10 |
$(BIGLIB):
|
11 |
cd ../lib;$(MAKE)
|
11 |
cd $(depth)/lib;$(MAKE)
|
12 |
|
12 |
|
13 |
UNACPP_OBJS= trunacpp.o $(BIGLIB)
|
13 |
UNACPP_OBJS= trunacpp.o $(BIGLIB)
|
14 |
unacpp : $(UNACPP_OBJS)
|
14 |
unacpp : $(UNACPP_OBJS)
|
15 |
$(CXX) $(CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
|
15 |
$(CXX) $(ALL_CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
|
16 |
$(LIBICONV)
|
16 |
$(LIBICONV)
|
17 |
trunacpp.o : unacpp.cpp unacpp.h
|
17 |
trunacpp.o : unacpp.cpp unacpp.h
|
18 |
$(CXX) $(CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
|
18 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
|
19 |
|
19 |
|
20 |
TEXTSPLIT_OBJS= trtextsplit.o $(BIGLIB)
|
20 |
TEXTSPLIT_OBJS= trtextsplit.o $(BIGLIB)
|
21 |
textsplit : $(TEXTSPLIT_OBJS)
|
21 |
textsplit : $(TEXTSPLIT_OBJS)
|
22 |
$(CXX) $(CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS)
|
22 |
$(CXX) $(ALL_CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS)
|
23 |
trtextsplit.o : textsplit.cpp
|
23 |
trtextsplit.o : textsplit.cpp
|
24 |
$(CXX) $(CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
|
24 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
|
25 |
textsplit.cpp
|
25 |
textsplit.cpp
|
26 |
|
26 |
|
27 |
INTERNFILE_OBJS= trinternfile.o $(BIGLIB) $(MIMELIB)
|
27 |
INTERNFILE_OBJS= trinternfile.o $(BIGLIB) $(MIMELIB)
|
28 |
internfile : $(INTERNFILE_OBJS)
|
28 |
internfile : $(INTERNFILE_OBJS)
|
29 |
$(CXX) $(CXXFLAGS) -o internfile $(INTERNFILE_OBJS) \
|
29 |
$(CXX) $(ALL_CXXFLAGS) -o internfile $(INTERNFILE_OBJS) \
|
30 |
$(LIBICONV) $(LIBSYS)
|
30 |
$(LIBICONV) $(LIBSYS)
|
31 |
trinternfile.o : internfile.cpp
|
31 |
trinternfile.o : internfile.cpp
|
32 |
$(CXX) $(CXXFLAGS) -DTEST_INTERNFILE -c -o trinternfile.o \
|
32 |
$(CXX) $(ALL_CXXFLAGS) -DTEST_INTERNFILE -c -o trinternfile.o \
|
33 |
internfile.cpp
|
33 |
internfile.cpp
|
34 |
|
34 |
|
35 |
clean:
|
35 |
clean:
|
36 |
rm -f *.o $(PROGS)
|
36 |
rm -f *.o $(PROGS)
|
37 |
|
37 |
|