2 # Makefile for the Barry library and test programs
5 include ..
/Makefile.conf
34 # object files needed to build Barry
36 OBJS
= $(CONNECTOBJS
) $(BBTOOLOBJS
)
39 ###############################################################################
40 all: visual dep.mak tests connect btool translate
45 connect
: $(CONNECTOBJS
)
46 $(CXX
) $(DEBUG
) -o connect
$(CONNECTOBJS
) $(LDFLAGS
)
49 $(CXX
) $(DEBUG
) -o btool
$(BBTOOLOBJS
) $(LDFLAGS
)
51 translate
: translate.
cc
52 $(CXX
) $(CXXFLAGS
) -o translate translate.
cc
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
76 rm -f test-data test-contact test-contact.o
83 rm -f
$(OBJS
) *.rpo
*/*.rpo dep.mak core core.
* gmon.out leak.out
86 rm -rf ..
/doc
/doxygen
/html
89 $(CXX
) $(CXXFLAGS
) -M
*.
cc > dep.mak
95 # dependencies.... run make dep to create them
96 ifeq (dep.mak
,$(wildcard dep.mak
))