ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/socket++-1.10/test/Makefile.in
Revision: 1.1
Committed: Mon Feb 26 15:02:39 2001 UTC (24 years, 10 months ago) by ab11
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Log Message:
Test programs for Networking class. Unused by the host

File Contents

# Content
1 srcdir = .
2
3 #### package, host, target, and site dependent Makefile fragments come in here.
4 ##
5
6 LIBS = -L$(srcdir)/.. -lsocket++ @NETWORK_LIBS@
7
8 TESTSRCS = tdunread.C tdunwrite.C \
9 tdinread.C tdinwrite.C \
10 tsunread.C tsunwrite.C \
11 tsinread.C tsinwrite.C \
12 tpipe.C \
13 tsockpair.C \
14 tpopen.C tpopen-lpc.C tpopen-ftp.C \
15 tpopentest.C \
16 testall.C \
17 tnntp.C \
18 tsmtp.C \
19 tsendfiles.C \
20 thostnames.C \
21 twhois.C \
22 tfork.C tfork0.C \
23 tsecho.C tcecho.C \
24 tcsmtp.C \
25 tcftp.C
26
27 TESTOBJS = $(TESTSRCS:.C=.o)
28 TESTS = $(TESTSRCS:.C=)
29
30 DEPEND_SOURCES = $(srcdir)/*.C
31
32 .SUFFIXES: .o .C .cc
33
34 .cc.o .C.o:
35 $(CXX) -c $(CXXFLAGS) -I$(srcdir) -I$(srcdir)/.. $<
36
37 .PHONY: check
38 check: testall.out
39 diff -c testall.exp testall.out || make -f Makefile.in message
40
41 message:
42 @echo
43 @echo If there are any differences, manually check whether
44 @echo testall.out and testall.exp have the same lines but
45 @echo only their order is different. If they have the same
46 @echo lines but for the order, you have installed properly.
47 @echo Otherwise, try to findout what might be the reason and
48 @echo if you could not please email me with your problem at
49 @echo gs4t@virginia.edu.
50 @echo
51
52
53 testall.out: $(TESTS)
54 testall > testall.out
55
56 $(TESTS): $(TESTOBJS)
57 $(CXX) $(CFLAGS) -o $@ $@.o $(LIBS)
58
59 update-version:
60 for i in $(TESTSRCS); \
61 do \
62 sed -e "s/Version: [0-9a-zA-Z]* [0-9.]*/Version: `date +%d%h%y` $(VERSION)/g" $$i > TMP$$i; \
63 mv TMP$$i $$i; \
64 done
65
66 clean:
67 -rm -f *~ *.o core $(TESTS)
68
69 real-clean: clean
70 -rm -f Makefile
71
72 depend:
73 makedepend $(CXXINCLUDES) $(TESTSRCS)