|
a/src/common/Makefile |
|
b/src/common/Makefile |
1 |
|
1 |
BIGLIB = ../lib/librcl.a
|
2 |
CXXFLAGS = -Wall -g -I. -I../unac -I../utils -I/usr/local/include
|
2 |
CXXFLAGS = -Wall -g -I. -I../unac -I../utils -I/usr/local/include
|
3 |
CFLAGS = -g -I. -I../unac -I/usr/local/include -DUNAC_VERSION=\"1.0.7\"
|
|
|
4 |
|
3 |
|
5 |
|
4 |
|
6 |
PROGS = unacpp
|
5 |
PROGS = unacpp textsplit
|
7 |
all: $(PROGS)
|
6 |
all: $(PROGS)
|
8 |
|
7 |
|
9 |
UNACPP_OBJS= trunacpp.o unacpp.o unac.o readfile.o
|
8 |
UNACPP_OBJS= trunacpp.o $(BIGLIB)
|
10 |
unacpp : $(UNACPP_OBJS)
|
9 |
unacpp : $(UNACPP_OBJS)
|
11 |
$(CXX) $(CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
|
10 |
$(CXX) $(CXXFLAGS) -o unacpp $(UNACPP_OBJS) \
|
12 |
-L/usr/local/lib -liconv
|
11 |
-L/usr/local/lib -liconv
|
13 |
|
|
|
14 |
unac.o : ../unac/unac.c ../unac/unac.h
|
|
|
15 |
$(CC) $(CFLAGS) -c -o unac.o ../unac/unac.c
|
|
|
16 |
|
|
|
17 |
readfile.o : ../utils/readfile.cpp ../utils/readfile.h
|
|
|
18 |
$(CXX) $(CXXFLAGS) -c -o readfile.o ../utils/readfile.cpp
|
|
|
19 |
|
|
|
20 |
trunacpp.o : unacpp.cpp unacpp.h
|
12 |
trunacpp.o : unacpp.cpp unacpp.h
|
21 |
$(CXX) $(CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
|
13 |
$(CXX) $(CXXFLAGS) -DTEST_UNACPP -c -o trunacpp.o unacpp.cpp
|
22 |
|
14 |
|
|
|
15 |
TEXTSPLIT_OBJS= trtextsplit.o $(BIGLIB)
|
|
|
16 |
textsplit : $(TEXTSPLIT_OBJS)
|
|
|
17 |
$(CXX) $(CXXFLAGS) -o textsplit $(TEXTSPLIT_OBJS)
|
|
|
18 |
trtextsplit.o : textsplit.cpp
|
|
|
19 |
$(CXX) $(CXXFLAGS) -DTEST_TEXTSPLIT -c -o trtextsplit.o \
|
|
|
20 |
textsplit.cpp
|
23 |
clean:
|
21 |
clean:
|
24 |
rm -f *.o $(PROGS)
|
22 |
rm -f *.o $(PROGS)
|