- documentation fixes in builder.h
[barry.git] / src / Makefile
blob7b4f45a103dd9242b820411a5e2b40f6d06107e8
2 # Makefile for the Barry library and test programs
5 include ../Makefile.conf
8 # Barry files
10 CONNECTOBJS = \
11 data.o \
12 usbwrap.o \
13 connect.o \
14 common.o \
17 BBTOOLOBJS = \
18 time.o \
19 base64.o \
20 parser.o \
21 data.o \
22 usbwrap.o \
23 probe.o \
24 common.o \
25 error.o \
26 socket.o \
27 protocol.o \
28 record.o \
29 controller.o \
30 btool.o \
34 # object files needed to build Barry
36 OBJS = $(CONNECTOBJS) $(BBTOOLOBJS)
39 ###############################################################################
40 all: visual dep.mak tests connect btool translate
42 visual:
43 echo ; echo
45 connect: $(CONNECTOBJS)
46 $(CXX) $(DEBUG) -o connect $(CONNECTOBJS) $(LDFLAGS)
48 btool: $(BBTOOLOBJS)
49 $(CXX) $(DEBUG) -o btool $(BBTOOLOBJS) $(LDFLAGS)
51 translate: translate.cc
52 $(CXX) $(CXXFLAGS) -o translate translate.cc
54 #############
55 # Tests
56 #############
58 tests: test-data test-contact test-base64 test-time
60 test-time: time.h time.cc
61 $(CXX) $(CXXFLAGS) -D__TEST_MODE__ -o test-time time.cc
63 test-base64: base64.h base64.cc
64 $(CXX) $(CXXFLAGS) -D__TEST_MODE__ -o test-base64 base64.cc
66 test-data: data.h data.cc
67 $(CXX) $(CXXFLAGS) -D__TEST_MODE__ -o test-data data.cc
69 test-contact.o: record.cc
70 $(CXX) $(CXXFLAGS) -D__TEST_MODE__ -o test-contact.o -c record.cc
72 test-contact: test-contact.o data.o base64.o
73 $(CXX) $(CXXFLAGS) -o test-contact test-contact.o data.o base64.o
75 clean-tests:
76 rm -f test-data test-contact test-contact.o
78 #################
79 # Cleanup / Misc
80 #################
82 clean: clean-tests
83 rm -f $(OBJS) *.rpo */*.rpo dep.mak core core.* gmon.out leak.out
84 rm -f connect btool
85 rm -f translate
86 rm -rf ../doc/doxygen/html
88 dep:
89 $(CXX) $(CXXFLAGS) -M *.cc > dep.mak
91 dep.mak:
92 make dep
93 make
95 # dependencies.... run make dep to create them
96 ifeq (dep.mak,$(wildcard dep.mak))
97 include dep.mak
98 endif