ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/c++/socket++-1.10/Makefile.in
Revision: 1.1
Committed: Mon Feb 26 15:01:39 2001 UTC (23 years, 9 months ago) by ab11
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Log Message:
Networking class. Assumed to be bug free.

File Contents

# Content
1
2 # Places to install libraries, binaries, etc.
3 prefix = @prefix@
4 bindir = $(prefix)/bin
5 libdir = $(prefix)/lib
6 includedir = $(prefix)/include
7
8 # For some losing Unix makes.
9 SHELL = /bin/sh
10 @SET_MAKE@
11
12 # The C and C++ compilers to use.
13 CC = @CC@
14 CXX = @CXX@
15
16 # Various programs used in compilation and running of the programs.
17 RANLIB = @RANLIB@
18 MAKEDEPEND = @MAKEDEPEND@ @CXX_INCLUDE_PATH@ -D__cplusplus
19
20 # Compilation and linking flags.
21 CFLAGS = @CFLAGS@
22 CXXFLAGS = @CXXFLAGS@
23 LDFLAGS = @LDFLAGS@
24
25 CXXFLAGS_EXTRA = -I.
26 CXXFLAGS_ALL = $(CXXFLAGS) $(CXXFLAGS_EXTRA)
27
28 SOCKETXX_HFILES = sockstream.h sockinet.h sockunix.h pipestream.h \
29 Fork.h protocol.h echo.h smtp.h ftp.h
30
31 SOCKETXX_CFILES = sockstream.C sockinet.C sockunix.C pipestream.C \
32 Fork.C echo.C smtp.C ftp.C
33
34 SOCKETXX_OFILES = $(SOCKETXX_CFILES:.C=.o)
35
36 all: libsocket++.a
37
38 libsocket++.a: $(SOCKETXX_OFILES)
39 -rm -f $@
40 $(AR) cq $@ $(SOCKETXX_OFILES)
41 $(RANLIB) $@
42
43 .C.o:
44 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_ALL) $< -o $@
45
46 .PHONY: depend
47 depend:
48 $(MAKEDEPEND) $(SOCKETXX_CFILES)
49
50 install: uninstall
51 mkdir -p $(libdir)
52 cp libsocket++.a $(libdir)/libsocket++.a && \
53 $(RANLIB) $(libdir)/libsocket++.a
54 mkdir -p $(includedir)
55 cp $(SOCKETXX_HFILES) $(includedir) && \
56 cd $(includedir) && \
57 chmod 444 $(SOCKETXX_HFILES)
58
59 uninstall:
60 -rm -f $(libdir)/libsocket++.a
61 cd $(includedir) && rm -f $(SOCKETXX_HFILES)
62
63 clean:
64 -rm -f libsocket++.a *.o *~ *.bak core
65
66 real-clean: clean
67 -rm -f config.log config.cache config.status config.h Makefile
68 (cd ./test; $(MAKE) -f Makefile.in real-clean)