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